The encode table to use, either defaultEncodeTable (the default) or urlSafeEncodeTable, or one's own encode table. An array of 65 chars is expected, where the last char is used for padding
what is to be encoded
buffer large enough to hold encoded data
Whether or not to pad the output - default to true
char[512] encodebuf; mstring myEncodedString = encode(cast(const(ubyte)[])"Hello, how are you today?", encodebuf); Stdout(myEncodedString).newline; // SGVsbG8sIGhvdyBhcmUgeW91IHRvZGF5Pw==
Encodes data and returns as an ASCII base64 string.