Options
All
  • Public
  • Public/Protected
  • All
Menu

Module @stablelib/hex

Index

Functions

Functions

  • 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(data: Uint8Array, lowerCase?: boolean): string
  • Returns string with hex-encoded data.

    Parameters

    • data: Uint8Array
    • lowerCase: boolean = false

    Returns string

Generated using TypeDoc