Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace Base64

Provides functions to encode and decode data using Base64.

since

1.10

Index

Functions

decode

  • decode(data: ArrayBuffer | string): ArrayBuffer
  • Decodes the given data using Base64.

encode

  • encode(data: ArrayBuffer | string): string
  • Encodes the given data using Base64, with the result converted to a string for convenience.

    example
    let buffer = new ArrayBuffer(byteLength);
    // [Fill the buffer with data, for example using a DataView]
    json.data = Base64.encode(buffer);
    file.write(JSON.stringify(json));
    

encodeAsBytes

  • encodeAsBytes(data: ArrayBuffer | string): ArrayBuffer
  • Encodes the given data using Base64, keeping the result in binary form.

Generated using TypeDoc