Function

Cameluuencode_close

Declaration [src]

gsize
camel_uuencode_close (
  guchar* in,
  gsize len,
  guchar* out,
  guchar* uubuf,
  gint* state,
  guint32* save
)

Description [src]

Uuencodes a chunk of data. Call this when finished encoding data with camel_uuencode_step() to flush off the last little bit.

Parameters

in

Type: An array of guchar

Input stream.

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

Type: gsize

Input stream length.

out

Type: An array of guchar

Output stream.

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

Type: An array of guchar

Temporary buffer of 60 bytes.

The argument will be modified by the function.
The array must have 60 elements.
The called function takes ownership of the data, and is responsible for freeing it.
state

Type: gint*

Holds the number of bits that are stored in save.

The argument will be modified by the function.
save

Type: An array of guint32

Leftover bits that have not yet been encoded.

The argument will be modified by the function.
The length of the array is specified in the state argument.
The called function takes ownership of the data, and is responsible for freeing it.

Return value

Type: gsize

The number of bytes encoded.