The input range to decode.
The output range to store the decoded result.
The number of times the output range's put method was invoked.
Base64Exception if source contains characters outside the base alphabet of the current Base64 encoding scheme.
struct OutputRange { ubyte[] result; void put(ubyte b) { result ~= b; } } OutputRange output; // This overload of decode() returns the number of calls to put(). assert(Base64.decode("Gis8TV1u", output) == 6); assert(output.result == [0x1a, 0x2b, 0x3c, 0x4d, 0x5d, 0x6e]);
Decodes source into a given output range.