ydecode_step


Description:


public size_t ydecode_step (uint8 inbuf, size_t inlen, uint8 outbuf, int state, uint32 pcrc, uint32 crc)

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).

Parameters:

inbuf

input buffer

inlen

input buffer length

outbuf

output buffer

state

ydecode state

pcrc

part crc state

crc

crc state

Returns:

the number of bytes decoded.


Namespace: GMime
Package: gmime-3.0



2022 vala-language.org