encodeChunk

encodes data into buff and returns the number of bytes encoded. this will not terminate and pad any "leftover" bytes, and will instead only encode up to the highest number of bytes divisible by three.

returns the number of bytes left to encode

encodeChunk
(
const(ubyte[]) data
,
char[] buff
,)

Parameters

data const(ubyte[])

what is to be encoded

buff char[]

buffer large enough to hold encoded data

bytesEncoded size_t

ref that returns how much of the buffer was filled

Meta