yencodeStep

Performs an yEncode 'encode step' on a chunk of raw data of length inlen pointed to by inbuf and writes to outbuf.

state should be initialized to #GMIME_YENCODE_STATE_INIT before beginning making the first call to this function. Subsequent calls should reuse state.

Along the same lines, pcrc and crc should be initialized to #GMIME_YENCODE_CRC_INIT before using.

size_t
yencodeStep
(
ubyte[] inbuf
,
ref ubyte[] outbuf
,
ref int state
,
ref uint pcrc
,
ref uint crc
)

Parameters

inbuf ubyte[]

input buffer

outbuf ubyte[]

output buffer

state int

yencode state

pcrc uint

part crc state

crc uint

crc state

Return Value

Type: size_t

the number of bytes encoded.