yencode_close
Description:
public size_t yencode_close (uint8[] @in, out uint8[] @out, out int state, out uint32 pcrc, out uint32 crc)
Call this function when finished encoding data with yencode_step to flush off the remaining state.
CAMEL_MIME_YENCODE_CRC_FINAL (pcrc) will give you the crc32 of the encoded "part". If there are more "parts" to
encode, you should re-use crc when encoding the next "parts" and then use CAMEL_MIME_YENCODE_CRC_FINAL (crc
) to get the combined crc32 value of all the parts.
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