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])`.
interface Encoder ((input) => string)
  • Parameters

    • input: Uint8Array

    Returns string