yencode_step
Description:
public size_t yencode_step (uint8[] @in, out uint8[] @out, out int state, out uint32 pcrc, out uint32 crc)
Performs an yEncode 'encode step' on a chunk of raw data of length inlen
pointed to by in
and writes to out
.
state
should be initialized to MIME_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
MIME_YENCODE_CRC_INIT before using.
Parameters:
state |
yencode state |
pcrc |
part crc state |
crc |
crc state |
in |
input buffer |
inlen |
input buffer length |
out |
output buffer |
Returns:
the number of bytes encoded |
Namespace: Camel
Package: camel-1.2