yencodeStep
fn
size_t yencodeStep(ubyte[] inbuf, ref ubyte[] outbuf, ref int state, ref uint pcrc, ref uint crc)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.
Parameters
inbuf | input buffer |
outbuf | output buffer |
state | yencode state |
pcrc | part crc state |
crc | crc state |
Returns
the number of bytes encoded.