Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Functions

  • equal(first: null | Uint8Array, second: null | Uint8Array): bool
  • Checks if 2 Uint8Array are equal. Note: if both first and second are null, then they are considered equal

    Parameters

    • first: null | Uint8Array
    • second: null | Uint8Array

    Returns bool

  • fromHexString(hex: string): Uint8Array
  • Convert the string hex which must consist of an even number of hexadecimal digits to a Uint8Array. The string hex can optionally start with '0x'

    Parameters

    • hex: string

    Returns Uint8Array

  • toHexString(buffer: Uint8Array, prepend0x?: bool): string
  • Convert the Uint8Array buffer into a hexadecimal digits string. The string can optionally be appended with '0x'

    Parameters

    • buffer: Uint8Array
    • prepend0x: bool = true

    Returns string

Generated using TypeDoc