Encoding.step

size_t step(string inbuf, ref char[] outbuf)

Incrementally encodes or decodes (depending on state) an input stream by 'stepping' through a block of input at a time.

You should make sure outbuf is large enough by calling [gmime.encoding.Encoding.outlen] to find out how large outbuf might need to be.

Parameters

inbufan input buffer to encode or decode
outbufan output buffer

Returns

the number of bytes written to outbuf.