![]() |
v1.3.0.0
|
ArrayBuffer Object Extensions
Public Member Functions | |
| string | toBase64 () |
| string | toHex (char separator) |
Static Public Member Functions | |
| string | fromBase64 (any data) |
|
static |
Creates and returns a new ArrayBuffer from the contents of Base64-encoded string data.
This is a static function. Use it like var buffer = ArrayBuffer.fromBase64(data).
Equivalent to atob(data).
| string toBase64 | ( | ) |
Returns the contents of this buffer as a Base64-encoded string.
Equivalent to btoa(buffer).
| string toHex | ( | char | separator | ) |
Returns the contents of this buffer as a hex encoded string.
| separator | Optional single separator character to place between each byte in the output. The separator must be a single character otherwise the function will fail. |
For example: