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

inbufinput buffer
outbufoutput buffer
stateholds the number of bits that are stored in save
saveleftover bits that have not yet been encoded

Returns

the number of bytes encoded.