decodes an ASCII hex string and returns it as ubyte[] data.
This decoder will ignore non-hex 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("48656C6C6F2C20686F772061726520796F7520746F6461793F", decodebuf); Stdout(myDecodeString).newline; // Hello, how are you today?
See Implementation
decodes an ASCII hex string and returns it as ubyte[] data.
This decoder will ignore non-hex characters. So: SGVsbG8sIGhvd yBhcmUgeW91IH RvZGF5Pw==
Is valid.