ip-num
    Preparing search index...

    Class Hexadecatet

    A representation of a 4-digit hexadecimal number.

    It consists of four (base 16) number. ie FFFF

    It is used to represents the components of an IPv6 address

    Index

    Constructors

    • Constructor for creating an instance of Hexadecatet

      Parameters

      • givenValue: string | number

        a string or numeric value. If given value is a string then it should be a four (base 16) number representation of a 16bit value. If it is a number, then it should be a decimal number representation of a 16 bit value

      Returns Hexadecatet

    Methods

    • Returns the numeric value in base 10 (ie decimal)

      Returns number

      the numeric value in base 10 (ie decimal)

    • Returns the string representation of the base 16 representation of the value

      Returns string

      the string representation of the base 16 representation of the value

    • A convenience method for constructing an instance of Hexadecatet from a decimal number representation of a 16 bit value

      Parameters

      • rawValue: number

        decimal number representation of a 16 bit value

      Returns Hexadecatet

      an instance of Hexadecatet