yencodeClose

Call this function when finished encoding data with gmime.global.yencodeStep to flush off the remaining state.

#GMIME_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 #GMIME_YENCODE_CRC_FINAL (crc) to get the combined crc32 value of all the parts.

size_t
yencodeClose
(
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.