License:
Author:
Standards:
Example:
1 2 3 4 5 6 7 8 | char[] blah = "Hello there, my name is Jeff."; scope encodebuf = new char[allocateEncodeSize(cast(ubyte[])blah)]; char[] encoded = encode(cast(ubyte[])blah, encodebuf); scope decodebuf = new ubyte[encoded.length]; if (cast(char[])decode(encoded, decodebuf) == "Hello there, my name is Jeff.") Stdout("yay").newline; |
Parameters:
data | An array that will be encoded |
Parameters:
length | Number of bytes to be encoded |
Parameters:
data | what is to be encoded |
buff | buffer large enough to hold encoded data |
pad | Whether to pad ascii output with '='-chars |
Example:
Parameters:
data | what is to be encoded |
pad | whether to pad output with '='-chars |
Example:
Parameters:
data | what is to be decoded |
Example:
Parameters:
data | what is to be decoded |
buff | a big enough array to hold the decoded data |
Example: