Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Encoder

A function that, given a TypedArray of bytes, can produce a string representation thereof.

example

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

Hierarchy

  • Encoder

Callable

  • __call(input: Uint8Array): string
  • A function that, given a TypedArray of bytes, can produce a string representation thereof.

    example

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

    Parameters

    • input: Uint8Array

    Returns string