Base64

Members

Static functions

decode
char[] 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
char[] 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(char[] data)

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

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

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

encodeStep
size_t encodeStep(char[] in_, bool breakLines, char[] out_, 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.