Base64

Undocumented in source.

Members

Static functions

decode
string decode(string text)

Decode a sequence of Base-64 encoded text into binary data. Note that the returned binary data is not necessarily zero-terminated, so it should not be used as a character string.

decodeInplace
string decodeInplace(char[] text)

Decode a sequence of Base-64 encoded text into binary data by overwriting the input data.

decodeStep
size_t decodeStep(string inn, ubyte[] output, int state, uint save)

Incrementally decode a sequence of binary data from its Base-64 stringified representation. By calling this function multiple times you can convert data in chunks to avoid having to have the full encoded data in memory.

encode
string encode(string data)

Encode a sequence of binary data into its Base-64 stringified representation.

encodeClose
size_t encodeClose(bool breakLines, char[] output, int state, int save)

Flush the status from a sequence of calls to g_base64_encode_step().

encodeStep
size_t encodeStep(string inn, bool breakLines, char[] output, int state, int save)

Incrementally encode a sequence of binary data into its Base-64 stringified representation. By calling this function multiple times you can convert data in chunks to avoid having to have the full encoded data in memory.

Meta