~ubuntu-branches/ubuntu/vivid/glib2.0/vivid-proposed

« back to all changes in this revision

Viewing changes to docs/reference/gio/html/GOutputStream.html

  • Committer: Package Import Robot
  • Author(s): Andreas Henriksson
  • Date: 2014-03-24 20:58:34 UTC
  • mfrom: (1.66.13)
  • Revision ID: package-import@ubuntu.com-20140324205834-8hsgok8k36ftocqa
Tags: 2.40.0-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
<tbody>
44
44
<tr>
45
45
<td class="function_type">
46
 
<a href="../glib/glib-Basic-Types.html#gssize"><span class="returnvalue">gssize</span></a>
 
46
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gssize"><span class="returnvalue">gssize</span></a>
47
47
</td>
48
48
<td class="function_name">
49
49
<a class="link" href="GOutputStream.html#g-output-stream-write" title="g_output_stream_write ()">g_output_stream_write</a> <span class="c_punctuation">()</span>
51
51
</tr>
52
52
<tr>
53
53
<td class="function_type">
54
 
<a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
 
54
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
55
55
</td>
56
56
<td class="function_name">
57
57
<a class="link" href="GOutputStream.html#g-output-stream-write-all" title="g_output_stream_write_all ()">g_output_stream_write_all</a> <span class="c_punctuation">()</span>
59
59
</tr>
60
60
<tr>
61
61
<td class="function_type">
62
 
<a href="../glib/glib-Basic-Types.html#gssize"><span class="returnvalue">gssize</span></a>
 
62
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gssize"><span class="returnvalue">gssize</span></a>
63
63
</td>
64
64
<td class="function_name">
65
65
<a class="link" href="GOutputStream.html#g-output-stream-splice" title="g_output_stream_splice ()">g_output_stream_splice</a> <span class="c_punctuation">()</span>
67
67
</tr>
68
68
<tr>
69
69
<td class="function_type">
70
 
<a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
 
70
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
71
71
</td>
72
72
<td class="function_name">
73
73
<a class="link" href="GOutputStream.html#g-output-stream-flush" title="g_output_stream_flush ()">g_output_stream_flush</a> <span class="c_punctuation">()</span>
75
75
</tr>
76
76
<tr>
77
77
<td class="function_type">
78
 
<a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
 
78
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
79
79
</td>
80
80
<td class="function_name">
81
81
<a class="link" href="GOutputStream.html#g-output-stream-close" title="g_output_stream_close ()">g_output_stream_close</a> <span class="c_punctuation">()</span>
91
91
</tr>
92
92
<tr>
93
93
<td class="function_type">
94
 
<a href="../glib/glib-Basic-Types.html#gssize"><span class="returnvalue">gssize</span></a>
 
94
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gssize"><span class="returnvalue">gssize</span></a>
95
95
</td>
96
96
<td class="function_name">
97
97
<a class="link" href="GOutputStream.html#g-output-stream-write-finish" title="g_output_stream_write_finish ()">g_output_stream_write_finish</a> <span class="c_punctuation">()</span>
107
107
</tr>
108
108
<tr>
109
109
<td class="function_type">
110
 
<a href="../glib/glib-Basic-Types.html#gssize"><span class="returnvalue">gssize</span></a>
 
110
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gssize"><span class="returnvalue">gssize</span></a>
111
111
</td>
112
112
<td class="function_name">
113
113
<a class="link" href="GOutputStream.html#g-output-stream-splice-finish" title="g_output_stream_splice_finish ()">g_output_stream_splice_finish</a> <span class="c_punctuation">()</span>
123
123
</tr>
124
124
<tr>
125
125
<td class="function_type">
126
 
<a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
 
126
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
127
127
</td>
128
128
<td class="function_name">
129
129
<a class="link" href="GOutputStream.html#g-output-stream-flush-finish" title="g_output_stream_flush_finish ()">g_output_stream_flush_finish</a> <span class="c_punctuation">()</span>
139
139
</tr>
140
140
<tr>
141
141
<td class="function_type">
142
 
<a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
 
142
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
143
143
</td>
144
144
<td class="function_name">
145
145
<a class="link" href="GOutputStream.html#g-output-stream-close-finish" title="g_output_stream_close_finish ()">g_output_stream_close_finish</a> <span class="c_punctuation">()</span>
147
147
</tr>
148
148
<tr>
149
149
<td class="function_type">
150
 
<a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
 
150
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
151
151
</td>
152
152
<td class="function_name">
153
153
<a class="link" href="GOutputStream.html#g-output-stream-is-closing" title="g_output_stream_is_closing ()">g_output_stream_is_closing</a> <span class="c_punctuation">()</span>
155
155
</tr>
156
156
<tr>
157
157
<td class="function_type">
158
 
<a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
 
158
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
159
159
</td>
160
160
<td class="function_name">
161
161
<a class="link" href="GOutputStream.html#g-output-stream-is-closed" title="g_output_stream_is_closed ()">g_output_stream_is_closed</a> <span class="c_punctuation">()</span>
163
163
</tr>
164
164
<tr>
165
165
<td class="function_type">
166
 
<a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
 
166
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
167
167
</td>
168
168
<td class="function_name">
169
169
<a class="link" href="GOutputStream.html#g-output-stream-has-pending" title="g_output_stream_has_pending ()">g_output_stream_has_pending</a> <span class="c_punctuation">()</span>
171
171
</tr>
172
172
<tr>
173
173
<td class="function_type">
174
 
<a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
 
174
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
175
175
</td>
176
176
<td class="function_name">
177
177
<a class="link" href="GOutputStream.html#g-output-stream-set-pending" title="g_output_stream_set_pending ()">g_output_stream_set_pending</a> <span class="c_punctuation">()</span>
187
187
</tr>
188
188
<tr>
189
189
<td class="function_type">
190
 
<a href="../glib/glib-Basic-Types.html#gssize"><span class="returnvalue">gssize</span></a>
 
190
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gssize"><span class="returnvalue">gssize</span></a>
191
191
</td>
192
192
<td class="function_name">
193
193
<a class="link" href="GOutputStream.html#g-output-stream-write-bytes" title="g_output_stream_write_bytes ()">g_output_stream_write_bytes</a> <span class="c_punctuation">()</span>
203
203
</tr>
204
204
<tr>
205
205
<td class="function_type">
206
 
<a href="../glib/glib-Basic-Types.html#gssize"><span class="returnvalue">gssize</span></a>
 
206
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gssize"><span class="returnvalue">gssize</span></a>
207
207
</td>
208
208
<td class="function_name">
209
209
<a class="link" href="GOutputStream.html#g-output-stream-write-bytes-finish" title="g_output_stream_write_bytes_finish ()">g_output_stream_write_bytes_finish</a> <span class="c_punctuation">()</span>
233
233
</div>
234
234
<div class="refsect1">
235
235
<a name="GOutputStream.object-hierarchy"></a><h2>Object Hierarchy</h2>
236
 
<pre class="screen">    <a href="../gobject/gobject-The-Base-Object-Type.html#GObject">GObject</a>
 
236
<pre class="screen">    <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject">GObject</a>
237
237
    <span class="lineart">╰──</span> GOutputStream
238
238
        <span class="lineart">├──</span> <a class="link" href="GFilterOutputStream.html" title="GFilterOutputStream">GFilterOutputStream</a>
239
239
        <span class="lineart">├──</span> <a class="link" href="GFileOutputStream.html" title="GFileOutputStream">GFileOutputStream</a>
265
265
<a name="GOutputStream.functions_details"></a><h2>Functions</h2>
266
266
<div class="refsect2">
267
267
<a name="g-output-stream-write"></a><h3>g_output_stream_write ()</h3>
268
 
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gssize"><span class="returnvalue">gssize</span></a>
 
268
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gssize"><span class="returnvalue">gssize</span></a>
269
269
g_output_stream_write (<em class="parameter"><code><a class="link" href="GOutputStream.html" title="GOutputStream"><span class="type">GOutputStream</span></a> *stream</code></em>,
270
270
                       <em class="parameter"><code>const <span class="type">void</span> *buffer</code></em>,
271
 
                       <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gsize"><span class="type">gsize</span></a> count</code></em>,
 
271
                       <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gsize"><span class="type">gsize</span></a> count</code></em>,
272
272
                       <em class="parameter"><code><a class="link" href="GCancellable.html" title="GCancellable"><span class="type">GCancellable</span></a> *cancellable</code></em>,
273
 
                       <em class="parameter"><code><a href="../glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
 
273
                       <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
274
274
<p>Tries to write <em class="parameter"><code>count</code></em>
275
275
 bytes from <em class="parameter"><code>buffer</code></em>
276
276
 into the stream. Will block
277
277
during the operation.</p>
278
278
<p>If count is 0, returns 0 and does nothing. A value of <em class="parameter"><code>count</code></em>
279
279
 
280
 
larger than <a href="../glib/glib-Basic-Types.html#G-MAXSSIZE:CAPS"><code class="literal">G_MAXSSIZE</code></a> will cause a <a class="link" href="gio-GIOError.html#G-IO-ERROR-INVALID-ARGUMENT:CAPS"><code class="literal">G_IO_ERROR_INVALID_ARGUMENT</code></a> error.</p>
 
280
larger than <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#G-MAXSSIZE:CAPS"><code class="literal">G_MAXSSIZE</code></a> will cause a <a class="link" href="gio-GIOError.html#G-IO-ERROR-INVALID-ARGUMENT:CAPS"><code class="literal">G_IO_ERROR_INVALID_ARGUMENT</code></a> error.</p>
281
281
<p>On success, the number of bytes written to the stream is returned.
282
282
It is not an error if this is not the same as the requested size, as it
283
283
can happen e.g. on a partial I/O error, or if there is not enough
286
286
<em class="parameter"><code>count</code></em>
287
287
 is 0).</p>
288
288
<p>If <em class="parameter"><code>cancellable</code></em>
289
 
 is not <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, then the operation can be cancelled by
 
289
 is not <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, then the operation can be cancelled by
290
290
triggering the cancellable object from another thread. If the operation
291
291
was cancelled, the error <a class="link" href="gio-GIOError.html#G-IO-ERROR-CANCELLED:CAPS"><code class="literal">G_IO_ERROR_CANCELLED</code></a> will be returned. If an
292
292
operation was partially finished when the operation was cancelled the
325
325
</tr>
326
326
<tr>
327
327
<td class="parameter_name"><p>error</p></td>
328
 
<td class="parameter_description"><p>location to store the error occurring, or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to ignore</p></td>
 
328
<td class="parameter_description"><p>location to store the error occurring, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to ignore</p></td>
329
329
<td class="parameter_annotations"> </td>
330
330
</tr>
331
331
</tbody>
340
340
<hr>
341
341
<div class="refsect2">
342
342
<a name="g-output-stream-write-all"></a><h3>g_output_stream_write_all ()</h3>
343
 
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
 
343
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
344
344
g_output_stream_write_all (<em class="parameter"><code><a class="link" href="GOutputStream.html" title="GOutputStream"><span class="type">GOutputStream</span></a> *stream</code></em>,
345
345
                           <em class="parameter"><code>const <span class="type">void</span> *buffer</code></em>,
346
 
                           <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gsize"><span class="type">gsize</span></a> count</code></em>,
347
 
                           <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gsize"><span class="type">gsize</span></a> *bytes_written</code></em>,
 
346
                           <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gsize"><span class="type">gsize</span></a> count</code></em>,
 
347
                           <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gsize"><span class="type">gsize</span></a> *bytes_written</code></em>,
348
348
                           <em class="parameter"><code><a class="link" href="GCancellable.html" title="GCancellable"><span class="type">GCancellable</span></a> *cancellable</code></em>,
349
 
                           <em class="parameter"><code><a href="../glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
 
349
                           <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
350
350
<p>Tries to write <em class="parameter"><code>count</code></em>
351
351
 bytes from <em class="parameter"><code>buffer</code></em>
352
352
 into the stream. Will block
354
354
<p>This function is similar to <a class="link" href="GOutputStream.html#g-output-stream-write" title="g_output_stream_write ()"><code class="function">g_output_stream_write()</code></a>, except it tries to
355
355
write as many bytes as requested, only stopping on an error.</p>
356
356
<p>On a successful write of <em class="parameter"><code>count</code></em>
357
 
 bytes, <a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> is returned, and <em class="parameter"><code>bytes_written</code></em>
 
357
 bytes, <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> is returned, and <em class="parameter"><code>bytes_written</code></em>
358
358
 
359
359
is set to <em class="parameter"><code>count</code></em>
360
360
.</p>
361
 
<p>If there is an error during the operation <a href="../glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> is returned and <em class="parameter"><code>error</code></em>
 
361
<p>If there is an error during the operation <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> is returned and <em class="parameter"><code>error</code></em>
362
362
 
363
363
is set to indicate the error status, <em class="parameter"><code>bytes_written</code></em>
364
364
 is updated to contain
395
395
</tr>
396
396
<tr>
397
397
<td class="parameter_name"><p>cancellable</p></td>
398
 
<td class="parameter_description"><p> optional <a class="link" href="GCancellable.html" title="GCancellable"><span class="type">GCancellable</span></a> object, <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to ignore. </p></td>
 
398
<td class="parameter_description"><p> optional <a class="link" href="GCancellable.html" title="GCancellable"><span class="type">GCancellable</span></a> object, <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to ignore. </p></td>
399
399
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
400
400
</tr>
401
401
<tr>
402
402
<td class="parameter_name"><p>error</p></td>
403
 
<td class="parameter_description"><p>location to store the error occurring, or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to ignore</p></td>
 
403
<td class="parameter_description"><p>location to store the error occurring, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to ignore</p></td>
404
404
<td class="parameter_annotations"> </td>
405
405
</tr>
406
406
</tbody>
408
408
</div>
409
409
<div class="refsect3">
410
410
<a name="id-1.4.7.4.9.3.9"></a><h4>Returns</h4>
411
 
<p> <a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> on success, <a href="../glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> if there was an error</p>
 
411
<p> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> on success, <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> if there was an error</p>
412
412
<p></p>
413
413
</div>
414
414
</div>
415
415
<hr>
416
416
<div class="refsect2">
417
417
<a name="g-output-stream-splice"></a><h3>g_output_stream_splice ()</h3>
418
 
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gssize"><span class="returnvalue">gssize</span></a>
 
418
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gssize"><span class="returnvalue">gssize</span></a>
419
419
g_output_stream_splice (<em class="parameter"><code><a class="link" href="GOutputStream.html" title="GOutputStream"><span class="type">GOutputStream</span></a> *stream</code></em>,
420
420
                        <em class="parameter"><code><a class="link" href="GInputStream.html" title="GInputStream"><span class="type">GInputStream</span></a> *source</code></em>,
421
421
                        <em class="parameter"><code><a class="link" href="GOutputStream.html#GOutputStreamSpliceFlags" title="enum GOutputStreamSpliceFlags"><span class="type">GOutputStreamSpliceFlags</span></a> flags</code></em>,
422
422
                        <em class="parameter"><code><a class="link" href="GCancellable.html" title="GCancellable"><span class="type">GCancellable</span></a> *cancellable</code></em>,
423
 
                        <em class="parameter"><code><a href="../glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
 
423
                        <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
424
424
<p>Splices an input stream into an output stream.</p>
425
425
<div class="refsect3">
426
426
<a name="id-1.4.7.4.9.4.5"></a><h4>Parameters</h4>
448
448
</tr>
449
449
<tr>
450
450
<td class="parameter_name"><p>cancellable</p></td>
451
 
<td class="parameter_description"><p> optional <a class="link" href="GCancellable.html" title="GCancellable"><span class="type">GCancellable</span></a> object, <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to ignore. </p></td>
 
451
<td class="parameter_description"><p> optional <a class="link" href="GCancellable.html" title="GCancellable"><span class="type">GCancellable</span></a> object, <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to ignore. </p></td>
452
452
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
453
453
</tr>
454
454
<tr>
455
455
<td class="parameter_name"><p>error</p></td>
456
 
<td class="parameter_description"><p>a <a href="../glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> location to store the error occurring, or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to
 
456
<td class="parameter_description"><p>a <a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> location to store the error occurring, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to
457
457
ignore.</p></td>
458
458
<td class="parameter_annotations"> </td>
459
459
</tr>
462
462
</div>
463
463
<div class="refsect3">
464
464
<a name="id-1.4.7.4.9.4.6"></a><h4>Returns</h4>
465
 
<p> a <a href="../glib/glib-Basic-Types.html#gssize"><span class="type">gssize</span></a> containing the size of the data spliced, or
 
465
<p> a <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gssize"><span class="type">gssize</span></a> containing the size of the data spliced, or
466
466
-1 if an error occurred. Note that if the number of bytes
467
 
spliced is greater than <a href="../glib/glib-Basic-Types.html#G-MAXSSIZE:CAPS"><code class="literal">G_MAXSSIZE</code></a>, then that will be
 
467
spliced is greater than <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#G-MAXSSIZE:CAPS"><code class="literal">G_MAXSSIZE</code></a>, then that will be
468
468
returned, and there is no way to determine the actual number
469
469
of bytes spliced.</p>
470
470
<p></p>
473
473
<hr>
474
474
<div class="refsect2">
475
475
<a name="g-output-stream-flush"></a><h3>g_output_stream_flush ()</h3>
476
 
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
 
476
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
477
477
g_output_stream_flush (<em class="parameter"><code><a class="link" href="GOutputStream.html" title="GOutputStream"><span class="type">GOutputStream</span></a> *stream</code></em>,
478
478
                       <em class="parameter"><code><a class="link" href="GCancellable.html" title="GCancellable"><span class="type">GCancellable</span></a> *cancellable</code></em>,
479
 
                       <em class="parameter"><code><a href="../glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
 
479
                       <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
480
480
<p>Forces a write of all user-space buffered data for the given
481
481
<em class="parameter"><code>stream</code></em>
482
482
. Will block during the operation. Closing the stream will
483
483
implicitly cause a flush.</p>
484
484
<p>This function is optional for inherited classes.</p>
485
485
<p>If <em class="parameter"><code>cancellable</code></em>
486
 
 is not <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, then the operation can be cancelled by
 
486
 is not <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, then the operation can be cancelled by
487
487
triggering the cancellable object from another thread. If the operation
488
488
was cancelled, the error <a class="link" href="gio-GIOError.html#G-IO-ERROR-CANCELLED:CAPS"><code class="literal">G_IO_ERROR_CANCELLED</code></a> will be returned.</p>
489
489
<div class="refsect3">
507
507
</tr>
508
508
<tr>
509
509
<td class="parameter_name"><p>error</p></td>
510
 
<td class="parameter_description"><p>location to store the error occurring, or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to ignore</p></td>
 
510
<td class="parameter_description"><p>location to store the error occurring, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to ignore</p></td>
511
511
<td class="parameter_annotations"> </td>
512
512
</tr>
513
513
</tbody>
515
515
</div>
516
516
<div class="refsect3">
517
517
<a name="id-1.4.7.4.9.5.8"></a><h4>Returns</h4>
518
 
<p> <a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> on success, <a href="../glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> on error</p>
 
518
<p> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> on success, <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> on error</p>
519
519
<p></p>
520
520
</div>
521
521
</div>
522
522
<hr>
523
523
<div class="refsect2">
524
524
<a name="g-output-stream-close"></a><h3>g_output_stream_close ()</h3>
525
 
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
 
525
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
526
526
g_output_stream_close (<em class="parameter"><code><a class="link" href="GOutputStream.html" title="GOutputStream"><span class="type">GOutputStream</span></a> *stream</code></em>,
527
527
                       <em class="parameter"><code><a class="link" href="GCancellable.html" title="GCancellable"><span class="type">GCancellable</span></a> *cancellable</code></em>,
528
 
                       <em class="parameter"><code><a href="../glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
 
528
                       <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
529
529
<p>Closes the stream, releasing resources related to it.</p>
530
530
<p>Once the stream is closed, all other operations will return <a class="link" href="gio-GIOError.html#G-IO-ERROR-CLOSED:CAPS"><code class="literal">G_IO_ERROR_CLOSED</code></a>.
531
531
Closing a stream multiple times will not return an error.</p>
543
543
is important to check and report the error to the user, otherwise
544
544
there might be a loss of data as all data might not be written.</p>
545
545
<p>If <em class="parameter"><code>cancellable</code></em>
546
 
 is not <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, then the operation can be cancelled by
 
546
 is not <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, then the operation can be cancelled by
547
547
triggering the cancellable object from another thread. If the operation
548
548
was cancelled, the error <a class="link" href="gio-GIOError.html#G-IO-ERROR-CANCELLED:CAPS"><code class="literal">G_IO_ERROR_CANCELLED</code></a> will be returned.
549
549
Cancelling a close will still leave the stream closed, but there some streams
571
571
</tr>
572
572
<tr>
573
573
<td class="parameter_name"><p>error</p></td>
574
 
<td class="parameter_description"><p>location to store the error occurring, or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to ignore</p></td>
 
574
<td class="parameter_description"><p>location to store the error occurring, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to ignore</p></td>
575
575
<td class="parameter_annotations"> </td>
576
576
</tr>
577
577
</tbody>
579
579
</div>
580
580
<div class="refsect3">
581
581
<a name="id-1.4.7.4.9.6.12"></a><h4>Returns</h4>
582
 
<p> <a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> on success, <a href="../glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> on failure</p>
 
582
<p> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> on success, <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> on failure</p>
583
583
<p></p>
584
584
</div>
585
585
</div>
589
589
<pre class="programlisting"><span class="returnvalue">void</span>
590
590
g_output_stream_write_async (<em class="parameter"><code><a class="link" href="GOutputStream.html" title="GOutputStream"><span class="type">GOutputStream</span></a> *stream</code></em>,
591
591
                             <em class="parameter"><code>const <span class="type">void</span> *buffer</code></em>,
592
 
                             <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gsize"><span class="type">gsize</span></a> count</code></em>,
 
592
                             <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gsize"><span class="type">gsize</span></a> count</code></em>,
593
593
                             <em class="parameter"><code><span class="type">int</span> io_priority</code></em>,
594
594
                             <em class="parameter"><code><a class="link" href="GCancellable.html" title="GCancellable"><span class="type">GCancellable</span></a> *cancellable</code></em>,
595
595
                             <em class="parameter"><code><a class="link" href="GAsyncResult.html#GAsyncReadyCallback" title="GAsyncReadyCallback ()"><span class="type">GAsyncReadyCallback</span></a> callback</code></em>,
596
 
                             <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);</pre>
 
596
                             <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);</pre>
597
597
<p>Request an asynchronous write of <em class="parameter"><code>count</code></em>
598
598
 bytes from <em class="parameter"><code>buffer</code></em>
599
599
 into 
604
604
<p>During an async request no other sync and async calls are allowed, 
605
605
and will result in <a class="link" href="gio-GIOError.html#G-IO-ERROR-PENDING:CAPS"><code class="literal">G_IO_ERROR_PENDING</code></a> errors. </p>
606
606
<p>A value of <em class="parameter"><code>count</code></em>
607
 
 larger than <a href="../glib/glib-Basic-Types.html#G-MAXSSIZE:CAPS"><code class="literal">G_MAXSSIZE</code></a> will cause a 
 
607
 larger than <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#G-MAXSSIZE:CAPS"><code class="literal">G_MAXSSIZE</code></a> will cause a 
608
608
<a class="link" href="gio-GIOError.html#G-IO-ERROR-INVALID-ARGUMENT:CAPS"><code class="literal">G_IO_ERROR_INVALID_ARGUMENT</code></a> error.</p>
609
609
<p>On success, the number of bytes written will be passed to the
610
610
<em class="parameter"><code>callback</code></em>
617
617
method will just wait until this changes.</p>
618
618
<p>Any outstanding I/O request with higher priority (lower numerical 
619
619
value) will be executed before an outstanding request with lower 
620
 
priority. Default priority is <a href="../glib/glib-The-Main-Event-Loop.html#G-PRIORITY-DEFAULT:CAPS"><code class="literal">G_PRIORITY_DEFAULT</code></a>.</p>
 
620
priority. Default priority is <a href="http://library.gnome.org/devel/glib/unstable/glib-The-Main-Event-Loop.html#G-PRIORITY-DEFAULT:CAPS"><code class="literal">G_PRIORITY_DEFAULT</code></a>.</p>
621
621
<p>The asyncronous methods have a default fallback that uses threads 
622
622
to implement asynchronicity, so they are optional for inheriting 
623
623
classes. However, if you override one you must override all.</p>
627
627
 will be made, so it must stay valid
628
628
until <em class="parameter"><code>callback</code></em>
629
629
 is called. See <a class="link" href="GOutputStream.html#g-output-stream-write-bytes-async" title="g_output_stream_write_bytes_async ()"><code class="function">g_output_stream_write_bytes_async()</code></a>
630
 
for a <a href="../glib/glib-Byte-Arrays.html#GBytes"><span class="type">GBytes</span></a> version that will automatically hold a reference to
 
630
for a <a href="http://library.gnome.org/devel/glib/unstable/glib-Byte-Arrays.html#GBytes"><span class="type">GBytes</span></a> version that will automatically hold a reference to
631
631
the contents (without copying) for the duration of the call.</p>
632
632
<div class="refsect3">
633
633
<a name="id-1.4.7.4.9.7.13"></a><h4>Parameters</h4>
660
660
</tr>
661
661
<tr>
662
662
<td class="parameter_name"><p>cancellable</p></td>
663
 
<td class="parameter_description"><p> optional <a class="link" href="GCancellable.html" title="GCancellable"><span class="type">GCancellable</span></a> object, <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to ignore. </p></td>
 
663
<td class="parameter_description"><p> optional <a class="link" href="GCancellable.html" title="GCancellable"><span class="type">GCancellable</span></a> object, <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to ignore. </p></td>
664
664
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
665
665
</tr>
666
666
<tr>
680
680
<hr>
681
681
<div class="refsect2">
682
682
<a name="g-output-stream-write-finish"></a><h3>g_output_stream_write_finish ()</h3>
683
 
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gssize"><span class="returnvalue">gssize</span></a>
 
683
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gssize"><span class="returnvalue">gssize</span></a>
684
684
g_output_stream_write_finish (<em class="parameter"><code><a class="link" href="GOutputStream.html" title="GOutputStream"><span class="type">GOutputStream</span></a> *stream</code></em>,
685
685
                              <em class="parameter"><code><a class="link" href="GAsyncResult.html" title="GAsyncResult"><span class="type">GAsyncResult</span></a> *result</code></em>,
686
 
                              <em class="parameter"><code><a href="../glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
 
686
                              <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
687
687
<p>Finishes a stream write operation.</p>
688
688
<div class="refsect3">
689
689
<a name="id-1.4.7.4.9.8.5"></a><h4>Parameters</h4>
706
706
</tr>
707
707
<tr>
708
708
<td class="parameter_name"><p>error</p></td>
709
 
<td class="parameter_description"><p>a <a href="../glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> location to store the error occurring, or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to
 
709
<td class="parameter_description"><p>a <a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> location to store the error occurring, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to
710
710
ignore.</p></td>
711
711
<td class="parameter_annotations"> </td>
712
712
</tr>
715
715
</div>
716
716
<div class="refsect3">
717
717
<a name="id-1.4.7.4.9.8.6"></a><h4>Returns</h4>
718
 
<p> a <a href="../glib/glib-Basic-Types.html#gssize"><span class="type">gssize</span></a> containing the number of bytes written to the stream.</p>
 
718
<p> a <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gssize"><span class="type">gssize</span></a> containing the number of bytes written to the stream.</p>
719
719
<p></p>
720
720
</div>
721
721
</div>
729
729
                              <em class="parameter"><code><span class="type">int</span> io_priority</code></em>,
730
730
                              <em class="parameter"><code><a class="link" href="GCancellable.html" title="GCancellable"><span class="type">GCancellable</span></a> *cancellable</code></em>,
731
731
                              <em class="parameter"><code><a class="link" href="GAsyncResult.html#GAsyncReadyCallback" title="GAsyncReadyCallback ()"><span class="type">GAsyncReadyCallback</span></a> callback</code></em>,
732
 
                              <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);</pre>
 
732
                              <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);</pre>
733
733
<p>Splices a stream asynchronously.
734
734
When the operation is finished <em class="parameter"><code>callback</code></em>
735
735
 will be called.
768
768
</tr>
769
769
<tr>
770
770
<td class="parameter_name"><p>cancellable</p></td>
771
 
<td class="parameter_description"><p> optional <a class="link" href="GCancellable.html" title="GCancellable"><span class="type">GCancellable</span></a> object, <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to ignore. </p></td>
 
771
<td class="parameter_description"><p> optional <a class="link" href="GCancellable.html" title="GCancellable"><span class="type">GCancellable</span></a> object, <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to ignore. </p></td>
772
772
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
773
773
</tr>
774
774
<tr>
789
789
<hr>
790
790
<div class="refsect2">
791
791
<a name="g-output-stream-splice-finish"></a><h3>g_output_stream_splice_finish ()</h3>
792
 
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gssize"><span class="returnvalue">gssize</span></a>
 
792
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gssize"><span class="returnvalue">gssize</span></a>
793
793
g_output_stream_splice_finish (<em class="parameter"><code><a class="link" href="GOutputStream.html" title="GOutputStream"><span class="type">GOutputStream</span></a> *stream</code></em>,
794
794
                               <em class="parameter"><code><a class="link" href="GAsyncResult.html" title="GAsyncResult"><span class="type">GAsyncResult</span></a> *result</code></em>,
795
 
                               <em class="parameter"><code><a href="../glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
 
795
                               <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
796
796
<p>Finishes an asynchronous stream splice operation.</p>
797
797
<div class="refsect3">
798
798
<a name="id-1.4.7.4.9.10.5"></a><h4>Parameters</h4>
815
815
</tr>
816
816
<tr>
817
817
<td class="parameter_name"><p>error</p></td>
818
 
<td class="parameter_description"><p>a <a href="../glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> location to store the error occurring, or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to
 
818
<td class="parameter_description"><p>a <a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> location to store the error occurring, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to
819
819
ignore.</p></td>
820
820
<td class="parameter_annotations"> </td>
821
821
</tr>
824
824
</div>
825
825
<div class="refsect3">
826
826
<a name="id-1.4.7.4.9.10.6"></a><h4>Returns</h4>
827
 
<p> a <a href="../glib/glib-Basic-Types.html#gssize"><span class="type">gssize</span></a> of the number of bytes spliced. Note that if the
828
 
number of bytes spliced is greater than <a href="../glib/glib-Basic-Types.html#G-MAXSSIZE:CAPS"><code class="literal">G_MAXSSIZE</code></a>, then that
 
827
<p> a <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gssize"><span class="type">gssize</span></a> of the number of bytes spliced. Note that if the
 
828
number of bytes spliced is greater than <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#G-MAXSSIZE:CAPS"><code class="literal">G_MAXSSIZE</code></a>, then that
829
829
will be returned, and there is no way to determine the actual
830
830
number of bytes spliced.</p>
831
831
<p></p>
839
839
                             <em class="parameter"><code><span class="type">int</span> io_priority</code></em>,
840
840
                             <em class="parameter"><code><a class="link" href="GCancellable.html" title="GCancellable"><span class="type">GCancellable</span></a> *cancellable</code></em>,
841
841
                             <em class="parameter"><code><a class="link" href="GAsyncResult.html#GAsyncReadyCallback" title="GAsyncReadyCallback ()"><span class="type">GAsyncReadyCallback</span></a> callback</code></em>,
842
 
                             <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);</pre>
 
842
                             <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);</pre>
843
843
<p>Forces an asynchronous write of all user-space buffered data for
844
844
the given <em class="parameter"><code>stream</code></em>
845
845
.
869
869
</tr>
870
870
<tr>
871
871
<td class="parameter_name"><p>cancellable</p></td>
872
 
<td class="parameter_description"><p> optional <a class="link" href="GCancellable.html" title="GCancellable"><span class="type">GCancellable</span></a> object, <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to ignore. </p></td>
 
872
<td class="parameter_description"><p> optional <a class="link" href="GCancellable.html" title="GCancellable"><span class="type">GCancellable</span></a> object, <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to ignore. </p></td>
873
873
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
874
874
</tr>
875
875
<tr>
889
889
<hr>
890
890
<div class="refsect2">
891
891
<a name="g-output-stream-flush-finish"></a><h3>g_output_stream_flush_finish ()</h3>
892
 
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
 
892
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
893
893
g_output_stream_flush_finish (<em class="parameter"><code><a class="link" href="GOutputStream.html" title="GOutputStream"><span class="type">GOutputStream</span></a> *stream</code></em>,
894
894
                              <em class="parameter"><code><a class="link" href="GAsyncResult.html" title="GAsyncResult"><span class="type">GAsyncResult</span></a> *result</code></em>,
895
 
                              <em class="parameter"><code><a href="../glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
 
895
                              <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
896
896
<p>Finishes flushing an output stream.</p>
897
897
<div class="refsect3">
898
898
<a name="id-1.4.7.4.9.12.5"></a><h4>Parameters</h4>
915
915
</tr>
916
916
<tr>
917
917
<td class="parameter_name"><p>error</p></td>
918
 
<td class="parameter_description"><p>a <a href="../glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> location to store the error occurring, or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to
 
918
<td class="parameter_description"><p>a <a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> location to store the error occurring, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to
919
919
ignore.</p></td>
920
920
<td class="parameter_annotations"> </td>
921
921
</tr>
924
924
</div>
925
925
<div class="refsect3">
926
926
<a name="id-1.4.7.4.9.12.6"></a><h4>Returns</h4>
927
 
<p> <a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if flush operation succeeded, <a href="../glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise.</p>
 
927
<p> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if flush operation succeeded, <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise.</p>
928
928
<p></p>
929
929
</div>
930
930
</div>
936
936
                             <em class="parameter"><code><span class="type">int</span> io_priority</code></em>,
937
937
                             <em class="parameter"><code><a class="link" href="GCancellable.html" title="GCancellable"><span class="type">GCancellable</span></a> *cancellable</code></em>,
938
938
                             <em class="parameter"><code><a class="link" href="GAsyncResult.html#GAsyncReadyCallback" title="GAsyncReadyCallback ()"><span class="type">GAsyncReadyCallback</span></a> callback</code></em>,
939
 
                             <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);</pre>
 
939
                             <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);</pre>
940
940
<p>Requests an asynchronous close of the stream, releasing resources 
941
941
related to it. When the operation is finished <em class="parameter"><code>callback</code></em>
942
942
 will be 
987
987
<hr>
988
988
<div class="refsect2">
989
989
<a name="g-output-stream-close-finish"></a><h3>g_output_stream_close_finish ()</h3>
990
 
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
 
990
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
991
991
g_output_stream_close_finish (<em class="parameter"><code><a class="link" href="GOutputStream.html" title="GOutputStream"><span class="type">GOutputStream</span></a> *stream</code></em>,
992
992
                              <em class="parameter"><code><a class="link" href="GAsyncResult.html" title="GAsyncResult"><span class="type">GAsyncResult</span></a> *result</code></em>,
993
 
                              <em class="parameter"><code><a href="../glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
 
993
                              <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
994
994
<p>Closes an output stream.</p>
995
995
<div class="refsect3">
996
996
<a name="id-1.4.7.4.9.14.5"></a><h4>Parameters</h4>
1013
1013
</tr>
1014
1014
<tr>
1015
1015
<td class="parameter_name"><p>error</p></td>
1016
 
<td class="parameter_description"><p>a <a href="../glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> location to store the error occurring, or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to
 
1016
<td class="parameter_description"><p>a <a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> location to store the error occurring, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to
1017
1017
ignore.</p></td>
1018
1018
<td class="parameter_annotations"> </td>
1019
1019
</tr>
1022
1022
</div>
1023
1023
<div class="refsect3">
1024
1024
<a name="id-1.4.7.4.9.14.6"></a><h4>Returns</h4>
1025
 
<p> <a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if stream was successfully closed, <a href="../glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise.</p>
 
1025
<p> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if stream was successfully closed, <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise.</p>
1026
1026
<p></p>
1027
1027
</div>
1028
1028
</div>
1029
1029
<hr>
1030
1030
<div class="refsect2">
1031
1031
<a name="g-output-stream-is-closing"></a><h3>g_output_stream_is_closing ()</h3>
1032
 
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
 
1032
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
1033
1033
g_output_stream_is_closing (<em class="parameter"><code><a class="link" href="GOutputStream.html" title="GOutputStream"><span class="type">GOutputStream</span></a> *stream</code></em>);</pre>
1034
1034
<p>Checks if an output stream is being closed. This can be
1035
1035
used inside e.g. a flush implementation to see if the
1052
1052
</div>
1053
1053
<div class="refsect3">
1054
1054
<a name="id-1.4.7.4.9.15.6"></a><h4>Returns</h4>
1055
 
<p> <a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>stream</code></em>
1056
 
is being closed. <a href="../glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise.</p>
 
1055
<p> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>stream</code></em>
 
1056
is being closed. <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise.</p>
1057
1057
<p></p>
1058
1058
</div>
1059
1059
<p class="since">Since 2.24</p>
1061
1061
<hr>
1062
1062
<div class="refsect2">
1063
1063
<a name="g-output-stream-is-closed"></a><h3>g_output_stream_is_closed ()</h3>
1064
 
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
 
1064
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
1065
1065
g_output_stream_is_closed (<em class="parameter"><code><a class="link" href="GOutputStream.html" title="GOutputStream"><span class="type">GOutputStream</span></a> *stream</code></em>);</pre>
1066
1066
<p>Checks if an output stream has already been closed.</p>
1067
1067
<div class="refsect3">
1081
1081
</div>
1082
1082
<div class="refsect3">
1083
1083
<a name="id-1.4.7.4.9.16.6"></a><h4>Returns</h4>
1084
 
<p> <a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>stream</code></em>
1085
 
is closed. <a href="../glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise. </p>
 
1084
<p> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>stream</code></em>
 
1085
is closed. <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise. </p>
1086
1086
<p></p>
1087
1087
</div>
1088
1088
</div>
1089
1089
<hr>
1090
1090
<div class="refsect2">
1091
1091
<a name="g-output-stream-has-pending"></a><h3>g_output_stream_has_pending ()</h3>
1092
 
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
 
1092
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
1093
1093
g_output_stream_has_pending (<em class="parameter"><code><a class="link" href="GOutputStream.html" title="GOutputStream"><span class="type">GOutputStream</span></a> *stream</code></em>);</pre>
1094
1094
<p>Checks if an ouput stream has pending actions.</p>
1095
1095
<div class="refsect3">
1109
1109
</div>
1110
1110
<div class="refsect3">
1111
1111
<a name="id-1.4.7.4.9.17.6"></a><h4>Returns</h4>
1112
 
<p> <a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>stream</code></em>
 
1112
<p> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>stream</code></em>
1113
1113
has pending actions. </p>
1114
1114
<p></p>
1115
1115
</div>
1117
1117
<hr>
1118
1118
<div class="refsect2">
1119
1119
<a name="g-output-stream-set-pending"></a><h3>g_output_stream_set_pending ()</h3>
1120
 
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
 
1120
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
1121
1121
g_output_stream_set_pending (<em class="parameter"><code><a class="link" href="GOutputStream.html" title="GOutputStream"><span class="type">GOutputStream</span></a> *stream</code></em>,
1122
 
                             <em class="parameter"><code><a href="../glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
 
1122
                             <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
1123
1123
<p>Sets <em class="parameter"><code>stream</code></em>
1124
1124
 to have actions pending. If the pending flag is
1125
1125
already set or <em class="parameter"><code>stream</code></em>
1126
 
 is closed, it will return <a href="../glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> and set
 
1126
 is closed, it will return <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> and set
1127
1127
<em class="parameter"><code>error</code></em>
1128
1128
.</p>
1129
1129
<div class="refsect3">
1142
1142
</tr>
1143
1143
<tr>
1144
1144
<td class="parameter_name"><p>error</p></td>
1145
 
<td class="parameter_description"><p>a <a href="../glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> location to store the error occurring, or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to
 
1145
<td class="parameter_description"><p>a <a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> location to store the error occurring, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to
1146
1146
ignore.</p></td>
1147
1147
<td class="parameter_annotations"> </td>
1148
1148
</tr>
1151
1151
</div>
1152
1152
<div class="refsect3">
1153
1153
<a name="id-1.4.7.4.9.18.6"></a><h4>Returns</h4>
1154
 
<p> <a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if pending was previously unset and is now set.</p>
 
1154
<p> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if pending was previously unset and is now set.</p>
1155
1155
<p></p>
1156
1156
</div>
1157
1157
</div>
1181
1181
<hr>
1182
1182
<div class="refsect2">
1183
1183
<a name="g-output-stream-write-bytes"></a><h3>g_output_stream_write_bytes ()</h3>
1184
 
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gssize"><span class="returnvalue">gssize</span></a>
 
1184
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gssize"><span class="returnvalue">gssize</span></a>
1185
1185
g_output_stream_write_bytes (<em class="parameter"><code><a class="link" href="GOutputStream.html" title="GOutputStream"><span class="type">GOutputStream</span></a> *stream</code></em>,
1186
 
                             <em class="parameter"><code><a href="../glib/glib-Byte-Arrays.html#GBytes"><span class="type">GBytes</span></a> *bytes</code></em>,
 
1186
                             <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Byte-Arrays.html#GBytes"><span class="type">GBytes</span></a> *bytes</code></em>,
1187
1187
                             <em class="parameter"><code><a class="link" href="GCancellable.html" title="GCancellable"><span class="type">GCancellable</span></a> *cancellable</code></em>,
1188
 
                             <em class="parameter"><code><a href="../glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
 
1188
                             <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
1189
1189
<p>A wrapper function for <a class="link" href="GOutputStream.html#g-output-stream-write" title="g_output_stream_write ()"><code class="function">g_output_stream_write()</code></a> which takes a
1190
 
<a href="../glib/glib-Byte-Arrays.html#GBytes"><span class="type">GBytes</span></a> as input.  This can be more convenient for use by language
1191
 
bindings or in other cases where the refcounted nature of <a href="../glib/glib-Byte-Arrays.html#GBytes"><span class="type">GBytes</span></a>
 
1190
<a href="http://library.gnome.org/devel/glib/unstable/glib-Byte-Arrays.html#GBytes"><span class="type">GBytes</span></a> as input.  This can be more convenient for use by language
 
1191
bindings or in other cases where the refcounted nature of <a href="http://library.gnome.org/devel/glib/unstable/glib-Byte-Arrays.html#GBytes"><span class="type">GBytes</span></a>
1192
1192
is helpful over a bare pointer interface.</p>
1193
1193
<p>However, note that this function may still perform partial writes,
1194
1194
just like <a class="link" href="GOutputStream.html#g-output-stream-write" title="g_output_stream_write ()"><code class="function">g_output_stream_write()</code></a>.  If that occurs, to continue
1195
 
writing, you will need to create a new <a href="../glib/glib-Byte-Arrays.html#GBytes"><span class="type">GBytes</span></a> containing just the
1196
 
remaining bytes, using <a href="../glib/glib-Byte-Arrays.html#g-bytes-new-from-bytes"><code class="function">g_bytes_new_from_bytes()</code></a>. Passing the same
1197
 
<a href="../glib/glib-Byte-Arrays.html#GBytes"><span class="type">GBytes</span></a> instance multiple times potentially can result in duplicated
 
1195
writing, you will need to create a new <a href="http://library.gnome.org/devel/glib/unstable/glib-Byte-Arrays.html#GBytes"><span class="type">GBytes</span></a> containing just the
 
1196
remaining bytes, using <a href="http://library.gnome.org/devel/glib/unstable/glib-Byte-Arrays.html#g-bytes-new-from-bytes"><code class="function">g_bytes_new_from_bytes()</code></a>. Passing the same
 
1197
<a href="http://library.gnome.org/devel/glib/unstable/glib-Byte-Arrays.html#GBytes"><span class="type">GBytes</span></a> instance multiple times potentially can result in duplicated
1198
1198
data in the output stream.</p>
1199
1199
<div class="refsect3">
1200
1200
<a name="id-1.4.7.4.9.20.6"></a><h4>Parameters</h4>
1212
1212
</tr>
1213
1213
<tr>
1214
1214
<td class="parameter_name"><p>bytes</p></td>
1215
 
<td class="parameter_description"><p>the <a href="../glib/glib-Byte-Arrays.html#GBytes"><span class="type">GBytes</span></a> to write</p></td>
 
1215
<td class="parameter_description"><p>the <a href="http://library.gnome.org/devel/glib/unstable/glib-Byte-Arrays.html#GBytes"><span class="type">GBytes</span></a> to write</p></td>
1216
1216
<td class="parameter_annotations"> </td>
1217
1217
</tr>
1218
1218
<tr>
1222
1222
</tr>
1223
1223
<tr>
1224
1224
<td class="parameter_name"><p>error</p></td>
1225
 
<td class="parameter_description"><p>location to store the error occurring, or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to ignore</p></td>
 
1225
<td class="parameter_description"><p>location to store the error occurring, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to ignore</p></td>
1226
1226
<td class="parameter_annotations"> </td>
1227
1227
</tr>
1228
1228
</tbody>
1239
1239
<a name="g-output-stream-write-bytes-async"></a><h3>g_output_stream_write_bytes_async ()</h3>
1240
1240
<pre class="programlisting"><span class="returnvalue">void</span>
1241
1241
g_output_stream_write_bytes_async (<em class="parameter"><code><a class="link" href="GOutputStream.html" title="GOutputStream"><span class="type">GOutputStream</span></a> *stream</code></em>,
1242
 
                                   <em class="parameter"><code><a href="../glib/glib-Byte-Arrays.html#GBytes"><span class="type">GBytes</span></a> *bytes</code></em>,
 
1242
                                   <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Byte-Arrays.html#GBytes"><span class="type">GBytes</span></a> *bytes</code></em>,
1243
1243
                                   <em class="parameter"><code><span class="type">int</span> io_priority</code></em>,
1244
1244
                                   <em class="parameter"><code><a class="link" href="GCancellable.html" title="GCancellable"><span class="type">GCancellable</span></a> *cancellable</code></em>,
1245
1245
                                   <em class="parameter"><code><a class="link" href="GAsyncResult.html#GAsyncReadyCallback" title="GAsyncReadyCallback ()"><span class="type">GAsyncReadyCallback</span></a> callback</code></em>,
1246
 
                                   <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);</pre>
 
1246
                                   <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);</pre>
1247
1247
<p>This function is similar to <a class="link" href="GOutputStream.html#g-output-stream-write-async" title="g_output_stream_write_async ()"><code class="function">g_output_stream_write_async()</code></a>, but
1248
 
takes a <a href="../glib/glib-Byte-Arrays.html#GBytes"><span class="type">GBytes</span></a> as input.  Due to the refcounted nature of <a href="../glib/glib-Byte-Arrays.html#GBytes"><span class="type">GBytes</span></a>,
 
1248
takes a <a href="http://library.gnome.org/devel/glib/unstable/glib-Byte-Arrays.html#GBytes"><span class="type">GBytes</span></a> as input.  Due to the refcounted nature of <a href="http://library.gnome.org/devel/glib/unstable/glib-Byte-Arrays.html#GBytes"><span class="type">GBytes</span></a>,
1249
1249
this allows the stream to avoid taking a copy of the data.</p>
1250
1250
<p>However, note that this function may still perform partial writes,
1251
1251
just like <a class="link" href="GOutputStream.html#g-output-stream-write-async" title="g_output_stream_write_async ()"><code class="function">g_output_stream_write_async()</code></a>. If that occurs, to continue
1252
 
writing, you will need to create a new <a href="../glib/glib-Byte-Arrays.html#GBytes"><span class="type">GBytes</span></a> containing just the
1253
 
remaining bytes, using <a href="../glib/glib-Byte-Arrays.html#g-bytes-new-from-bytes"><code class="function">g_bytes_new_from_bytes()</code></a>. Passing the same
1254
 
<a href="../glib/glib-Byte-Arrays.html#GBytes"><span class="type">GBytes</span></a> instance multiple times potentially can result in duplicated
 
1252
writing, you will need to create a new <a href="http://library.gnome.org/devel/glib/unstable/glib-Byte-Arrays.html#GBytes"><span class="type">GBytes</span></a> containing just the
 
1253
remaining bytes, using <a href="http://library.gnome.org/devel/glib/unstable/glib-Byte-Arrays.html#g-bytes-new-from-bytes"><code class="function">g_bytes_new_from_bytes()</code></a>. Passing the same
 
1254
<a href="http://library.gnome.org/devel/glib/unstable/glib-Byte-Arrays.html#GBytes"><span class="type">GBytes</span></a> instance multiple times potentially can result in duplicated
1255
1255
data in the output stream.</p>
1256
1256
<p>For the synchronous, blocking version of this function, see
1257
1257
<a class="link" href="GOutputStream.html#g-output-stream-write-bytes" title="g_output_stream_write_bytes ()"><code class="function">g_output_stream_write_bytes()</code></a>.</p>
1281
1281
</tr>
1282
1282
<tr>
1283
1283
<td class="parameter_name"><p>cancellable</p></td>
1284
 
<td class="parameter_description"><p> optional <a class="link" href="GCancellable.html" title="GCancellable"><span class="type">GCancellable</span></a> object, <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to ignore. </p></td>
 
1284
<td class="parameter_description"><p> optional <a class="link" href="GCancellable.html" title="GCancellable"><span class="type">GCancellable</span></a> object, <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to ignore. </p></td>
1285
1285
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
1286
1286
</tr>
1287
1287
<tr>
1301
1301
<hr>
1302
1302
<div class="refsect2">
1303
1303
<a name="g-output-stream-write-bytes-finish"></a><h3>g_output_stream_write_bytes_finish ()</h3>
1304
 
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gssize"><span class="returnvalue">gssize</span></a>
 
1304
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gssize"><span class="returnvalue">gssize</span></a>
1305
1305
g_output_stream_write_bytes_finish (<em class="parameter"><code><a class="link" href="GOutputStream.html" title="GOutputStream"><span class="type">GOutputStream</span></a> *stream</code></em>,
1306
1306
                                    <em class="parameter"><code><a class="link" href="GAsyncResult.html" title="GAsyncResult"><span class="type">GAsyncResult</span></a> *result</code></em>,
1307
 
                                    <em class="parameter"><code><a href="../glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
1308
 
<p>Finishes a stream write-from-<a href="../glib/glib-Byte-Arrays.html#GBytes"><span class="type">GBytes</span></a> operation.</p>
 
1307
                                    <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
 
1308
<p>Finishes a stream write-from-<a href="http://library.gnome.org/devel/glib/unstable/glib-Byte-Arrays.html#GBytes"><span class="type">GBytes</span></a> operation.</p>
1309
1309
<div class="refsect3">
1310
1310
<a name="id-1.4.7.4.9.22.5"></a><h4>Parameters</h4>
1311
1311
<div class="informaltable"><table width="100%" border="0">
1327
1327
</tr>
1328
1328
<tr>
1329
1329
<td class="parameter_name"><p>error</p></td>
1330
 
<td class="parameter_description"><p>a <a href="../glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> location to store the error occurring, or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to
 
1330
<td class="parameter_description"><p>a <a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> location to store the error occurring, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to
1331
1331
ignore.</p></td>
1332
1332
<td class="parameter_annotations"> </td>
1333
1333
</tr>
1336
1336
</div>
1337
1337
<div class="refsect3">
1338
1338
<a name="id-1.4.7.4.9.22.6"></a><h4>Returns</h4>
1339
 
<p> a <a href="../glib/glib-Basic-Types.html#gssize"><span class="type">gssize</span></a> containing the number of bytes written to the stream.</p>
 
1339
<p> a <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gssize"><span class="type">gssize</span></a> containing the number of bytes written to the stream.</p>
1340
1340
<p></p>
1341
1341
</div>
1342
1342
</div>