encoding
Variables
- encoding.invTokens
Type: number []
- encoding.tokens
Type: string
Functions
- encoding.UTF16ToString(buf)
Converts an ArrayBuffer into a string, assuming UTF-16 encoding in native byte order.
- Arguments:
buf – ArrayBuffer | Uint16Array The ArrayBuffer containing binary UTF-16 data. A Uint16Array can also be used, allowing to view a subset of the data.
- Returns:
string The resulting decoded string.
- encoding.UTF8ToString(buf)
Converts an ArrayBuffer into a string, assuming UTF-8 encoding.
- Arguments:
buf – ArrayBuffer | Uint8Array The ArrayBuffer containing binary UTF-8 data. A Uint8Array can also be used, allowing to view a subset of the data.
- Returns:
string The resulting decoded string.
- encoding.decode(src)
Decodes a Base64-encoded string into an ArrayBuffer.
- Arguments:
src – string
- Returns:
ArrayBuffer
- encoding.getInvTokens()
- Returns:
number []
- encoding.getNumPaddingEquals(src)
Returns the number of trailing ‘=’ characters.
- Arguments:
src – string
- Returns:
number