Function

Camelyencode_step

Declaration [src]

gsize
camel_yencode_step (
  const guchar* in,
  gsize inlen,
  guchar* out,
  gint* state,
  guint32* pcrc,
  guint32* crc
)

Description [src]

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 #CAMEL_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

CAMEL_MIME_YENCODE_CRC_INIT before using.

Parameters

in

Type: An array of guchar

Input buffer.

The length of the array is specified in the inlen argument.
The data is owned by the caller of the function.
inlen

Type: gsize

Input buffer length.

out

Type: An array of guchar

Output buffer.

The argument will be set by the function.
The called function takes ownership of the data, and is responsible for freeing it.
state

Type: gint*

Yencode state.

The argument will be set by the function.
pcrc

Type: guint32*

Part crc state.

The argument will be set by the function.
crc

Type: guint32*

Crc state.

The argument will be set by the function.

Return value

Type: gsize

The number of bytes encoded.