~ubuntu-branches/ubuntu/utopic/glib2.0/utopic

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): Iain Lane
  • Date: 2014-10-02 13:08:24 UTC
  • mfrom: (1.67.13)
  • mto: This revision was merged to the branch mainline in revision 233.
  • Revision ID: package-import@ubuntu.com-20141002130824-cqp99rbif2g6wf6r
Tags: upstream-2.42.0
Import upstream version 2.42.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
60
60
</tr>
61
61
<tr>
62
62
<td class="function_type">
63
 
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gsize"><span class="returnvalue">gsize</span></a>
 
63
<a href="../glib/glib-Basic-Types.html#gsize"><span class="returnvalue">gsize</span></a>
64
64
</td>
65
65
<td class="function_name">
66
66
<a class="link" href="GBufferedInputStream.html#g-buffered-input-stream-get-buffer-size" title="g_buffered_input_stream_get_buffer_size ()">g_buffered_input_stream_get_buffer_size</a> <span class="c_punctuation">()</span>
76
76
</tr>
77
77
<tr>
78
78
<td class="function_type">
79
 
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gsize"><span class="returnvalue">gsize</span></a>
 
79
<a href="../glib/glib-Basic-Types.html#gsize"><span class="returnvalue">gsize</span></a>
80
80
</td>
81
81
<td class="function_name">
82
82
<a class="link" href="GBufferedInputStream.html#g-buffered-input-stream-get-available" title="g_buffered_input_stream_get_available ()">g_buffered_input_stream_get_available</a> <span class="c_punctuation">()</span>
91
91
</tr>
92
92
<tr>
93
93
<td class="function_type">
94
 
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gsize"><span class="returnvalue">gsize</span></a>
 
94
<a href="../glib/glib-Basic-Types.html#gsize"><span class="returnvalue">gsize</span></a>
95
95
</td>
96
96
<td class="function_name">
97
97
<a class="link" href="GBufferedInputStream.html#g-buffered-input-stream-peek" title="g_buffered_input_stream_peek ()">g_buffered_input_stream_peek</a> <span class="c_punctuation">()</span>
99
99
</tr>
100
100
<tr>
101
101
<td class="function_type">
102
 
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gssize"><span class="returnvalue">gssize</span></a>
 
102
<a href="../glib/glib-Basic-Types.html#gssize"><span class="returnvalue">gssize</span></a>
103
103
</td>
104
104
<td class="function_name">
105
105
<a class="link" href="GBufferedInputStream.html#g-buffered-input-stream-fill" title="g_buffered_input_stream_fill ()">g_buffered_input_stream_fill</a> <span class="c_punctuation">()</span>
115
115
</tr>
116
116
<tr>
117
117
<td class="function_type">
118
 
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gssize"><span class="returnvalue">gssize</span></a>
 
118
<a href="../glib/glib-Basic-Types.html#gssize"><span class="returnvalue">gssize</span></a>
119
119
</td>
120
120
<td class="function_name">
121
121
<a class="link" href="GBufferedInputStream.html#g-buffered-input-stream-fill-finish" title="g_buffered_input_stream_fill_finish ()">g_buffered_input_stream_fill_finish</a> <span class="c_punctuation">()</span>
141
141
<col width="200px" class="properties_flags">
142
142
</colgroup>
143
143
<tbody><tr>
144
 
<td class="property_type"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a></td>
 
144
<td class="property_type"><a href="../glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a></td>
145
145
<td class="property_name"><a class="link" href="GBufferedInputStream.html#GBufferedInputStream--buffer-size" title="The “buffer-size” property">buffer-size</a></td>
146
146
<td class="property_flags">Read / Write / Construct</td>
147
147
</tr></tbody>
162
162
</div>
163
163
<div class="refsect1">
164
164
<a name="GBufferedInputStream.object-hierarchy"></a><h2>Object Hierarchy</h2>
165
 
<pre class="screen">    <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject">GObject</a>
 
165
<pre class="screen">    <a href="../gobject/gobject-The-Base-Object-Type.html#GObject">GObject</a>
166
166
    <span class="lineart">╰──</span> <a class="link" href="GInputStream.html" title="GInputStream">GInputStream</a>
167
167
        <span class="lineart">╰──</span> <a class="link" href="GFilterInputStream.html" title="GFilterInputStream">GFilterInputStream</a>
168
168
            <span class="lineart">╰──</span> GBufferedInputStream
230
230
<a name="g-buffered-input-stream-new-sized"></a><h3>g_buffered_input_stream_new_sized ()</h3>
231
231
<pre class="programlisting"><a class="link" href="GInputStream.html" title="GInputStream"><span class="returnvalue">GInputStream</span></a> *
232
232
g_buffered_input_stream_new_sized (<em class="parameter"><code><a class="link" href="GInputStream.html" title="GInputStream"><span class="type">GInputStream</span></a> *base_stream</code></em>,
233
 
                                   <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gsize"><span class="type">gsize</span></a> size</code></em>);</pre>
 
233
                                   <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gsize"><span class="type">gsize</span></a> size</code></em>);</pre>
234
234
<p>Creates a new <a class="link" href="GBufferedInputStream.html" title="GBufferedInputStream"><span class="type">GBufferedInputStream</span></a> from the given <em class="parameter"><code>base_stream</code></em>
235
235
,
236
236
with a buffer set to <em class="parameter"><code>size</code></em>
251
251
</tr>
252
252
<tr>
253
253
<td class="parameter_name"><p>size</p></td>
254
 
<td class="parameter_description"><p>a <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gsize"><span class="type">gsize</span></a></p></td>
 
254
<td class="parameter_description"><p>a <a href="../glib/glib-Basic-Types.html#gsize"><span class="type">gsize</span></a></p></td>
255
255
<td class="parameter_annotations"> </td>
256
256
</tr>
257
257
</tbody>
266
266
<hr>
267
267
<div class="refsect2">
268
268
<a name="g-buffered-input-stream-get-buffer-size"></a><h3>g_buffered_input_stream_get_buffer_size ()</h3>
269
 
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gsize"><span class="returnvalue">gsize</span></a>
 
269
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gsize"><span class="returnvalue">gsize</span></a>
270
270
g_buffered_input_stream_get_buffer_size
271
271
                               (<em class="parameter"><code><a class="link" href="GBufferedInputStream.html" title="GBufferedInputStream"><span class="type">GBufferedInputStream</span></a> *stream</code></em>);</pre>
272
272
<p>Gets the size of the input buffer.</p>
297
297
<pre class="programlisting"><span class="returnvalue">void</span>
298
298
g_buffered_input_stream_set_buffer_size
299
299
                               (<em class="parameter"><code><a class="link" href="GBufferedInputStream.html" title="GBufferedInputStream"><span class="type">GBufferedInputStream</span></a> *stream</code></em>,
300
 
                                <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gsize"><span class="type">gsize</span></a> size</code></em>);</pre>
 
300
                                <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gsize"><span class="type">gsize</span></a> size</code></em>);</pre>
301
301
<p>Sets the size of the internal buffer of <em class="parameter"><code>stream</code></em>
302
302
 to <em class="parameter"><code>size</code></em>
303
303
, or to the
319
319
</tr>
320
320
<tr>
321
321
<td class="parameter_name"><p>size</p></td>
322
 
<td class="parameter_description"><p>a <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gsize"><span class="type">gsize</span></a></p></td>
 
322
<td class="parameter_description"><p>a <a href="../glib/glib-Basic-Types.html#gsize"><span class="type">gsize</span></a></p></td>
323
323
<td class="parameter_annotations"> </td>
324
324
</tr>
325
325
</tbody>
329
329
<hr>
330
330
<div class="refsect2">
331
331
<a name="g-buffered-input-stream-get-available"></a><h3>g_buffered_input_stream_get_available ()</h3>
332
 
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gsize"><span class="returnvalue">gsize</span></a>
 
332
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gsize"><span class="returnvalue">gsize</span></a>
333
333
g_buffered_input_stream_get_available (<em class="parameter"><code><a class="link" href="GBufferedInputStream.html" title="GBufferedInputStream"><span class="type">GBufferedInputStream</span></a> *stream</code></em>);</pre>
334
334
<p>Gets the size of the available data within the stream.</p>
335
335
<div class="refsect3">
358
358
<a name="g-buffered-input-stream-peek-buffer"></a><h3>g_buffered_input_stream_peek_buffer ()</h3>
359
359
<pre class="programlisting">const <span class="returnvalue">void</span> *
360
360
g_buffered_input_stream_peek_buffer (<em class="parameter"><code><a class="link" href="GBufferedInputStream.html" title="GBufferedInputStream"><span class="type">GBufferedInputStream</span></a> *stream</code></em>,
361
 
                                     <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>);</pre>
 
361
                                     <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gsize"><span class="type">gsize</span></a> *count</code></em>);</pre>
362
362
<p>Returns the buffer with the currently available bytes. The returned
363
363
buffer must not be modified and will become invalid when reading from
364
364
the stream or filling the buffer.</p>
378
378
</tr>
379
379
<tr>
380
380
<td class="parameter_name"><p>count</p></td>
381
 
<td class="parameter_description"><p> a <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gsize"><span class="type">gsize</span></a> to get the number of bytes available in the buffer. </p></td>
 
381
<td class="parameter_description"><p> a <a href="../glib/glib-Basic-Types.html#gsize"><span class="type">gsize</span></a> to get the number of bytes available in the buffer. </p></td>
382
382
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td>
383
383
</tr>
384
384
</tbody>
393
393
<hr>
394
394
<div class="refsect2">
395
395
<a name="g-buffered-input-stream-peek"></a><h3>g_buffered_input_stream_peek ()</h3>
396
 
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gsize"><span class="returnvalue">gsize</span></a>
 
396
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gsize"><span class="returnvalue">gsize</span></a>
397
397
g_buffered_input_stream_peek (<em class="parameter"><code><a class="link" href="GBufferedInputStream.html" title="GBufferedInputStream"><span class="type">GBufferedInputStream</span></a> *stream</code></em>,
398
398
                              <em class="parameter"><code><span class="type">void</span> *buffer</code></em>,
399
 
                              <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gsize"><span class="type">gsize</span></a> offset</code></em>,
400
 
                              <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>);</pre>
 
399
                              <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gsize"><span class="type">gsize</span></a> offset</code></em>,
 
400
                              <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gsize"><span class="type">gsize</span></a> count</code></em>);</pre>
401
401
<p>Peeks in the buffer, copying data of size <em class="parameter"><code>count</code></em>
402
402
 into <em class="parameter"><code>buffer</code></em>
403
403
,
425
425
</tr>
426
426
<tr>
427
427
<td class="parameter_name"><p>offset</p></td>
428
 
<td class="parameter_description"><p>a <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gsize"><span class="type">gsize</span></a></p></td>
 
428
<td class="parameter_description"><p>a <a href="../glib/glib-Basic-Types.html#gsize"><span class="type">gsize</span></a></p></td>
429
429
<td class="parameter_annotations"> </td>
430
430
</tr>
431
431
<tr>
432
432
<td class="parameter_name"><p>count</p></td>
433
 
<td class="parameter_description"><p>a <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gsize"><span class="type">gsize</span></a></p></td>
 
433
<td class="parameter_description"><p>a <a href="../glib/glib-Basic-Types.html#gsize"><span class="type">gsize</span></a></p></td>
434
434
<td class="parameter_annotations"> </td>
435
435
</tr>
436
436
</tbody>
438
438
</div>
439
439
<div class="refsect3">
440
440
<a name="id-1.4.7.14.10.8.6"></a><h4>Returns</h4>
441
 
<p> a <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gsize"><span class="type">gsize</span></a> of the number of bytes peeked, or -1 on error.</p>
 
441
<p> a <a href="../glib/glib-Basic-Types.html#gsize"><span class="type">gsize</span></a> of the number of bytes peeked, or -1 on error.</p>
442
442
<p></p>
443
443
</div>
444
444
</div>
445
445
<hr>
446
446
<div class="refsect2">
447
447
<a name="g-buffered-input-stream-fill"></a><h3>g_buffered_input_stream_fill ()</h3>
448
 
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gssize"><span class="returnvalue">gssize</span></a>
 
448
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gssize"><span class="returnvalue">gssize</span></a>
449
449
g_buffered_input_stream_fill (<em class="parameter"><code><a class="link" href="GBufferedInputStream.html" title="GBufferedInputStream"><span class="type">GBufferedInputStream</span></a> *stream</code></em>,
450
 
                              <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gssize"><span class="type">gssize</span></a> count</code></em>,
 
450
                              <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gssize"><span class="type">gssize</span></a> count</code></em>,
451
451
                              <em class="parameter"><code><a class="link" href="GCancellable.html" title="GCancellable"><span class="type">GCancellable</span></a> *cancellable</code></em>,
452
 
                              <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>
 
452
                              <em class="parameter"><code><a href="../glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
453
453
<p>Tries to read <em class="parameter"><code>count</code></em>
454
454
 bytes from the stream into the buffer.
455
455
Will block during this read.</p>
456
456
<p>If <em class="parameter"><code>count</code></em>
457
457
 is zero, returns zero and does nothing. A value of <em class="parameter"><code>count</code></em>
458
458
 
459
 
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>
 
459
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>
460
460
<p>On success, the number of bytes read into the buffer is returned.
461
461
It is not an error if this is not the same as the requested size, as it
462
462
can happen e.g. near the end of a file. Zero is returned on end of file
466
466
 is -1 then the attempted read size is equal to the number of
467
467
bytes that are required to fill the buffer.</p>
468
468
<p>If <em class="parameter"><code>cancellable</code></em>
469
 
 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
 
469
 is not <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, then the operation can be cancelled by
470
470
triggering the cancellable object from another thread. If the operation
471
471
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
472
472
operation was partially finished when the operation was cancelled the
496
496
</tr>
497
497
<tr>
498
498
<td class="parameter_name"><p>cancellable</p></td>
499
 
<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>
 
499
<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>
500
500
<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>
501
501
</tr>
502
502
<tr>
503
503
<td class="parameter_name"><p>error</p></td>
504
 
<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>
 
504
<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>
505
505
<td class="parameter_annotations"> </td>
506
506
</tr>
507
507
</tbody>
521
521
<a name="g-buffered-input-stream-fill-async"></a><h3>g_buffered_input_stream_fill_async ()</h3>
522
522
<pre class="programlisting"><span class="returnvalue">void</span>
523
523
g_buffered_input_stream_fill_async (<em class="parameter"><code><a class="link" href="GBufferedInputStream.html" title="GBufferedInputStream"><span class="type">GBufferedInputStream</span></a> *stream</code></em>,
524
 
                                    <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gssize"><span class="type">gssize</span></a> count</code></em>,
 
524
                                    <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gssize"><span class="type">gssize</span></a> count</code></em>,
525
525
                                    <em class="parameter"><code><span class="type">int</span> io_priority</code></em>,
526
526
                                    <em class="parameter"><code><a class="link" href="GCancellable.html" title="GCancellable"><span class="type">GCancellable</span></a> *cancellable</code></em>,
527
527
                                    <em class="parameter"><code><a class="link" href="GAsyncResult.html#GAsyncReadyCallback" title="GAsyncReadyCallback ()"><span class="type">GAsyncReadyCallback</span></a> callback</code></em>,
528
 
                                    <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>
 
528
                                    <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);</pre>
529
529
<p>Reads data into <em class="parameter"><code>stream</code></em>
530
530
's buffer asynchronously, up to <em class="parameter"><code>count</code></em>
531
531
 size.
571
571
</tr>
572
572
<tr>
573
573
<td class="parameter_name"><p>user_data</p></td>
574
 
<td class="parameter_description"><p> a <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a>. </p></td>
 
574
<td class="parameter_description"><p> a <a href="../glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a>. </p></td>
575
575
<td class="parameter_annotations"><span class="annotation">[<acronym title="This parameter is a 'user_data', for callbacks; many bindings can pass NULL here."><span class="acronym">closure</span></acronym>]</span></td>
576
576
</tr>
577
577
</tbody>
581
581
<hr>
582
582
<div class="refsect2">
583
583
<a name="g-buffered-input-stream-fill-finish"></a><h3>g_buffered_input_stream_fill_finish ()</h3>
584
 
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gssize"><span class="returnvalue">gssize</span></a>
 
584
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gssize"><span class="returnvalue">gssize</span></a>
585
585
g_buffered_input_stream_fill_finish (<em class="parameter"><code><a class="link" href="GBufferedInputStream.html" title="GBufferedInputStream"><span class="type">GBufferedInputStream</span></a> *stream</code></em>,
586
586
                                     <em class="parameter"><code><a class="link" href="GAsyncResult.html" title="GAsyncResult"><span class="type">GAsyncResult</span></a> *result</code></em>,
587
 
                                     <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>
 
587
                                     <em class="parameter"><code><a href="../glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
588
588
<p>Finishes an asynchronous read.</p>
589
589
<div class="refsect3">
590
590
<a name="id-1.4.7.14.10.11.5"></a><h4>Parameters</h4>
607
607
</tr>
608
608
<tr>
609
609
<td class="parameter_name"><p>error</p></td>
610
 
<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></p></td>
 
610
<td class="parameter_description"><p>a <a href="../glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a></p></td>
611
611
<td class="parameter_annotations"> </td>
612
612
</tr>
613
613
</tbody>
615
615
</div>
616
616
<div class="refsect3">
617
617
<a name="id-1.4.7.14.10.11.6"></a><h4>Returns</h4>
618
 
<p> a <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gssize"><span class="type">gssize</span></a> of the read stream, or <code class="literal">-1</code> on an error.</p>
 
618
<p> a <a href="../glib/glib-Basic-Types.html#gssize"><span class="type">gssize</span></a> of the read stream, or <code class="literal">-1</code> on an error.</p>
619
619
<p></p>
620
620
</div>
621
621
</div>
625
625
<pre class="programlisting"><span class="returnvalue">int</span>
626
626
g_buffered_input_stream_read_byte (<em class="parameter"><code><a class="link" href="GBufferedInputStream.html" title="GBufferedInputStream"><span class="type">GBufferedInputStream</span></a> *stream</code></em>,
627
627
                                   <em class="parameter"><code><a class="link" href="GCancellable.html" title="GCancellable"><span class="type">GCancellable</span></a> *cancellable</code></em>,
628
 
                                   <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>
 
628
                                   <em class="parameter"><code><a href="../glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
629
629
<p>Tries to read a single byte from the stream or the buffer. Will block
630
630
during this read.</p>
631
631
<p>On success, the byte read from the stream is returned. On end of stream
632
632
-1 is returned but it's not an exceptional error and <em class="parameter"><code>error</code></em>
633
633
 is not set.</p>
634
634
<p>If <em class="parameter"><code>cancellable</code></em>
635
 
 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
 
635
 is not <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, then the operation can be cancelled by
636
636
triggering the cancellable object from another thread. If the operation
637
637
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
638
638
operation was partially finished when the operation was cancelled the
655
655
</tr>
656
656
<tr>
657
657
<td class="parameter_name"><p>cancellable</p></td>
658
 
<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>
 
658
<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>
659
659
<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>
660
660
</tr>
661
661
<tr>
662
662
<td class="parameter_name"><p>error</p></td>
663
 
<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>
 
663
<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>
664
664
<td class="parameter_annotations"> </td>
665
665
</tr>
666
666
</tbody>
686
686
<a name="GBufferedInputStream.property-details"></a><h2>Property Details</h2>
687
687
<div class="refsect2">
688
688
<a name="GBufferedInputStream--buffer-size"></a><h3>The <code class="literal">“buffer-size”</code> property</h3>
689
 
<pre class="programlisting">  “buffer-size”              <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a></pre>
 
689
<pre class="programlisting">  “buffer-size”              <a href="../glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a></pre>
690
690
<p>The size of the backend buffer.</p>
691
691
<p>Flags: Read / Write / Construct</p>
692
692
<p>Allowed values: &gt;= 1</p>