Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "hex/hex"

Index

Functions

Functions

decode

  • decode(hex: string): Uint8Array
  • Returns Uint8Array with data decoded from hex string.

    Throws error if hex string length is not divisible by 2 or has non-hex characters.

    Parameters

    • hex: string

    Returns Uint8Array

encode

  • encode(data: Uint8Array, lowerCase?: boolean): string
  • Returns string with hex-encoded data.

    Parameters

    • data: Uint8Array
    • Default value lowerCase: boolean = false

    Returns string

Generated using TypeDoc