v1.2.0.1-beta1
|
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: