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.

int
encodeChunk
(
in ubyte[] data
,,
ref int bytesEncoded
)

Parameters

table

The encode table to use, either defaultEncodeTable (the default) or urlSafeEncodeTable, or one's own encode table.

data ubyte[]

what is to be encoded

buff mstring

buffer large enough to hold encoded data

bytesEncoded int

ref that returns how much of the buffer was filled

Return Value

Type: int

The number of bytes left to encode

Meta