Encodes source to newly-allocated buffer.
This convenience method alleviates the need to manually manage output buffers.
The input range to encode.
A newly-allocated char[] buffer containing the encoded string.
ubyte[] data = [0x1a, 0x2b, 0x3c, 0x4d, 0x5d, 0x6e]; assert(Base64.encode(data) == "Gis8TV1u");
See Implementation
Encodes source to newly-allocated buffer.
This convenience method alleviates the need to manually manage output buffers.