Methods
decode(text) → {Uint8Array}
Decode text from Base64 string.
Parameters:
Name | Type | Description |
---|---|---|
text |
string | String to be decoded |
- Source:
Returns:
Byte array of decoded data.
- Type
- Uint8Array
encode(data) → {string}
Encode byte array to a text string.
Parameters:
Name | Type | Description |
---|---|---|
data |
Uint8Array | Byte array to be encoded. |
- Source:
Returns:
String of encoded data.
- Type
- string