Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Decoder

A function that, given a string, can derive the bytes represented by that string.

example

A decoder function that converts bytes to hexadecimal representation would return new Uint8Array([0xde, 0xad, 0xbe, 0xef]) when given the string 'deadbeef'.

Hierarchy

  • Decoder

Callable

  • __call(input: string): Uint8Array
  • A function that, given a string, can derive the bytes represented by that string.

    example

    A decoder function that converts bytes to hexadecimal representation would return new Uint8Array([0xde, 0xad, 0xbe, 0xef]) when given the string 'deadbeef'.

    Parameters

    • input: string

    Returns Uint8Array