4
4
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
5
<title>CamelMimeFilterYenc</title>
6
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
6
<meta name="generator" content="DocBook XSL Stylesheets V1.74.0">
7
7
<link rel="home" href="index.html" title="Camel Reference Manual">
8
8
<link rel="up" href="StreamFilters.html" title="Stream Filters">
9
9
<link rel="prev" href="camel-CamelMimeFilterWindows.html" title="CamelMimeFilterWindows">
10
10
<link rel="next" href="Services.html" title="Services">
11
<meta name="generator" content="GTK-Doc V1.11 (XML mode)">
11
<meta name="generator" content="GTK-Doc V1.14 (XML mode)">
12
12
<link rel="stylesheet" href="style.css" type="text/css">
13
<link rel="part" href="classes.html" title="Part I. Camel Classes">
14
<link rel="chapter" href="ClassTree.html" title="Class Hierarchy">
15
<link rel="chapter" href="Fundamentals.html" title="Fundamentals">
16
<link rel="chapter" href="Streams.html" title="Streams">
17
<link rel="chapter" href="StreamFilters.html" title="Stream Filters">
18
<link rel="chapter" href="Services.html" title="Services">
19
<link rel="chapter" href="Filters.html" title="Filters">
20
<link rel="chapter" href="Folders.html" title="Folders">
21
<link rel="chapter" href="SearchFolders.html" title="Search Folders">
22
<link rel="chapter" href="Addresses.html" title="Addresses">
23
<link rel="chapter" href="Crypto.html" title="Crypto Contexts">
24
<link rel="chapter" href="MIME.html" title="MIME Objects">
25
<link rel="chapter" href="Storage.html" title="Metadata Storage">
26
<link rel="chapter" href="Utilities.html" title="Utilities">
27
<link rel="chapter" href="Deprecated.html" title="Deprecated Objects">
28
<link rel="index" href="ix01.html" title="Index">
29
<link rel="index" href="ix02.html" title="Index of deprecated symbols">
31
14
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
32
15
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
53
36
<td valign="top" align="right"></td>
54
37
</tr></table></div>
55
<div class="refsynopsisdiv" title="Synopsis">
38
<div class="refsynopsisdiv">
56
39
<a name="camel-CamelMimeFilterYenc.synopsis"></a><h2>Synopsis</h2>
57
<pre class="synopsis">
58
<a class="link" href="camel-CamelMimeFilterYenc.html#CamelMimeFilterYenc" title="CamelMimeFilterYenc">CamelMimeFilterYenc</a>;
40
<pre class="synopsis"> <a class="link" href="camel-CamelMimeFilterYenc.html#CamelMimeFilterYenc" title="CamelMimeFilterYenc">CamelMimeFilterYenc</a>;
59
41
enum <a class="link" href="camel-CamelMimeFilterYenc.html#CamelMimeFilterYencDirection" title="enum CamelMimeFilterYencDirection">CamelMimeFilterYencDirection</a>;
60
#define <a class="link" href="camel-CamelMimeFilterYenc.html#CAMEL-MIME-YDECODE-STATE-INIT--CAPS" title="CAMEL_MIME_YDECODE_STATE_INIT">CAMEL_MIME_YDECODE_STATE_INIT</a>
61
#define <a class="link" href="camel-CamelMimeFilterYenc.html#CAMEL-MIME-YENCODE-STATE-INIT--CAPS" title="CAMEL_MIME_YENCODE_STATE_INIT">CAMEL_MIME_YENCODE_STATE_INIT</a>
62
#define <a class="link" href="camel-CamelMimeFilterYenc.html#CAMEL-MIME-YDECODE-STATE-EOLN--CAPS" title="CAMEL_MIME_YDECODE_STATE_EOLN">CAMEL_MIME_YDECODE_STATE_EOLN</a>
63
#define <a class="link" href="camel-CamelMimeFilterYenc.html#CAMEL-MIME-YDECODE-STATE-ESCAPE--CAPS" title="CAMEL_MIME_YDECODE_STATE_ESCAPE">CAMEL_MIME_YDECODE_STATE_ESCAPE</a>
64
#define <a class="link" href="camel-CamelMimeFilterYenc.html#CAMEL-MIME-YDECODE-STATE-BEGIN--CAPS" title="CAMEL_MIME_YDECODE_STATE_BEGIN">CAMEL_MIME_YDECODE_STATE_BEGIN</a>
65
#define <a class="link" href="camel-CamelMimeFilterYenc.html#CAMEL-MIME-YDECODE-STATE-PART--CAPS" title="CAMEL_MIME_YDECODE_STATE_PART">CAMEL_MIME_YDECODE_STATE_PART</a>
66
#define <a class="link" href="camel-CamelMimeFilterYenc.html#CAMEL-MIME-YDECODE-STATE-DECODE--CAPS" title="CAMEL_MIME_YDECODE_STATE_DECODE">CAMEL_MIME_YDECODE_STATE_DECODE</a>
67
#define <a class="link" href="camel-CamelMimeFilterYenc.html#CAMEL-MIME-YDECODE-STATE-END--CAPS" title="CAMEL_MIME_YDECODE_STATE_END">CAMEL_MIME_YDECODE_STATE_END</a>
68
#define <a class="link" href="camel-CamelMimeFilterYenc.html#CAMEL-MIME-YENCODE-CRC-INIT--CAPS" title="CAMEL_MIME_YENCODE_CRC_INIT">CAMEL_MIME_YENCODE_CRC_INIT</a>
69
#define <a class="link" href="camel-CamelMimeFilterYenc.html#CAMEL-MIME-YENCODE-CRC-FINAL--CAPS" title="CAMEL_MIME_YENCODE_CRC_FINAL()">CAMEL_MIME_YENCODE_CRC_FINAL</a> (crc)
70
<a class="link" href="camel-CamelMimeFilter.html#CamelMimeFilter" title="struct CamelMimeFilter">CamelMimeFilter</a> * <a class="link" href="camel-CamelMimeFilterYenc.html#camel-mime-filter-yenc-new" title="camel_mime_filter_yenc_new ()">camel_mime_filter_yenc_new</a> (<a class="link" href="camel-CamelMimeFilterYenc.html#CamelMimeFilterYencDirection" title="enum CamelMimeFilterYencDirection">CamelMimeFilterYencDirection</a> direction);
71
void <a class="link" href="camel-CamelMimeFilterYenc.html#camel-mime-filter-yenc-set-state" title="camel_mime_filter_yenc_set_state ()">camel_mime_filter_yenc_set_state</a> (<a class="link" href="camel-CamelMimeFilterYenc.html#CamelMimeFilterYenc" title="CamelMimeFilterYenc">CamelMimeFilterYenc</a> *yenc,
73
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
75
void <a class="link" href="camel-CamelMimeFilterYenc.html#camel-mime-filter-yenc-set-crc" title="camel_mime_filter_yenc_set_crc ()">camel_mime_filter_yenc_set_crc</a> (<a class="link" href="camel-CamelMimeFilterYenc.html#CamelMimeFilterYenc" title="CamelMimeFilterYenc">CamelMimeFilterYenc</a> *yenc,
77
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint32"
80
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint32"
81
>guint32</a> <a class="link" href="camel-CamelMimeFilterYenc.html#camel-mime-filter-yenc-get-pcrc" title="camel_mime_filter_yenc_get_pcrc ()">camel_mime_filter_yenc_get_pcrc</a> (<a class="link" href="camel-CamelMimeFilterYenc.html#CamelMimeFilterYenc" title="CamelMimeFilterYenc">CamelMimeFilterYenc</a> *yenc);
83
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint32"
84
>guint32</a> <a class="link" href="camel-CamelMimeFilterYenc.html#camel-mime-filter-yenc-get-crc" title="camel_mime_filter_yenc_get_crc ()">camel_mime_filter_yenc_get_crc</a> (<a class="link" href="camel-CamelMimeFilterYenc.html#CamelMimeFilterYenc" title="CamelMimeFilterYenc">CamelMimeFilterYenc</a> *yenc);
86
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gsize"
87
>gsize</a> <a class="link" href="camel-CamelMimeFilterYenc.html#camel-ydecode-step" title="camel_ydecode_step ()">camel_ydecode_step</a> (const <a
88
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"
91
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gsize"
94
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"
97
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
100
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint32"
103
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint32"
106
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gsize"
107
>gsize</a> <a class="link" href="camel-CamelMimeFilterYenc.html#camel-yencode-step" title="camel_yencode_step ()">camel_yencode_step</a> (const <a
108
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"
111
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gsize"
114
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"
117
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
120
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint32"
123
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint32"
126
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gsize"
127
>gsize</a> <a class="link" href="camel-CamelMimeFilterYenc.html#camel-yencode-close" title="camel_yencode_close ()">camel_yencode_close</a> (const <a
128
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"
131
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gsize"
134
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"
137
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
140
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint32"
143
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint32"
42
#define <a class="link" href="camel-CamelMimeFilterYenc.html#CAMEL-MIME-YDECODE-STATE-INIT:CAPS" title="CAMEL_MIME_YDECODE_STATE_INIT">CAMEL_MIME_YDECODE_STATE_INIT</a>
43
#define <a class="link" href="camel-CamelMimeFilterYenc.html#CAMEL-MIME-YENCODE-STATE-INIT:CAPS" title="CAMEL_MIME_YENCODE_STATE_INIT">CAMEL_MIME_YENCODE_STATE_INIT</a>
44
#define <a class="link" href="camel-CamelMimeFilterYenc.html#CAMEL-MIME-YDECODE-STATE-EOLN:CAPS" title="CAMEL_MIME_YDECODE_STATE_EOLN">CAMEL_MIME_YDECODE_STATE_EOLN</a>
45
#define <a class="link" href="camel-CamelMimeFilterYenc.html#CAMEL-MIME-YDECODE-STATE-ESCAPE:CAPS" title="CAMEL_MIME_YDECODE_STATE_ESCAPE">CAMEL_MIME_YDECODE_STATE_ESCAPE</a>
46
#define <a class="link" href="camel-CamelMimeFilterYenc.html#CAMEL-MIME-YDECODE-STATE-BEGIN:CAPS" title="CAMEL_MIME_YDECODE_STATE_BEGIN">CAMEL_MIME_YDECODE_STATE_BEGIN</a>
47
#define <a class="link" href="camel-CamelMimeFilterYenc.html#CAMEL-MIME-YDECODE-STATE-PART:CAPS" title="CAMEL_MIME_YDECODE_STATE_PART">CAMEL_MIME_YDECODE_STATE_PART</a>
48
#define <a class="link" href="camel-CamelMimeFilterYenc.html#CAMEL-MIME-YDECODE-STATE-DECODE:CAPS" title="CAMEL_MIME_YDECODE_STATE_DECODE">CAMEL_MIME_YDECODE_STATE_DECODE</a>
49
#define <a class="link" href="camel-CamelMimeFilterYenc.html#CAMEL-MIME-YDECODE-STATE-END:CAPS" title="CAMEL_MIME_YDECODE_STATE_END">CAMEL_MIME_YDECODE_STATE_END</a>
50
#define <a class="link" href="camel-CamelMimeFilterYenc.html#CAMEL-MIME-YENCODE-CRC-INIT:CAPS" title="CAMEL_MIME_YENCODE_CRC_INIT">CAMEL_MIME_YENCODE_CRC_INIT</a>
51
#define <a class="link" href="camel-CamelMimeFilterYenc.html#CAMEL-MIME-YENCODE-CRC-FINAL:CAPS" title="CAMEL_MIME_YENCODE_CRC_FINAL()">CAMEL_MIME_YENCODE_CRC_FINAL</a> (crc)
52
<a class="link" href="camel-CamelMimeFilter.html#CamelMimeFilter" title="struct CamelMimeFilter"><span class="returnvalue">CamelMimeFilter</span></a> * <a class="link" href="camel-CamelMimeFilterYenc.html#camel-mime-filter-yenc-new" title="camel_mime_filter_yenc_new ()">camel_mime_filter_yenc_new</a> (<em class="parameter"><code><a class="link" href="camel-CamelMimeFilterYenc.html#CamelMimeFilterYencDirection" title="enum CamelMimeFilterYencDirection"><span class="type">CamelMimeFilterYencDirection</span></a> direction</code></em>);
53
<span class="returnvalue">void</span> <a class="link" href="camel-CamelMimeFilterYenc.html#camel-mime-filter-yenc-set-state" title="camel_mime_filter_yenc_set_state ()">camel_mime_filter_yenc_set_state</a> (<em class="parameter"><code><a class="link" href="camel-CamelMimeFilterYenc.html#CamelMimeFilterYenc" title="CamelMimeFilterYenc"><span class="type">CamelMimeFilterYenc</span></a> *yenc</code></em>,
54
<em class="parameter"><code><span class="type">gint</span> state</code></em>);
55
<span class="returnvalue">void</span> <a class="link" href="camel-CamelMimeFilterYenc.html#camel-mime-filter-yenc-set-crc" title="camel_mime_filter_yenc_set_crc ()">camel_mime_filter_yenc_set_crc</a> (<em class="parameter"><code><a class="link" href="camel-CamelMimeFilterYenc.html#CamelMimeFilterYenc" title="CamelMimeFilterYenc"><span class="type">CamelMimeFilterYenc</span></a> *yenc</code></em>,
56
<em class="parameter"><code><span class="type">guint32</span> crc</code></em>);
57
<span class="returnvalue">guint32</span> <a class="link" href="camel-CamelMimeFilterYenc.html#camel-mime-filter-yenc-get-pcrc" title="camel_mime_filter_yenc_get_pcrc ()">camel_mime_filter_yenc_get_pcrc</a> (<em class="parameter"><code><a class="link" href="camel-CamelMimeFilterYenc.html#CamelMimeFilterYenc" title="CamelMimeFilterYenc"><span class="type">CamelMimeFilterYenc</span></a> *yenc</code></em>);
58
<span class="returnvalue">guint32</span> <a class="link" href="camel-CamelMimeFilterYenc.html#camel-mime-filter-yenc-get-crc" title="camel_mime_filter_yenc_get_crc ()">camel_mime_filter_yenc_get_crc</a> (<em class="parameter"><code><a class="link" href="camel-CamelMimeFilterYenc.html#CamelMimeFilterYenc" title="CamelMimeFilterYenc"><span class="type">CamelMimeFilterYenc</span></a> *yenc</code></em>);
59
<span class="returnvalue">gsize</span> <a class="link" href="camel-CamelMimeFilterYenc.html#camel-ydecode-step" title="camel_ydecode_step ()">camel_ydecode_step</a> (<em class="parameter"><code>const <span class="type">guchar</span> *in</code></em>,
60
<em class="parameter"><code><span class="type">gsize</span> inlen</code></em>,
61
<em class="parameter"><code><span class="type">guchar</span> *out</code></em>,
62
<em class="parameter"><code><span class="type">gint</span> *state</code></em>,
63
<em class="parameter"><code><span class="type">guint32</span> *pcrc</code></em>,
64
<em class="parameter"><code><span class="type">guint32</span> *crc</code></em>);
65
<span class="returnvalue">gsize</span> <a class="link" href="camel-CamelMimeFilterYenc.html#camel-yencode-step" title="camel_yencode_step ()">camel_yencode_step</a> (<em class="parameter"><code>const <span class="type">guchar</span> *in</code></em>,
66
<em class="parameter"><code><span class="type">gsize</span> inlen</code></em>,
67
<em class="parameter"><code><span class="type">guchar</span> *out</code></em>,
68
<em class="parameter"><code><span class="type">gint</span> *state</code></em>,
69
<em class="parameter"><code><span class="type">guint32</span> *pcrc</code></em>,
70
<em class="parameter"><code><span class="type">guint32</span> *crc</code></em>);
71
<span class="returnvalue">gsize</span> <a class="link" href="camel-CamelMimeFilterYenc.html#camel-yencode-close" title="camel_yencode_close ()">camel_yencode_close</a> (<em class="parameter"><code>const <span class="type">guchar</span> *in</code></em>,
72
<em class="parameter"><code><span class="type">gsize</span> inlen</code></em>,
73
<em class="parameter"><code><span class="type">guchar</span> *out</code></em>,
74
<em class="parameter"><code><span class="type">gint</span> *state</code></em>,
75
<em class="parameter"><code><span class="type">guint32</span> *pcrc</code></em>,
76
<em class="parameter"><code><span class="type">guint32</span> *crc</code></em>);
147
<div class="refsect1" title="Description">
79
<div class="refsect1" lang="en">
148
80
<a name="camel-CamelMimeFilterYenc.description"></a><h2>Description</h2>
152
<div class="refsect1" title="Details">
84
<div class="refsect1" lang="en">
153
85
<a name="camel-CamelMimeFilterYenc.details"></a><h2>Details</h2>
154
<div class="refsect2" title="CamelMimeFilterYenc">
86
<div class="refsect2" lang="en">
155
87
<a name="CamelMimeFilterYenc"></a><h3>CamelMimeFilterYenc</h3>
156
88
<pre class="programlisting">typedef struct {
157
89
CamelMimeFilter parent_object;
183
<div class="refsect2" title="CAMEL_MIME_YDECODE_STATE_INIT">
184
<a name="CAMEL-MIME-YDECODE-STATE-INIT--CAPS"></a><h3>CAMEL_MIME_YDECODE_STATE_INIT</h3>
115
<div class="refsect2" lang="en">
116
<a name="CAMEL-MIME-YDECODE-STATE-INIT:CAPS"></a><h3>CAMEL_MIME_YDECODE_STATE_INIT</h3>
185
117
<pre class="programlisting">#define CAMEL_MIME_YDECODE_STATE_INIT (0)
191
<div class="refsect2" title="CAMEL_MIME_YENCODE_STATE_INIT">
192
<a name="CAMEL-MIME-YENCODE-STATE-INIT--CAPS"></a><h3>CAMEL_MIME_YENCODE_STATE_INIT</h3>
123
<div class="refsect2" lang="en">
124
<a name="CAMEL-MIME-YENCODE-STATE-INIT:CAPS"></a><h3>CAMEL_MIME_YENCODE_STATE_INIT</h3>
193
125
<pre class="programlisting">#define CAMEL_MIME_YENCODE_STATE_INIT (0)
199
<div class="refsect2" title="CAMEL_MIME_YDECODE_STATE_EOLN">
200
<a name="CAMEL-MIME-YDECODE-STATE-EOLN--CAPS"></a><h3>CAMEL_MIME_YDECODE_STATE_EOLN</h3>
131
<div class="refsect2" lang="en">
132
<a name="CAMEL-MIME-YDECODE-STATE-EOLN:CAPS"></a><h3>CAMEL_MIME_YDECODE_STATE_EOLN</h3>
201
133
<pre class="programlisting">#define CAMEL_MIME_YDECODE_STATE_EOLN (1 << 8)
207
<div class="refsect2" title="CAMEL_MIME_YDECODE_STATE_ESCAPE">
208
<a name="CAMEL-MIME-YDECODE-STATE-ESCAPE--CAPS"></a><h3>CAMEL_MIME_YDECODE_STATE_ESCAPE</h3>
139
<div class="refsect2" lang="en">
140
<a name="CAMEL-MIME-YDECODE-STATE-ESCAPE:CAPS"></a><h3>CAMEL_MIME_YDECODE_STATE_ESCAPE</h3>
209
141
<pre class="programlisting">#define CAMEL_MIME_YDECODE_STATE_ESCAPE (1 << 9)
215
<div class="refsect2" title="CAMEL_MIME_YDECODE_STATE_BEGIN">
216
<a name="CAMEL-MIME-YDECODE-STATE-BEGIN--CAPS"></a><h3>CAMEL_MIME_YDECODE_STATE_BEGIN</h3>
147
<div class="refsect2" lang="en">
148
<a name="CAMEL-MIME-YDECODE-STATE-BEGIN:CAPS"></a><h3>CAMEL_MIME_YDECODE_STATE_BEGIN</h3>
217
149
<pre class="programlisting">#define CAMEL_MIME_YDECODE_STATE_BEGIN (1 << 12)
223
<div class="refsect2" title="CAMEL_MIME_YDECODE_STATE_PART">
224
<a name="CAMEL-MIME-YDECODE-STATE-PART--CAPS"></a><h3>CAMEL_MIME_YDECODE_STATE_PART</h3>
155
<div class="refsect2" lang="en">
156
<a name="CAMEL-MIME-YDECODE-STATE-PART:CAPS"></a><h3>CAMEL_MIME_YDECODE_STATE_PART</h3>
225
157
<pre class="programlisting">#define CAMEL_MIME_YDECODE_STATE_PART (1 << 13)
231
<div class="refsect2" title="CAMEL_MIME_YDECODE_STATE_DECODE">
232
<a name="CAMEL-MIME-YDECODE-STATE-DECODE--CAPS"></a><h3>CAMEL_MIME_YDECODE_STATE_DECODE</h3>
163
<div class="refsect2" lang="en">
164
<a name="CAMEL-MIME-YDECODE-STATE-DECODE:CAPS"></a><h3>CAMEL_MIME_YDECODE_STATE_DECODE</h3>
233
165
<pre class="programlisting">#define CAMEL_MIME_YDECODE_STATE_DECODE (1 << 14)
239
<div class="refsect2" title="CAMEL_MIME_YDECODE_STATE_END">
240
<a name="CAMEL-MIME-YDECODE-STATE-END--CAPS"></a><h3>CAMEL_MIME_YDECODE_STATE_END</h3>
171
<div class="refsect2" lang="en">
172
<a name="CAMEL-MIME-YDECODE-STATE-END:CAPS"></a><h3>CAMEL_MIME_YDECODE_STATE_END</h3>
241
173
<pre class="programlisting">#define CAMEL_MIME_YDECODE_STATE_END (1 << 15)
247
<div class="refsect2" title="CAMEL_MIME_YENCODE_CRC_INIT">
248
<a name="CAMEL-MIME-YENCODE-CRC-INIT--CAPS"></a><h3>CAMEL_MIME_YENCODE_CRC_INIT</h3>
179
<div class="refsect2" lang="en">
180
<a name="CAMEL-MIME-YENCODE-CRC-INIT:CAPS"></a><h3>CAMEL_MIME_YENCODE_CRC_INIT</h3>
249
181
<pre class="programlisting">#define CAMEL_MIME_YENCODE_CRC_INIT (~0)
255
<div class="refsect2" title="CAMEL_MIME_YENCODE_CRC_FINAL()">
256
<a name="CAMEL-MIME-YENCODE-CRC-FINAL--CAPS"></a><h3>CAMEL_MIME_YENCODE_CRC_FINAL()</h3>
187
<div class="refsect2" lang="en">
188
<a name="CAMEL-MIME-YENCODE-CRC-FINAL:CAPS"></a><h3>CAMEL_MIME_YENCODE_CRC_FINAL()</h3>
257
189
<pre class="programlisting">#define CAMEL_MIME_YENCODE_CRC_FINAL(crc) (~crc)
295
<div class="refsect2" title="camel_mime_filter_yenc_set_state ()">
225
<div class="refsect2" lang="en">
296
226
<a name="camel-mime-filter-yenc-set-state"></a><h3>camel_mime_filter_yenc_set_state ()</h3>
297
<pre class="programlisting">void camel_mime_filter_yenc_set_state (<a class="link" href="camel-CamelMimeFilterYenc.html#CamelMimeFilterYenc" title="CamelMimeFilterYenc">CamelMimeFilterYenc</a> *yenc,
299
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
300
>gint</a> state);</pre>
227
<pre class="programlisting"><span class="returnvalue">void</span> camel_mime_filter_yenc_set_state (<em class="parameter"><code><a class="link" href="camel-CamelMimeFilterYenc.html#CamelMimeFilterYenc" title="CamelMimeFilterYenc"><span class="type">CamelMimeFilterYenc</span></a> *yenc</code></em>,
228
<em class="parameter"><code><span class="type">gint</span> state</code></em>);</pre>
302
230
Sets the current state of the yencoder/ydecoder</p>
305
231
<div class="variablelist"><table border="0">
306
232
<col align="left" valign="top">
309
235
<td><p><span class="term"><em class="parameter"><code>yenc</code></em> :</span></p></td>
310
<td> a <a class="link" href="camel-CamelMimeFilterYenc.html#CamelMimeFilterYenc" title="CamelMimeFilterYenc"><span class="type">CamelMimeFilterYenc</span></a> object
236
<td>a <a class="link" href="camel-CamelMimeFilterYenc.html#CamelMimeFilterYenc" title="CamelMimeFilterYenc"><span class="type">CamelMimeFilterYenc</span></a> object
314
240
<td><p><span class="term"><em class="parameter"><code>state</code></em> :</span></p></td>
315
<td> encode/decode state
241
<td>encode/decode state
322
<div class="refsect2" title="camel_mime_filter_yenc_set_crc ()">
248
<div class="refsect2" lang="en">
323
249
<a name="camel-mime-filter-yenc-set-crc"></a><h3>camel_mime_filter_yenc_set_crc ()</h3>
324
<pre class="programlisting">void camel_mime_filter_yenc_set_crc (<a class="link" href="camel-CamelMimeFilterYenc.html#CamelMimeFilterYenc" title="CamelMimeFilterYenc">CamelMimeFilterYenc</a> *yenc,
326
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint32"
327
>guint32</a> crc);</pre>
250
<pre class="programlisting"><span class="returnvalue">void</span> camel_mime_filter_yenc_set_crc (<em class="parameter"><code><a class="link" href="camel-CamelMimeFilterYenc.html#CamelMimeFilterYenc" title="CamelMimeFilterYenc"><span class="type">CamelMimeFilterYenc</span></a> *yenc</code></em>,
251
<em class="parameter"><code><span class="type">guint32</span> crc</code></em>);</pre>
329
253
Sets the current crc32 value on the yEnc filter <em class="parameter"><code>yenc</code></em> to <em class="parameter"><code>crc</code></em>.</p>
332
254
<div class="variablelist"><table border="0">
333
255
<col align="left" valign="top">
336
258
<td><p><span class="term"><em class="parameter"><code>yenc</code></em> :</span></p></td>
337
<td> a <a class="link" href="camel-CamelMimeFilterYenc.html#CamelMimeFilterYenc" title="CamelMimeFilterYenc"><span class="type">CamelMimeFilterYenc</span></a> object
259
<td>a <a class="link" href="camel-CamelMimeFilterYenc.html#CamelMimeFilterYenc" title="CamelMimeFilterYenc"><span class="type">CamelMimeFilterYenc</span></a> object
341
263
<td><p><span class="term"><em class="parameter"><code>crc</code></em> :</span></p></td>
349
<div class="refsect2" title="camel_mime_filter_yenc_get_pcrc ()">
271
<div class="refsect2" lang="en">
350
272
<a name="camel-mime-filter-yenc-get-pcrc"></a><h3>camel_mime_filter_yenc_get_pcrc ()</h3>
351
<pre class="programlisting"><a
352
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint32"
353
>guint32</a> camel_mime_filter_yenc_get_pcrc (<a class="link" href="camel-CamelMimeFilterYenc.html#CamelMimeFilterYenc" title="CamelMimeFilterYenc">CamelMimeFilterYenc</a> *yenc);</pre>
355
Get the computed part crc or (<a
356
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint32"
357
><span class="type">guint32</span></a>) <code class="literal">-1</code> on fail.</p>
273
<pre class="programlisting"><span class="returnvalue">guint32</span> camel_mime_filter_yenc_get_pcrc (<em class="parameter"><code><a class="link" href="camel-CamelMimeFilterYenc.html#CamelMimeFilterYenc" title="CamelMimeFilterYenc"><span class="type">CamelMimeFilterYenc</span></a> *yenc</code></em>);</pre>
275
Get the computed part crc or (<span class="type">guint32</span>) <code class="literal">-1</code> on fail.</p>
360
276
<div class="variablelist"><table border="0">
361
277
<col align="left" valign="top">
364
280
<td><p><span class="term"><em class="parameter"><code>yenc</code></em> :</span></p></td>
365
<td> a <a class="link" href="camel-CamelMimeFilterYenc.html#CamelMimeFilterYenc" title="CamelMimeFilterYenc"><span class="type">CamelMimeFilterYenc</span></a> object
281
<td>a <a class="link" href="camel-CamelMimeFilterYenc.html#CamelMimeFilterYenc" title="CamelMimeFilterYenc"><span class="type">CamelMimeFilterYenc</span></a> object
369
285
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
370
<td> the computed part crc or (<a
371
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint32"
372
><span class="type">guint32</span></a>) <code class="literal">-1</code> on fail.
286
<td> the computed part crc or (<span class="type">guint32</span>) <code class="literal">-1</code> on fail.
379
<div class="refsect2" title="camel_mime_filter_yenc_get_crc ()">
293
<div class="refsect2" lang="en">
380
294
<a name="camel-mime-filter-yenc-get-crc"></a><h3>camel_mime_filter_yenc_get_crc ()</h3>
381
<pre class="programlisting"><a
382
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint32"
383
>guint32</a> camel_mime_filter_yenc_get_crc (<a class="link" href="camel-CamelMimeFilterYenc.html#CamelMimeFilterYenc" title="CamelMimeFilterYenc">CamelMimeFilterYenc</a> *yenc);</pre>
385
Get the computed crc or (<a
386
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint32"
387
><span class="type">guint32</span></a>) -1 on fail.</p>
295
<pre class="programlisting"><span class="returnvalue">guint32</span> camel_mime_filter_yenc_get_crc (<em class="parameter"><code><a class="link" href="camel-CamelMimeFilterYenc.html#CamelMimeFilterYenc" title="CamelMimeFilterYenc"><span class="type">CamelMimeFilterYenc</span></a> *yenc</code></em>);</pre>
297
Get the computed crc or (<span class="type">guint32</span>) -1 on fail.</p>
390
298
<div class="variablelist"><table border="0">
391
299
<col align="left" valign="top">
394
302
<td><p><span class="term"><em class="parameter"><code>yenc</code></em> :</span></p></td>
395
<td> a <span class="type">CamelMimeFiletrYenc</span> object
303
<td>a <span class="type">CamelMimeFiletrYenc</span> object
399
307
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
400
<td> the computed crc or (<a
401
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint32"
402
><span class="type">guint32</span></a>) -1 on fail.
308
<td> the computed crc or (<span class="type">guint32</span>) -1 on fail.
409
<div class="refsect2" title="camel_ydecode_step ()">
315
<div class="refsect2" lang="en">
410
316
<a name="camel-ydecode-step"></a><h3>camel_ydecode_step ()</h3>
411
<pre class="programlisting"><a
412
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gsize"
413
>gsize</a> camel_ydecode_step (const <a
414
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"
417
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gsize"
420
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"
423
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
426
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint32"
429
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint32"
430
>guint32</a> *crc);</pre>
317
<pre class="programlisting"><span class="returnvalue">gsize</span> camel_ydecode_step (<em class="parameter"><code>const <span class="type">guchar</span> *in</code></em>,
318
<em class="parameter"><code><span class="type">gsize</span> inlen</code></em>,
319
<em class="parameter"><code><span class="type">guchar</span> *out</code></em>,
320
<em class="parameter"><code><span class="type">gint</span> *state</code></em>,
321
<em class="parameter"><code><span class="type">guint32</span> *pcrc</code></em>,
322
<em class="parameter"><code><span class="type">guint32</span> *crc</code></em>);</pre>
432
324
Performs a 'decode step' on a chunk of yEncoded data of length
433
325
<em class="parameter"><code>inlen</code></em> pointed to by <em class="parameter"><code>in</code></em> and writes to <em class="parameter"><code>out</code></em>. Assumes the =ybegin
434
326
and =ypart lines have already been stripped off.
437
To get the crc32 value of the part, use <a class="link" href="camel-CamelMimeFilterYenc.html#CAMEL-MIME-YENCODE-CRC-FINAL--CAPS" title="CAMEL_MIME_YENCODE_CRC_FINAL()"><span class="type">CAMEL_MIME_YENCODE_CRC_FINAL</span></a>
329
To get the crc32 value of the part, use <a class="link" href="camel-CamelMimeFilterYenc.html#CAMEL-MIME-YENCODE-CRC-FINAL:CAPS" title="CAMEL_MIME_YENCODE_CRC_FINAL()"><span class="type">CAMEL_MIME_YENCODE_CRC_FINAL</span></a>
438
330
(<em class="parameter"><code>pcrc</code></em>). If there are more parts, you should reuse <em class="parameter"><code>crc</code></em> without
439
331
re-initializing. Once all parts have been decoded, you may get the
440
combined crc32 value of all the parts using <a class="link" href="camel-CamelMimeFilterYenc.html#CAMEL-MIME-YENCODE-CRC-FINAL--CAPS" title="CAMEL_MIME_YENCODE_CRC_FINAL()"><span class="type">CAMEL_MIME_YENCODE_CRC_FINAL</span></a>
332
combined crc32 value of all the parts using <a class="link" href="camel-CamelMimeFilterYenc.html#CAMEL-MIME-YENCODE-CRC-FINAL:CAPS" title="CAMEL_MIME_YENCODE_CRC_FINAL()"><span class="type">CAMEL_MIME_YENCODE_CRC_FINAL</span></a>
441
333
(<em class="parameter"><code>crc</code></em>).</p>
444
334
<div class="variablelist"><table border="0">
445
335
<col align="left" valign="top">
448
338
<td><p><span class="term"><em class="parameter"><code>in</code></em> :</span></p></td>
453
343
<td><p><span class="term"><em class="parameter"><code>inlen</code></em> :</span></p></td>
454
<td> input buffer length
344
<td>input buffer length
458
348
<td><p><span class="term"><em class="parameter"><code>out</code></em> :</span></p></td>
463
353
<td><p><span class="term"><em class="parameter"><code>state</code></em> :</span></p></td>
468
358
<td><p><span class="term"><em class="parameter"><code>pcrc</code></em> :</span></p></td>
473
363
<td><p><span class="term"><em class="parameter"><code>crc</code></em> :</span></p></td>
486
<div class="refsect2" title="camel_yencode_step ()">
376
<div class="refsect2" lang="en">
487
377
<a name="camel-yencode-step"></a><h3>camel_yencode_step ()</h3>
488
<pre class="programlisting"><a
489
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gsize"
490
>gsize</a> camel_yencode_step (const <a
491
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"
494
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gsize"
497
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"
500
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
503
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint32"
506
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint32"
507
>guint32</a> *crc);</pre>
378
<pre class="programlisting"><span class="returnvalue">gsize</span> camel_yencode_step (<em class="parameter"><code>const <span class="type">guchar</span> *in</code></em>,
379
<em class="parameter"><code><span class="type">gsize</span> inlen</code></em>,
380
<em class="parameter"><code><span class="type">guchar</span> *out</code></em>,
381
<em class="parameter"><code><span class="type">gint</span> *state</code></em>,
382
<em class="parameter"><code><span class="type">guint32</span> *pcrc</code></em>,
383
<em class="parameter"><code><span class="type">guint32</span> *crc</code></em>);</pre>
509
385
Performs an yEncode 'encode step' on a chunk of raw data of length
510
386
<em class="parameter"><code>inlen</code></em> pointed to by <em class="parameter"><code>in</code></em> and writes to <em class="parameter"><code>out</code></em>.
513
<em class="parameter"><code>state</code></em> should be initialized to <a class="link" href="camel-CamelMimeFilterYenc.html#CAMEL-MIME-YENCODE-STATE-INIT--CAPS" title="CAMEL_MIME_YENCODE_STATE_INIT"><span class="type">CAMEL_MIME_YENCODE_STATE_INIT</span></a> before
389
<em class="parameter"><code>state</code></em> should be initialized to <a class="link" href="camel-CamelMimeFilterYenc.html#CAMEL-MIME-YENCODE-STATE-INIT:CAPS" title="CAMEL_MIME_YENCODE_STATE_INIT"><span class="type">CAMEL_MIME_YENCODE_STATE_INIT</span></a> before
514
390
beginning making the first call to this function. Subsequent calls
515
391
should reuse <em class="parameter"><code>state</code></em>.
518
394
Along the same lines, <em class="parameter"><code>pcrc</code></em> and <em class="parameter"><code>crc</code></em> should be initialized to
519
<a class="link" href="camel-CamelMimeFilterYenc.html#CAMEL-MIME-YENCODE-CRC-INIT--CAPS" title="CAMEL_MIME_YENCODE_CRC_INIT"><span class="type">CAMEL_MIME_YENCODE_CRC_INIT</span></a> before using.</p>
395
<a class="link" href="camel-CamelMimeFilterYenc.html#CAMEL-MIME-YENCODE-CRC-INIT:CAPS" title="CAMEL_MIME_YENCODE_CRC_INIT"><span class="type">CAMEL_MIME_YENCODE_CRC_INIT</span></a> before using.</p>
522
396
<div class="variablelist"><table border="0">
523
397
<col align="left" valign="top">
526
400
<td><p><span class="term"><em class="parameter"><code>in</code></em> :</span></p></td>
531
405
<td><p><span class="term"><em class="parameter"><code>inlen</code></em> :</span></p></td>
532
<td> input buffer length
406
<td>input buffer length
536
410
<td><p><span class="term"><em class="parameter"><code>out</code></em> :</span></p></td>
541
415
<td><p><span class="term"><em class="parameter"><code>state</code></em> :</span></p></td>
546
420
<td><p><span class="term"><em class="parameter"><code>pcrc</code></em> :</span></p></td>
551
425
<td><p><span class="term"><em class="parameter"><code>crc</code></em> :</span></p></td>
564
<div class="refsect2" title="camel_yencode_close ()">
438
<div class="refsect2" lang="en">
565
439
<a name="camel-yencode-close"></a><h3>camel_yencode_close ()</h3>
566
<pre class="programlisting"><a
567
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gsize"
568
>gsize</a> camel_yencode_close (const <a
569
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"
572
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gsize"
575
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"
578
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
581
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint32"
584
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint32"
585
>guint32</a> *crc);</pre>
440
<pre class="programlisting"><span class="returnvalue">gsize</span> camel_yencode_close (<em class="parameter"><code>const <span class="type">guchar</span> *in</code></em>,
441
<em class="parameter"><code><span class="type">gsize</span> inlen</code></em>,
442
<em class="parameter"><code><span class="type">guchar</span> *out</code></em>,
443
<em class="parameter"><code><span class="type">gint</span> *state</code></em>,
444
<em class="parameter"><code><span class="type">guint32</span> *pcrc</code></em>,
445
<em class="parameter"><code><span class="type">guint32</span> *crc</code></em>);</pre>
587
447
Call this function when finished encoding data with
588
448
<a class="link" href="camel-CamelMimeFilterYenc.html#camel-yencode-step" title="camel_yencode_step ()"><span class="type">camel_yencode_step</span></a> to flush off the remaining state.
591
<a class="link" href="camel-CamelMimeFilterYenc.html#CAMEL-MIME-YENCODE-CRC-FINAL--CAPS" title="CAMEL_MIME_YENCODE_CRC_FINAL()"><span class="type">CAMEL_MIME_YENCODE_CRC_FINAL</span></a> (<em class="parameter"><code>pcrc</code></em>) will give you the crc32 of the
451
<a class="link" href="camel-CamelMimeFilterYenc.html#CAMEL-MIME-YENCODE-CRC-FINAL:CAPS" title="CAMEL_MIME_YENCODE_CRC_FINAL()"><span class="type">CAMEL_MIME_YENCODE_CRC_FINAL</span></a> (<em class="parameter"><code>pcrc</code></em>) will give you the crc32 of the
592
452
encoded "part". If there are more "parts" to encode, you should
593
453
re-use <em class="parameter"><code>crc</code></em> when encoding the next "parts" and then use
594
<a class="link" href="camel-CamelMimeFilterYenc.html#CAMEL-MIME-YENCODE-CRC-FINAL--CAPS" title="CAMEL_MIME_YENCODE_CRC_FINAL()"><span class="type">CAMEL_MIME_YENCODE_CRC_FINAL</span></a> (<em class="parameter"><code>crc</code></em>) to get the combined crc32 value of
454
<a class="link" href="camel-CamelMimeFilterYenc.html#CAMEL-MIME-YENCODE-CRC-FINAL:CAPS" title="CAMEL_MIME_YENCODE_CRC_FINAL()"><span class="type">CAMEL_MIME_YENCODE_CRC_FINAL</span></a> (<em class="parameter"><code>crc</code></em>) to get the combined crc32 value of
595
455
all the parts.</p>
598
456
<div class="variablelist"><table border="0">
599
457
<col align="left" valign="top">
602
460
<td><p><span class="term"><em class="parameter"><code>in</code></em> :</span></p></td>
607
465
<td><p><span class="term"><em class="parameter"><code>inlen</code></em> :</span></p></td>
608
<td> input buffer length
466
<td>input buffer length
612
470
<td><p><span class="term"><em class="parameter"><code>out</code></em> :</span></p></td>
617
475
<td><p><span class="term"><em class="parameter"><code>state</code></em> :</span></p></td>
622
480
<td><p><span class="term"><em class="parameter"><code>pcrc</code></em> :</span></p></td>
627
485
<td><p><span class="term"><em class="parameter"><code>crc</code></em> :</span></p></td>