decodes an ASCCI base64 string and returns it as ubyte[] data.
This decoder will ignore non-base64 characters. So: SGVsbG8sIGhvd yBhcmUgeW91IH RvZGF5Pw==
Is valid.
what is to be decoded
a big enough array to hold the decoded data
ubyte[512] decodebuf; char[] myDecodedString = cast(char[])decode("SGVsbG8sIGhvdyBhcmUgeW91IHRvZGF5Pw==", decodebuf); Stdout(myDecodedString).newline; // Hello, how are you today?
See Implementation
decodes an ASCCI base64 string and returns it as ubyte[] data.
This decoder will ignore non-base64 characters. So: SGVsbG8sIGhvd yBhcmUgeW91IH RvZGF5Pw==
Is valid.