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
what is to be encoded
buffer large enough to hold encoded data
ref that returns how much of the buffer was filled
See Implementation
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