Codec
The Codec
API converts strings and ArrayBuffers to binary formats and back.
Codec.base64ToArrayBuffer()(string) => ArrayBuffer
Returns an ArrayBuffer
with the binary content decoded from the given base64
string.
Codec.toBase64()(string | ArrayBuffer | TypedArray) => string
Returns a string with the base64 encoding of the given string, ArrayBuffer, Uint8Array or Uint8ClampedArray.