Camel.quoted_encode_close
Description: Reference for Camel.quoted_encode_close

### Function

# Camelquoted_encode_close

#### Declaration [src]

    gsize
    camel_quoted_encode_close (
      guchar* in,
      gsize len,
      guchar* out,
      gint* state,
      gint* save
    )

#### Description [src]

Quoted-printable encodes a block of text. Call this when finished encoding data with `camel_quoted_encode_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`

  Length of the input.

`out`

  Type: An array of `guchar`

  Output string.

  The argument will be modified by the function.
  The caller of the function takes ownership of the returned 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 `gint`

  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 caller of the function takes ownership of the returned data, and is responsible for freeing it.

#### Return value

Type: `gsize`

The number of bytes encoded.