Returns a decoder for base-64 strings.

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

For more details, see getBase64Codec.

Decoding a base-64 string.

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

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