ydecodeStep

Performs a 'decode step' on a chunk of yEncoded data of length inlen pointed to by inbuf and writes to outbuf. Assumes the =ybegin and =ypart lines have already been stripped off.

To get the crc32 value of the part, use #GMIME_YENCODE_CRC_FINAL (pcrc). If there are more parts, you should reuse crc without re-initializing. Once all parts have been decoded, you may get the combined crc32 value of all the parts using #GMIME_YENCODE_CRC_FINAL (crc).

size_t
ydecodeStep
(
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

ydecode state

pcrc uint

part crc state

crc uint

crc state

Return Value

Type: size_t

the number of bytes decoded.