ip-num
    Preparing search index...

    Class AbstractIPNumAbstract

    Provides the implementation of functionality that are common to IPv4, IPv6, IPv4Mask and IPv6Mask

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    bitSize: number

    The number of bits needed to represent the value of the IP number

    maximumBitSize: bigint

    The maximum bit size (i.e. binary value) of the IP number in BigInt

    value: bigint

    The decimal value represented by the IP number in BigInt

    Methods

    • Gets the numeric value of an IP number as BigInt

      Returns bigint

      bigInt the numeric value of an IP number.

    • Checks if an IP number has a value greater than the present value

      Returns boolean

      true, if there is a value greater than the present value. Returns false otherwise.

    • Checks if an IP number has a value lesser than the present value

      Returns boolean

      true, if there is a value lesser than the present value. Returns false otherwise.

    • Checks if the given IP number, is equals to the current IP number

      Parameters

      Returns boolean

      true if the given IP number is equals

    • Checks if the given IP number is greater than this current IP number

      Parameters

      Returns boolean

      true if the given IP number is greater than this current one. False otherwise.

    • Checks if the given IP number is greater than or equals to this current IP number

      Parameters

      Returns boolean

      {boolean} true if the given IP number is greater than or equals to this current one. False otherwise.

    • Checks if the given IP number is lesser than this current IP number

      Parameters

      Returns boolean

      true if the given IP number is less than this current one. False otherwise.

    • Checks if the given IP number is less than or equals to this current IP number

      Parameters

      Returns boolean

      true if the given IP number is less than or equals to this current one. False otherwise.

    • Gets the binary string representation of an IP number.

      Returns string

      the string binary representation.