Encoding.step

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.

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

Parameters

inbuf string

an input buffer to encode or decode

outbuf char[]

an output buffer

Return Value

Type: size_t

the number of bytes written to outbuf.