The length of the Base64 encoding.
The length of the decoded string corresponding to a Base64 encoding of length sourceLength.
auto encoded = "Gis8TV1u"; // Allocate a sufficiently large buffer to hold to decoded result. auto buffer = new ubyte[Base64.decodeLength(encoded.length)]; Base64.decode(encoded, buffer); assert(buffer == [0x1a, 0x2b, 0x3c, 0x4d, 0x5d, 0x6e]);
Given a Base64 encoded string, calculates the length of the decoded string.