Skip to content

BaseEncoder

Defined in: astrobase/src/internal/encoding.ts:6

Implements an encoder that converts values to and from base-x strings and Uint8Array.

decode(encoded): Uint8Array

Defined in: astrobase/src/internal/encoding.ts:13

Decodes the encoded string to bytes.

string

The encoded string.

Uint8Array

The raw bytes.


encode(input): string

Defined in: astrobase/src/internal/encoding.ts:20

Encodes bytes into a string.

Uint8Array

The bytes to encode.

string

The encoded string.