Kit
Functions

getBase64Decoder

getBase64Decoder(): VariableSizeDecoder<string>

Returns a decoder for base-64 strings.

This decoder deserializes base-64 encoded strings from a byte array.

For more details, see getBase64Codec.

Returns

VariableSizeDecoder<string>

A VariableSizeDecoder<string> for decoding base-64 strings.

Example

Decoding a base-64 string.

const decoder = getBase64Decoder();
const value = decoder.decode(new Uint8Array([0x85, 0xe9, 0x65, 0xa3, 0xec, 0x28, 0xae, 0x57])); // "hello+world"

See

getBase64Codec

On this page