Your browser does not support HTML5 canvas. Fork me on GitHub

Available Packages:

Base64

Source

int DECODES_PER_ROUND

Source

Specifies how many chunks to decode per a single `execute()` call. This value has been tuned to work under all optimization settings and with stacktraces included.

int ENCODES_PER_ROUND

Source

Specifies how many characters to encode per a single `execute()` call. This value has been tuned to work under all optimization settings and with stacktraces included.

function ChunkedString.decodeBase64() returns ByteBuffer

Source

Decodes the bytes encoded into this string according to the Base64 format.

function string.decodeBase64() returns ByteBuffer

Source

Decodes the bytes encoded into this string according to the Base64 format.

function ByteBuffer.encodeBase64() returns ChunkedString

Source

Encodes the bytes in this buffer to a string according to the Base64 format.

class Base64Decoder

Source

function append(string data)

Source

Appends a part of the Base64-encoded data.

function append(ChunkedString data)

Source

Appends a part of the Base64-encoded data.

function consume(ChunkedString data)

Source

Appends a part of the Base64-encoded data and destroys it.

function intoData() returns ByteBuffer

Source

Consumes this decoder and returns the decoded data as a ByteBuffer.

class Base64Encoder

Source

function consume(ByteBuffer data)

Source

Writes all bytes from the buffer to be serialized into Base64 and destroys the buffer.

function intoData() returns ChunkedString

Source

Consumes this encoder and returns the encoded data as a ChunkedString.

function write(ByteBuffer data)

Source

Writes all bytes from the buffer to be serialized into Base64.

function writeByte(int n)

Source

Writes an unsigned byte to be serialized into Base64.

function writeInt(int n)

Source

Writes a signed integer to be serialized into Base64.

function writeShort(int n)

Source

Writes an unsigned short to be serialized into Base64.