Encoding.base64EncodeClose
size_t base64EncodeClose(ubyte[] inbuf, ref ubyte[] outbuf, ref int state, ref uint save)Base64 encodes the input stream to the output stream. Call this when finished encoding data with gmime.encoding.Encoding.base64EncodeStep to flush off the last little bit.
Parameters
inbuf | input buffer |
outbuf | output buffer |
state | holds the number of bits that are stored in save |
save | leftover bits that have not yet been encoded |
Returns
the number of bytes encoded.