Kit
Functions

getBase10Encoder

getBase10Encoder(): VariableSizeEncoder<string>

Returns an encoder for base-10 strings.

This encoder serializes strings using a base-10 encoding scheme. The output consists of bytes representing the numerical values of the input string.

For more details, see getBase10Codec.

Returns

VariableSizeEncoder<string>

A VariableSizeEncoder<string> for encoding base-10 strings.

Example

Encoding a base-10 string.

const encoder = getBase10Encoder();
const bytes = encoder.encode('1024'); // 0x0400

See

getBase10Codec

On this page