Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "HexadecimalUtils"

Index

Functions

Let bigIntegerNumberToHexadecimalString

  • bigIntegerNumberToHexadecimalString(num: BigInteger): string
  • Converts a given BigInteger number to a hexadecimal string

    Parameters

    • num: BigInteger

      the BigInteger number

    Returns string

    the hexadeciaml string

Let binaryStringToHexadecimalString

  • binaryStringToHexadecimalString(num: string): string
  • Converts number in binary string to hexadecimal string

    Parameters

    • num: string

      in binary string

    Returns string

    num in hexadecimal string

Let colonHexadecimalNotationToBinaryString

  • colonHexadecimalNotationToBinaryString(hexadecimalString: string): string
  • Given an IPv6 number in hexadecimal notated string, e.g 2001:0db8:0000:0000:0000:0000:0000:0000 converts it to binary string

    Parameters

    • hexadecimalString: string

      IPv6 string

    Returns string

    the binary value of the given ipv6 number in string

Let hexadecimalStringToBinaryString

  • hexadecimalStringToBinaryString(hexadecimalString: string): string
  • Converts a number in hexadecimal (base 16) to binary string

    Parameters

    • hexadecimalString: string

      the number in base 16

    Returns string

    the number converted to base 2

Let hexadecimalStringToHexadecatetString

  • hexadecimalStringToHexadecatetString(hexadecimalString: string): string
  • Converts a number in hexadecimal (base 16) to binary hexadecatet string. This means the bits in the output cannot be more than 16

    Parameters

    • hexadecimalString: string

      the number converted to binary hexadecatet string

    Returns string

Let hexadectetNotationToBinaryString

  • hexadectetNotationToBinaryString(hexadectetString: string): string
  • Converts a given IPv6 number expressed in the hexadecimal string notation into a 16 bit binary number in string

    Parameters

    • hexadectetString: string

      the IPv6 number

    Returns string

    the IPv6 number converted to binary string

Generated using TypeDoc