36
37
<th width="100%" align="center">GLib Reference Manual</th>
37
38
<td><a accesskey="n" href="glib-Data-Checksums.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
39
<tr><td colspan="5" class="shortcuts"><nobr><a href="#id3081705" class="shortcut">Top</a>
41
<a href="#id3081943" class="shortcut">Description</a></nobr></td></tr>
40
<tr><td colspan="5" class="shortcuts">
41
<a href="#glib-Base64-Encoding.synopsis" class="shortcut">Top</a>
43
<a href="#glib-Base64-Encoding.description" class="shortcut">Description</a>
43
46
<div class="refentry" lang="en">
44
47
<a name="glib-Base64-Encoding"></a><div class="titlepage"></div>
45
48
<div class="refnamediv"><table width="100%"><tr>
48
<a name="id3081705"></a><span class="refentrytitle">Base64 Encoding</span>
50
<p>Base64 Encoding — encodes and decodes data in Base64 format</p>
50
<h2><span class="refentrytitle"><a name="glib-Base64-Encoding.top_of_page"></a>Base64 Encoding</span></h2>
51
<p>Base64 Encoding — encodes and decodes data in Base64 format</p>
52
53
<td valign="top" align="right"></td>
53
54
</tr></table></div>
54
55
<div class="refsynopsisdiv">
56
<a name="glib-Base64-Encoding.synopsis"></a><h2>Synopsis</h2>
56
57
<pre class="synopsis">
58
59
#include <glib.h>
61
<a class="link" href="glib-Basic-Types.html#gsize">gsize</a> <a class="link" href="glib-Base64-Encoding.html#g-base64-encode-step">g_base64_encode_step</a> (const <a class="link" href="glib-Basic-Types.html#guchar">guchar</a> *in,
62
<a class="link" href="glib-Basic-Types.html#gsize">gsize</a> len,
63
<a class="link" href="glib-Basic-Types.html#gboolean">gboolean</a> break_lines,
64
<a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *out,
65
<a class="link" href="glib-Basic-Types.html#gint">gint</a> *state,
66
<a class="link" href="glib-Basic-Types.html#gint">gint</a> *save);
67
<a class="link" href="glib-Basic-Types.html#gsize">gsize</a> <a class="link" href="glib-Base64-Encoding.html#g-base64-encode-close">g_base64_encode_close</a> (<a class="link" href="glib-Basic-Types.html#gboolean">gboolean</a> break_lines,
68
<a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *out,
69
<a class="link" href="glib-Basic-Types.html#gint">gint</a> *state,
70
<a class="link" href="glib-Basic-Types.html#gint">gint</a> *save);
71
<a class="link" href="glib-Basic-Types.html#gchar">gchar</a>* <a class="link" href="glib-Base64-Encoding.html#g-base64-encode">g_base64_encode</a> (const <a class="link" href="glib-Basic-Types.html#guchar">guchar</a> *data,
72
<a class="link" href="glib-Basic-Types.html#gsize">gsize</a> len);
73
<a class="link" href="glib-Basic-Types.html#gsize">gsize</a> <a class="link" href="glib-Base64-Encoding.html#g-base64-decode-step">g_base64_decode_step</a> (const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *in,
74
<a class="link" href="glib-Basic-Types.html#gsize">gsize</a> len,
75
<a class="link" href="glib-Basic-Types.html#guchar">guchar</a> *out,
76
<a class="link" href="glib-Basic-Types.html#gint">gint</a> *state,
77
<a class="link" href="glib-Basic-Types.html#guint">guint</a> *save);
78
<a class="link" href="glib-Basic-Types.html#guchar">guchar</a>* <a class="link" href="glib-Base64-Encoding.html#g-base64-decode">g_base64_decode</a> (const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *text,
79
<a class="link" href="glib-Basic-Types.html#gsize">gsize</a> *out_len);
61
<a class="link" href="glib-Basic-Types.html#gsize" title="gsize">gsize</a> <a class="link" href="glib-Base64-Encoding.html#g-base64-encode-step" title="g_base64_encode_step ()">g_base64_encode_step</a> (const <a class="link" href="glib-Basic-Types.html#guchar" title="guchar">guchar</a> *in,
62
<a class="link" href="glib-Basic-Types.html#gsize" title="gsize">gsize</a> len,
63
<a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean">gboolean</a> break_lines,
64
<a class="link" href="glib-Basic-Types.html#gchar" title="gchar">gchar</a> *out,
65
<a class="link" href="glib-Basic-Types.html#gint" title="gint">gint</a> *state,
66
<a class="link" href="glib-Basic-Types.html#gint" title="gint">gint</a> *save);
67
<a class="link" href="glib-Basic-Types.html#gsize" title="gsize">gsize</a> <a class="link" href="glib-Base64-Encoding.html#g-base64-encode-close" title="g_base64_encode_close ()">g_base64_encode_close</a> (<a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean">gboolean</a> break_lines,
68
<a class="link" href="glib-Basic-Types.html#gchar" title="gchar">gchar</a> *out,
69
<a class="link" href="glib-Basic-Types.html#gint" title="gint">gint</a> *state,
70
<a class="link" href="glib-Basic-Types.html#gint" title="gint">gint</a> *save);
71
<a class="link" href="glib-Basic-Types.html#gchar" title="gchar">gchar</a>* <a class="link" href="glib-Base64-Encoding.html#g-base64-encode" title="g_base64_encode ()">g_base64_encode</a> (const <a class="link" href="glib-Basic-Types.html#guchar" title="guchar">guchar</a> *data,
72
<a class="link" href="glib-Basic-Types.html#gsize" title="gsize">gsize</a> len);
73
<a class="link" href="glib-Basic-Types.html#gsize" title="gsize">gsize</a> <a class="link" href="glib-Base64-Encoding.html#g-base64-decode-step" title="g_base64_decode_step ()">g_base64_decode_step</a> (const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar">gchar</a> *in,
74
<a class="link" href="glib-Basic-Types.html#gsize" title="gsize">gsize</a> len,
75
<a class="link" href="glib-Basic-Types.html#guchar" title="guchar">guchar</a> *out,
76
<a class="link" href="glib-Basic-Types.html#gint" title="gint">gint</a> *state,
77
<a class="link" href="glib-Basic-Types.html#guint" title="guint">guint</a> *save);
78
<a class="link" href="glib-Basic-Types.html#guchar" title="guchar">guchar</a> * <a class="link" href="glib-Base64-Encoding.html#g-base64-decode" title="g_base64_decode ()">g_base64_decode</a> (const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar">gchar</a> *text,
79
<a class="link" href="glib-Basic-Types.html#gsize" title="gsize">gsize</a> *out_len);
82
82
<div class="refsect1" lang="en">
83
<a name="id3081943"></a><h2>Description</h2>
83
<a name="glib-Base64-Encoding.description"></a><h2>Description</h2>
85
85
Base64 is an encoding that allows to encode a sequence of arbitrary
86
86
bytes as a sequence of printable ASCII characters. For the definition
87
of Base64, see <a class="ulink" href="http://www.ietf.org/rfc/rfc1421.txt" target="_top">RFC
87
of Base64, see <a class="ulink" href="http://www.ietf.org/rfc/rfc1421.txt" target="_top">RFC
88
88
1421</a> or <a class="ulink" href="http://www.ietf.org/rfc/rfc2045.txt" target="_top">RFC
89
89
2045</a>. Base64 is most commonly used as a MIME transfer encoding
93
GLib supports incremental encoding using <a class="link" href="glib-Base64-Encoding.html#g-base64-encode-step"><code class="function">g_base64_encode_step()</code></a> and
94
<a class="link" href="glib-Base64-Encoding.html#g-base64-encode-close"><code class="function">g_base64_encode_close()</code></a>. Incremental decoding can be done with
95
<a class="link" href="glib-Base64-Encoding.html#g-base64-decode-step"><code class="function">g_base64_decode_step()</code></a>. To encode or decode data in one go, use
96
<a class="link" href="glib-Base64-Encoding.html#g-base64-encode"><code class="function">g_base64_encode()</code></a> or <a class="link" href="glib-Base64-Encoding.html#g-base64-decode"><code class="function">g_base64_decode()</code></a>.
93
GLib supports incremental encoding using <a class="link" href="glib-Base64-Encoding.html#g-base64-encode-step" title="g_base64_encode_step ()"><code class="function">g_base64_encode_step()</code></a> and
94
<a class="link" href="glib-Base64-Encoding.html#g-base64-encode-close" title="g_base64_encode_close ()"><code class="function">g_base64_encode_close()</code></a>. Incremental decoding can be done with
95
<a class="link" href="glib-Base64-Encoding.html#g-base64-decode-step" title="g_base64_decode_step ()"><code class="function">g_base64_decode_step()</code></a>. To encode or decode data in one go, use
96
<a class="link" href="glib-Base64-Encoding.html#g-base64-encode" title="g_base64_encode ()"><code class="function">g_base64_encode()</code></a> or <a class="link" href="glib-Base64-Encoding.html#g-base64-decode" title="g_base64_decode ()"><code class="function">g_base64_decode()</code></a>.
99
99
Support for Base64 encoding has been added in GLib 2.12.
102
102
<div class="refsect1" lang="en">
103
<a name="id3082037"></a><h2>Details</h2>
103
<a name="glib-Base64-Encoding.details"></a><h2>Details</h2>
104
104
<div class="refsect2" lang="en">
105
<a name="id3082047"></a><h3>
106
<a name="g-base64-encode-step"></a>g_base64_encode_step ()</h3>
107
<a class="indexterm" name="id3082063"></a><pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gsize">gsize</a> g_base64_encode_step (const <a class="link" href="glib-Basic-Types.html#guchar">guchar</a> *in,
108
<a class="link" href="glib-Basic-Types.html#gsize">gsize</a> len,
109
<a class="link" href="glib-Basic-Types.html#gboolean">gboolean</a> break_lines,
110
<a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *out,
111
<a class="link" href="glib-Basic-Types.html#gint">gint</a> *state,
112
<a class="link" href="glib-Basic-Types.html#gint">gint</a> *save);</pre>
105
<a name="g-base64-encode-step"></a><h3>g_base64_encode_step ()</h3>
106
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gsize" title="gsize">gsize</a> g_base64_encode_step (const <a class="link" href="glib-Basic-Types.html#guchar" title="guchar">guchar</a> *in,
107
<a class="link" href="glib-Basic-Types.html#gsize" title="gsize">gsize</a> len,
108
<a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean">gboolean</a> break_lines,
109
<a class="link" href="glib-Basic-Types.html#gchar" title="gchar">gchar</a> *out,
110
<a class="link" href="glib-Basic-Types.html#gint" title="gint">gint</a> *state,
111
<a class="link" href="glib-Basic-Types.html#gint" title="gint">gint</a> *save);</pre>
114
113
Incrementally encode a sequence of binary data into it's Base-64 stringified
115
114
representation. By calling this function multiple times you can convert
130
129
It breaks the lines at 72 columns instead of putting all of the text on
131
130
the same line. This avoids problems with long lines in the email system.</p>
135
133
<div class="variablelist"><table border="0">
136
134
<col align="left" valign="top">
139
<td><p><span class="term"><em class="parameter"><code>in</code></em> :</span></p></td>
137
<td><p><span class="term"><em class="parameter"><code>in</code></em> :</span></p></td>
140
138
<td> the binary data to encode
144
<td><p><span class="term"><em class="parameter"><code>len</code></em> :</span></p></td>
142
<td><p><span class="term"><em class="parameter"><code>len</code></em> :</span></p></td>
145
143
<td> the length of <em class="parameter"><code>in</code></em>
149
<td><p><span class="term"><em class="parameter"><code>break_lines</code></em> :</span></p></td>
147
<td><p><span class="term"><em class="parameter"><code>break_lines</code></em> :</span></p></td>
150
148
<td> whether to break long lines
154
<td><p><span class="term"><em class="parameter"><code>out</code></em> :</span></p></td>
152
<td><p><span class="term"><em class="parameter"><code>out</code></em> :</span></p></td>
155
153
<td> pointer to destination buffer
159
<td><p><span class="term"><em class="parameter"><code>state</code></em> :</span></p></td>
160
<td> Saved state between steps, initialize to 0
164
<td><p><span class="term"><em class="parameter"><code>save</code></em> :</span></p></td>
165
<td> Saved state between steps, initialize to 0
169
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
157
<td><p><span class="term"><em class="parameter"><code>state</code></em> :</span></p></td>
158
<td> Saved state between steps, initialize to 0
162
<td><p><span class="term"><em class="parameter"><code>save</code></em> :</span></p></td>
163
<td> Saved state between steps, initialize to 0
167
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
170
168
<td> The number of bytes of output that was written
176
<p class="since">Since 2.12
174
<p class="since">Since 2.12</p>
180
177
<div class="refsect2" lang="en">
181
<a name="id3082302"></a><h3>
182
<a name="g-base64-encode-close"></a>g_base64_encode_close ()</h3>
183
<a class="indexterm" name="id3082318"></a><pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gsize">gsize</a> g_base64_encode_close (<a class="link" href="glib-Basic-Types.html#gboolean">gboolean</a> break_lines,
184
<a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *out,
185
<a class="link" href="glib-Basic-Types.html#gint">gint</a> *state,
186
<a class="link" href="glib-Basic-Types.html#gint">gint</a> *save);</pre>
188
Flush the status from a sequence of calls to <a class="link" href="glib-Base64-Encoding.html#g-base64-encode-step"><code class="function">g_base64_encode_step()</code></a>.</p>
178
<a name="g-base64-encode-close"></a><h3>g_base64_encode_close ()</h3>
179
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gsize" title="gsize">gsize</a> g_base64_encode_close (<a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean">gboolean</a> break_lines,
180
<a class="link" href="glib-Basic-Types.html#gchar" title="gchar">gchar</a> *out,
181
<a class="link" href="glib-Basic-Types.html#gint" title="gint">gint</a> *state,
182
<a class="link" href="glib-Basic-Types.html#gint" title="gint">gint</a> *save);</pre>
184
Flush the status from a sequence of calls to <a class="link" href="glib-Base64-Encoding.html#g-base64-encode-step" title="g_base64_encode_step ()"><code class="function">g_base64_encode_step()</code></a>.</p>
192
187
<div class="variablelist"><table border="0">
193
188
<col align="left" valign="top">
196
<td><p><span class="term"><em class="parameter"><code>break_lines</code></em> :</span></p></td>
191
<td><p><span class="term"><em class="parameter"><code>break_lines</code></em> :</span></p></td>
197
192
<td> whether to break long lines
201
<td><p><span class="term"><em class="parameter"><code>out</code></em> :</span></p></td>
196
<td><p><span class="term"><em class="parameter"><code>out</code></em> :</span></p></td>
202
197
<td> pointer to destination buffer
206
<td><p><span class="term"><em class="parameter"><code>state</code></em> :</span></p></td>
207
<td> Saved state from <a class="link" href="glib-Base64-Encoding.html#g-base64-encode-step"><code class="function">g_base64_encode_step()</code></a>
211
<td><p><span class="term"><em class="parameter"><code>save</code></em> :</span></p></td>
212
<td> Saved state from <a class="link" href="glib-Base64-Encoding.html#g-base64-encode-step"><code class="function">g_base64_encode_step()</code></a>
216
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
201
<td><p><span class="term"><em class="parameter"><code>state</code></em> :</span></p></td>
202
<td> Saved state from <a class="link" href="glib-Base64-Encoding.html#g-base64-encode-step" title="g_base64_encode_step ()"><code class="function">g_base64_encode_step()</code></a>
206
<td><p><span class="term"><em class="parameter"><code>save</code></em> :</span></p></td>
207
<td> Saved state from <a class="link" href="glib-Base64-Encoding.html#g-base64-encode-step" title="g_base64_encode_step ()"><code class="function">g_base64_encode_step()</code></a>
211
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
217
212
<td> The number of bytes of output that was written
223
<p class="since">Since 2.12
218
<p class="since">Since 2.12</p>
227
221
<div class="refsect2" lang="en">
228
<a name="id3082485"></a><h3>
229
<a name="g-base64-encode"></a>g_base64_encode ()</h3>
230
<a class="indexterm" name="id3082500"></a><pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gchar">gchar</a>* g_base64_encode (const <a class="link" href="glib-Basic-Types.html#guchar">guchar</a> *data,
231
<a class="link" href="glib-Basic-Types.html#gsize">gsize</a> len);</pre>
222
<a name="g-base64-encode"></a><h3>g_base64_encode ()</h3>
223
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gchar" title="gchar">gchar</a>* g_base64_encode (const <a class="link" href="glib-Basic-Types.html#guchar" title="guchar">guchar</a> *data,
224
<a class="link" href="glib-Basic-Types.html#gsize" title="gsize">gsize</a> len);</pre>
233
226
Encode a sequence of binary data into its Base-64 stringified
234
227
representation.</p>
238
230
<div class="variablelist"><table border="0">
239
231
<col align="left" valign="top">
242
<td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
234
<td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
243
235
<td> the binary data to encode
247
<td><p><span class="term"><em class="parameter"><code>len</code></em> :</span></p></td>
239
<td><p><span class="term"><em class="parameter"><code>len</code></em> :</span></p></td>
248
240
<td> the length of <em class="parameter"><code>data</code></em>
252
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
244
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
253
245
<td> a newly allocated, zero-terminated Base-64 encoded
254
246
string representing <em class="parameter"><code>data</code></em>. The returned string must
255
be freed with <a class="link" href="glib-Memory-Allocation.html#g-free"><code class="function">g_free()</code></a>.
247
be freed with <a class="link" href="glib-Memory-Allocation.html#g-free" title="g_free ()"><code class="function">g_free()</code></a>.
261
<p class="since">Since 2.12
253
<p class="since">Since 2.12</p>
265
256
<div class="refsect2" lang="en">
266
<a name="id3082614"></a><h3>
267
<a name="g-base64-decode-step"></a>g_base64_decode_step ()</h3>
268
<a class="indexterm" name="id3082629"></a><pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gsize">gsize</a> g_base64_decode_step (const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *in,
269
<a class="link" href="glib-Basic-Types.html#gsize">gsize</a> len,
270
<a class="link" href="glib-Basic-Types.html#guchar">guchar</a> *out,
271
<a class="link" href="glib-Basic-Types.html#gint">gint</a> *state,
272
<a class="link" href="glib-Basic-Types.html#guint">guint</a> *save);</pre>
257
<a name="g-base64-decode-step"></a><h3>g_base64_decode_step ()</h3>
258
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gsize" title="gsize">gsize</a> g_base64_decode_step (const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar">gchar</a> *in,
259
<a class="link" href="glib-Basic-Types.html#gsize" title="gsize">gsize</a> len,
260
<a class="link" href="glib-Basic-Types.html#guchar" title="guchar">guchar</a> *out,
261
<a class="link" href="glib-Basic-Types.html#gint" title="gint">gint</a> *state,
262
<a class="link" href="glib-Basic-Types.html#guint" title="guint">guint</a> *save);</pre>
274
264
Incrementally decode a sequence of binary data from its Base-64 stringified
275
265
representation. By calling this function multiple times you can convert
280
270
be written to it. Since base64 encodes 3 bytes in 4 chars you need
281
271
at least: <em class="parameter"><code>len</code></em> * 3 / 4 bytes.</p>
285
274
<div class="variablelist"><table border="0">
286
275
<col align="left" valign="top">
289
<td><p><span class="term"><em class="parameter"><code>in</code></em> :</span></p></td>
278
<td><p><span class="term"><em class="parameter"><code>in</code></em> :</span></p></td>
290
279
<td> binary input data
294
<td><p><span class="term"><em class="parameter"><code>len</code></em> :</span></p></td>
283
<td><p><span class="term"><em class="parameter"><code>len</code></em> :</span></p></td>
295
284
<td> max length of <em class="parameter"><code>in</code></em> data to decode
299
<td><p><span class="term"><em class="parameter"><code>out</code></em> :</span></p></td>
288
<td><p><span class="term"><em class="parameter"><code>out</code></em> :</span></p></td>
300
289
<td> output buffer
304
<td><p><span class="term"><em class="parameter"><code>state</code></em> :</span></p></td>
305
<td> Saved state between steps, initialize to 0
309
<td><p><span class="term"><em class="parameter"><code>save</code></em> :</span></p></td>
310
<td> Saved state between steps, initialize to 0
314
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
293
<td><p><span class="term"><em class="parameter"><code>state</code></em> :</span></p></td>
294
<td> Saved state between steps, initialize to 0
298
<td><p><span class="term"><em class="parameter"><code>save</code></em> :</span></p></td>
299
<td> Saved state between steps, initialize to 0
303
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
315
304
<td> The number of bytes of output that was written
321
<p class="since">Since 2.12
310
<p class="since">Since 2.12</p>
325
313
<div class="refsect2" lang="en">
326
<a name="id3082806"></a><h3>
327
<a name="g-base64-decode"></a>g_base64_decode ()</h3>
328
<a class="indexterm" name="id3082821"></a><pre class="programlisting"><a class="link" href="glib-Basic-Types.html#guchar">guchar</a>* g_base64_decode (const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *text,
329
<a class="link" href="glib-Basic-Types.html#gsize">gsize</a> *out_len);</pre>
314
<a name="g-base64-decode"></a><h3>g_base64_decode ()</h3>
315
<pre class="programlisting"><a class="link" href="glib-Basic-Types.html#guchar" title="guchar">guchar</a> * g_base64_decode (const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar">gchar</a> *text,
316
<a class="link" href="glib-Basic-Types.html#gsize" title="gsize">gsize</a> *out_len);</pre>
331
318
Decode a sequence of Base-64 encoded text into binary data</p>
335
321
<div class="variablelist"><table border="0">
336
322
<col align="left" valign="top">
339
<td><p><span class="term"><em class="parameter"><code>text</code></em> :</span></p></td>
325
<td><p><span class="term"><em class="parameter"><code>text</code></em> :</span></p></td>
340
326
<td> zero-terminated string with base64 text to decode
344
<td><p><span class="term"><em class="parameter"><code>out_len</code></em> :</span></p></td>
330
<td><p><span class="term"><em class="parameter"><code>out_len</code></em> :</span></p></td>
345
331
<td> The length of the decoded data is written here
349
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
335
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
350
336
<td> a newly allocated buffer containing the binary data
351
337
that <em class="parameter"><code>text</code></em> represents. The returned buffer must
352
be freed with <a class="link" href="glib-Memory-Allocation.html#g-free"><code class="function">g_free()</code></a>.
338
be freed with <a class="link" href="glib-Memory-Allocation.html#g-free" title="g_free ()"><code class="function">g_free()</code></a>.
358
<p class="since">Since 2.12
362
<div class="refsect1" lang="en">
363
<a name="id3082931"></a><div class="refsect2" lang="en"><a name="id3082932"></a></div>
344
<p class="since">Since 2.12</p>
365
<div class="refsect2" lang="en"><a name="id3082933"></a></div>
350
Generated by GTK-Doc V1.11</div>