91
89
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a><guint> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1BufferedInputStream.html#dd79ff7674ee8f29ed4c778d29e4ce91">property_buffer_size</a> ()</td></tr>
93
91
<tr><td class="mdescLeft"> </td><td class="mdescRight">The size of the backend buffer. <a href="#dd79ff7674ee8f29ed4c778d29e4ce91"></a><br></td></tr>
94
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a><br>
92
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a><br class="typebreak">
95
93
<guint> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1BufferedInputStream.html#4c14baabc1f6e3baffd38bdfb2797d55">property_buffer_size</a> () const </td></tr>
97
95
<tr><td class="mdescLeft"> </td><td class="mdescRight">The size of the backend buffer. <a href="#4c14baabc1f6e3baffd38bdfb2797d55"></a><br></td></tr>
98
96
<tr><td colspan="2"><br><h2>Static Public Member Functions</h2></td></tr>
99
<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><br>
97
<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><br class="typebreak">
100
98
<<a class="el" href="classGio_1_1BufferedInputStream.html">BufferedInputStream</a>> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1BufferedInputStream.html#fc33c31f5c437df14d385d3aa9d1a37b">create</a> (const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1InputStream.html">InputStream</a>>& base_stream)</td></tr>
102
<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><br>
100
<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><br class="typebreak">
103
101
<<a class="el" href="classGio_1_1BufferedInputStream.html">BufferedInputStream</a>> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1BufferedInputStream.html#47b3b1d2c774e7c322e29beb45653bf9">create_sized</a> (const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1InputStream.html">InputStream</a>>& base_stream, gsize size)</td></tr>
105
103
<tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr>
192
190
<hr><h2>Member Function Documentation</h2>
193
<a class="anchor" name="a9d0c1e643650b9a45831865f06e21be"></a><!-- doxytag: member="Gio::BufferedInputStream::gobj" ref="a9d0c1e643650b9a45831865f06e21be" args="()" -->
194
<div class="memitem">
195
<div class="memproto">
196
<table class="memname">
198
<td class="memname">GBufferedInputStream* Gio::BufferedInputStream::gobj </td>
200
<td class="paramname"> </td>
201
<td> ) </td>
202
<td><code> [inline]</code></td>
209
Provides access to the underlying C GObject.
212
<p>Reimplemented from <a class="el" href="classGio_1_1FilterInputStream.html#6db43589745dcd172f4ca4082bc5d914">Gio::FilterInputStream</a>.</p>
214
<p>Reimplemented in <a class="el" href="classGio_1_1DataInputStream.html#d788764326462190e900785f50a50740">Gio::DataInputStream</a>.</p>
218
<a class="anchor" name="d6b09565f69b4c1cf1f0ca05ee53709e"></a><!-- doxytag: member="Gio::BufferedInputStream::gobj" ref="d6b09565f69b4c1cf1f0ca05ee53709e" args="() const " -->
219
<div class="memitem">
220
<div class="memproto">
221
<table class="memname">
223
<td class="memname">const GBufferedInputStream* Gio::BufferedInputStream::gobj </td>
225
<td class="paramname"> </td>
226
<td> ) </td>
227
<td> const<code> [inline]</code></td>
234
Provides access to the underlying C GObject.
237
<p>Reimplemented from <a class="el" href="classGio_1_1FilterInputStream.html#c8fbd2cc879bfab4854d952b27ce271c">Gio::FilterInputStream</a>.</p>
239
<p>Reimplemented in <a class="el" href="classGio_1_1DataInputStream.html#5d8f01998854eac791a3089acef051c0">Gio::DataInputStream</a>.</p>
243
<a class="anchor" name="47dc5f78b1faed25cdaaafe42b526d6d"></a><!-- doxytag: member="Gio::BufferedInputStream::gobj_copy" ref="47dc5f78b1faed25cdaaafe42b526d6d" args="()" -->
244
<div class="memitem">
245
<div class="memproto">
246
<table class="memname">
248
<td class="memname">GBufferedInputStream* Gio::BufferedInputStream::gobj_copy </td>
250
<td class="paramname"> </td>
251
<td> ) </td>
259
Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
262
<p>Reimplemented from <a class="el" href="classGio_1_1FilterInputStream.html#55ef3320e423245cc69066c90785328e">Gio::FilterInputStream</a>.</p>
264
<p>Reimplemented in <a class="el" href="classGio_1_1DataInputStream.html#8252806b8ac5548c51a0418162ddb6ab">Gio::DataInputStream</a>.</p>
268
191
<a class="anchor" name="fc33c31f5c437df14d385d3aa9d1a37b"></a><!-- doxytag: member="Gio::BufferedInputStream::create" ref="fc33c31f5c437df14d385d3aa9d1a37b" args="(const Glib::RefPtr< InputStream > &base_stream)" -->
269
192
<div class="memitem">
270
193
<div class="memproto">
242
<a class="anchor" name="271eab4876136b4960d37350738bfdfe"></a><!-- doxytag: member="Gio::BufferedInputStream::fill" ref="271eab4876136b4960d37350738bfdfe" args="(gssize count)" -->
243
<div class="memitem">
244
<div class="memproto">
245
<table class="memname">
247
<td class="memname">gssize Gio::BufferedInputStream::fill </td>
249
<td class="paramtype">gssize </td>
250
<td class="paramname"> <em>count</em> </td>
251
<td> ) </td>
259
non-cancellable version of <a class="el" href="classGio_1_1BufferedInputStream.html#197687762599fb7c5b60141b55120cde" title="Tries to read count bytes from the stream into the buffer.">fill()</a>
264
<a class="anchor" name="197687762599fb7c5b60141b55120cde"></a><!-- doxytag: member="Gio::BufferedInputStream::fill" ref="197687762599fb7c5b60141b55120cde" args="(gssize count, const Glib::RefPtr< Cancellable > &cancellable)" -->
265
<div class="memitem">
266
<div class="memproto">
267
<table class="memname">
269
<td class="memname">gssize Gio::BufferedInputStream::fill </td>
271
<td class="paramtype">gssize </td>
272
<td class="paramname"> <em>count</em>, </td>
275
<td class="paramkey"></td>
277
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1Cancellable.html">Cancellable</a>>& </td>
278
<td class="paramname"> <em>cancellable</em></td><td> </td>
283
<td></td><td></td><td></td>
290
Tries to read <em>count</em> bytes from the stream into the buffer.
292
Will block during this read.<p>
293
If <em>count</em> is zero, returns zero and does nothing. A value of <em>count</em> larger than MAXSSIZE will cause a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> to be thrown, with INVALID_ARGUMENT.<p>
294
On success, the number of bytes read into the buffer is returned. It is not an error if this is not the same as the requested size, as it can happen e.g. near the end of a file. Zero is returned on end of file (or if <em>count</em> is zero), but never otherwise.<p>
295
The operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> will be thrown with CANCELLED. If an operation was partially finished when the operation was cancelled the partial result will be returned, without an error.<p>
296
For the asynchronous, non-blocking, version of this function, see g_buffered_input_stream_fill_async(). <dl compact><dt><b>Parameters:</b></dt><dd>
297
<table border="0" cellspacing="2" cellpadding="0">
298
<tr><td valign="top"></td><td valign="top"><em>count</em> </td><td>The number of bytes that will be read from the stream. </td></tr>
299
<tr><td valign="top"></td><td valign="top"><em>cancellable</em> </td><td><a class="el" href="classGio_1_1Cancellable.html" title="Allows actions to be cancelled.">Cancellable</a> object. </td></tr>
302
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The number of bytes read into <em>stream's</em> buffer, up to <em>count</em>, or -1 on error. </dd></dl>
306
<a class="anchor" name="adb9c1b367e36c20c91e16ea840b6ef0"></a><!-- doxytag: member="Gio::BufferedInputStream::fill_async" ref="adb9c1b367e36c20c91e16ea840b6ef0" args="(const SlotAsyncReady &slot, gssize count, int io_priority=Glib::PRIORITY_DEFAULT)" -->
307
<div class="memitem">
308
<div class="memproto">
309
<table class="memname">
311
<td class="memname">void Gio::BufferedInputStream::fill_async </td>
313
<td class="paramtype">const <a class="el" href="namespaceGio.html#ecaa02709f9ab83fa2b36d2571665cbe">SlotAsyncReady</a>& </td>
314
<td class="paramname"> <em>slot</em>, </td>
317
<td class="paramkey"></td>
319
<td class="paramtype">gssize </td>
320
<td class="paramname"> <em>count</em>, </td>
323
<td class="paramkey"></td>
325
<td class="paramtype">int </td>
326
<td class="paramname"> <em>io_priority</em> = <code>Glib::PRIORITY_DEFAULT</code></td><td> </td>
331
<td></td><td></td><td></td>
338
Reads data into the stream's buffer asynchronously, up to <em>count</em> size.
340
<em>io_priority</em> can be used to prioritize reads. For the synchronous version of this function, see <a class="el" href="classGio_1_1BufferedInputStream.html#197687762599fb7c5b60141b55120cde" title="Tries to read count bytes from the stream into the buffer.">fill()</a>.<p>
341
<dl compact><dt><b>Parameters:</b></dt><dd>
342
<table border="0" cellspacing="2" cellpadding="0">
343
<tr><td valign="top"></td><td valign="top"><em>slot</em> </td><td>A AsyncReadyCallback. </td></tr>
344
<tr><td valign="top"></td><td valign="top"><em>count</em> </td><td>The number of bytes to read. </td></tr>
345
<tr><td valign="top"></td><td valign="top"><em>io_priority</em> </td><td>the I/O priority of the request. </td></tr>
351
<a class="anchor" name="0a41790e04e9ba500eb18d1ce8371d34"></a><!-- doxytag: member="Gio::BufferedInputStream::fill_async" ref="0a41790e04e9ba500eb18d1ce8371d34" args="(const SlotAsyncReady &slot, gssize count, const Glib::RefPtr< Cancellable > &cancellable, int io_priority=Glib::PRIORITY_DEFAULT)" -->
352
<div class="memitem">
353
<div class="memproto">
354
<table class="memname">
356
<td class="memname">void Gio::BufferedInputStream::fill_async </td>
358
<td class="paramtype">const <a class="el" href="namespaceGio.html#ecaa02709f9ab83fa2b36d2571665cbe">SlotAsyncReady</a>& </td>
359
<td class="paramname"> <em>slot</em>, </td>
362
<td class="paramkey"></td>
364
<td class="paramtype">gssize </td>
365
<td class="paramname"> <em>count</em>, </td>
368
<td class="paramkey"></td>
370
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1Cancellable.html">Cancellable</a>>& </td>
371
<td class="paramname"> <em>cancellable</em>, </td>
374
<td class="paramkey"></td>
376
<td class="paramtype">int </td>
377
<td class="paramname"> <em>io_priority</em> = <code>Glib::PRIORITY_DEFAULT</code></td><td> </td>
382
<td></td><td></td><td></td>
389
Reads data into the stream's buffer asynchronously, up to <em>count</em> size.
391
<em>io_priority</em> can be used to prioritize reads. For the synchronous version of this function, see <a class="el" href="classGio_1_1BufferedInputStream.html#197687762599fb7c5b60141b55120cde" title="Tries to read count bytes from the stream into the buffer.">fill()</a>.<p>
392
<dl compact><dt><b>Parameters:</b></dt><dd>
393
<table border="0" cellspacing="2" cellpadding="0">
394
<tr><td valign="top"></td><td valign="top"><em>slot</em> </td><td>A AsyncReadyCallback. </td></tr>
395
<tr><td valign="top"></td><td valign="top"><em>count</em> </td><td>The number of bytes to read. </td></tr>
396
<tr><td valign="top"></td><td valign="top"><em>cancellable</em> </td><td><a class="el" href="classGio_1_1Cancellable.html" title="Allows actions to be cancelled.">Cancellable</a> object. </td></tr>
397
<tr><td valign="top"></td><td valign="top"><em>io_priority</em> </td><td>the I/O priority of the request. </td></tr>
403
<a class="anchor" name="13c665ccc722a2544539086846137277"></a><!-- doxytag: member="Gio::BufferedInputStream::fill_finish" ref="13c665ccc722a2544539086846137277" args="(const Glib::RefPtr< AsyncResult > &result)" -->
404
<div class="memitem">
405
<div class="memproto">
406
<table class="memname">
408
<td class="memname">gssize Gio::BufferedInputStream::fill_finish </td>
410
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1AsyncResult.html">AsyncResult</a>>& </td>
411
<td class="paramname"> <em>result</em> </td>
412
<td> ) </td>
420
Finishes an asynchronous read.
422
<dl compact><dt><b>Parameters:</b></dt><dd>
423
<table border="0" cellspacing="2" cellpadding="0">
424
<tr><td valign="top"></td><td valign="top"><em>result</em> </td><td>A <a class="el" href="classGio_1_1AsyncResult.html" title="Provides a base class for implementing asynchronous function results.">AsyncResult</a>. </td></tr>
427
<dl class="return" compact><dt><b>Returns:</b></dt><dd>A gssize of the read stream, or -1 on an error. </dd></dl>
431
<a class="anchor" name="436e3c852afdc67e8ba70d32e39ce6b9"></a><!-- doxytag: member="Gio::BufferedInputStream::get_available" ref="436e3c852afdc67e8ba70d32e39ce6b9" args="() const " -->
432
<div class="memitem">
433
<div class="memproto">
434
<table class="memname">
436
<td class="memname">gsize Gio::BufferedInputStream::get_available </td>
438
<td class="paramname"> </td>
439
<td> ) </td>
447
Gets the size of the available data within the stream.
449
<dl class="return" compact><dt><b>Returns:</b></dt><dd>Size of the available stream. </dd></dl>
319
453
<a class="anchor" name="46384a96dc052e9d25e1a88281d69e40"></a><!-- doxytag: member="Gio::BufferedInputStream::get_buffer_size" ref="46384a96dc052e9d25e1a88281d69e40" args="() const " -->
320
454
<div class="memitem">
321
455
<div class="memproto">
341
<a class="anchor" name="f5f861a5b30aadc48e21fb10a46afaa7"></a><!-- doxytag: member="Gio::BufferedInputStream::set_buffer_size" ref="f5f861a5b30aadc48e21fb10a46afaa7" args="(gsize size)" -->
342
<div class="memitem">
343
<div class="memproto">
344
<table class="memname">
346
<td class="memname">void Gio::BufferedInputStream::set_buffer_size </td>
348
<td class="paramtype">gsize </td>
349
<td class="paramname"> <em>size</em> </td>
475
<a class="anchor" name="d6b09565f69b4c1cf1f0ca05ee53709e"></a><!-- doxytag: member="Gio::BufferedInputStream::gobj" ref="d6b09565f69b4c1cf1f0ca05ee53709e" args="() const " -->
476
<div class="memitem">
477
<div class="memproto">
478
<table class="memname">
480
<td class="memname">const GBufferedInputStream* Gio::BufferedInputStream::gobj </td>
482
<td class="paramname"> </td>
483
<td> ) </td>
484
<td> const<code> [inline]</code></td>
491
Provides access to the underlying C GObject.
494
<p>Reimplemented from <a class="el" href="classGio_1_1FilterInputStream.html#c8fbd2cc879bfab4854d952b27ce271c">Gio::FilterInputStream</a>.</p>
496
<p>Reimplemented in <a class="el" href="classGio_1_1DataInputStream.html#5d8f01998854eac791a3089acef051c0">Gio::DataInputStream</a>.</p>
500
<a class="anchor" name="a9d0c1e643650b9a45831865f06e21be"></a><!-- doxytag: member="Gio::BufferedInputStream::gobj" ref="a9d0c1e643650b9a45831865f06e21be" args="()" -->
501
<div class="memitem">
502
<div class="memproto">
503
<table class="memname">
505
<td class="memname">GBufferedInputStream* Gio::BufferedInputStream::gobj </td>
507
<td class="paramname"> </td>
508
<td> ) </td>
509
<td><code> [inline]</code></td>
516
Provides access to the underlying C GObject.
519
<p>Reimplemented from <a class="el" href="classGio_1_1FilterInputStream.html#6db43589745dcd172f4ca4082bc5d914">Gio::FilterInputStream</a>.</p>
521
<p>Reimplemented in <a class="el" href="classGio_1_1DataInputStream.html#d788764326462190e900785f50a50740">Gio::DataInputStream</a>.</p>
525
<a class="anchor" name="47dc5f78b1faed25cdaaafe42b526d6d"></a><!-- doxytag: member="Gio::BufferedInputStream::gobj_copy" ref="47dc5f78b1faed25cdaaafe42b526d6d" args="()" -->
526
<div class="memitem">
527
<div class="memproto">
528
<table class="memname">
530
<td class="memname">GBufferedInputStream* Gio::BufferedInputStream::gobj_copy </td>
532
<td class="paramname"> </td>
350
533
<td> ) </td>
463
<a class="anchor" name="197687762599fb7c5b60141b55120cde"></a><!-- doxytag: member="Gio::BufferedInputStream::fill" ref="197687762599fb7c5b60141b55120cde" args="(gssize count, const Glib::RefPtr< Cancellable > &cancellable)" -->
464
<div class="memitem">
465
<div class="memproto">
466
<table class="memname">
468
<td class="memname">gssize Gio::BufferedInputStream::fill </td>
470
<td class="paramtype">gssize </td>
471
<td class="paramname"> <em>count</em>, </td>
474
<td class="paramkey"></td>
476
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1Cancellable.html">Cancellable</a>>& </td>
477
<td class="paramname"> <em>cancellable</em></td><td> </td>
482
<td></td><td></td><td></td>
489
Tries to read <em>count</em> bytes from the stream into the buffer.
491
Will block during this read.<p>
492
If <em>count</em> is zero, returns zero and does nothing. A value of <em>count</em> larger than MAXSSIZE will cause a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> to be thrown, with INVALID_ARGUMENT.<p>
493
On success, the number of bytes read into the buffer is returned. It is not an error if this is not the same as the requested size, as it can happen e.g. near the end of a file. Zero is returned on end of file (or if <em>count</em> is zero), but never otherwise.<p>
494
The operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> will be thrown with CANCELLED. If an operation was partially finished when the operation was cancelled the partial result will be returned, without an error.<p>
495
For the asynchronous, non-blocking, version of this function, see g_buffered_input_stream_fill_async(). <dl compact><dt><b>Parameters:</b></dt><dd>
496
<table border="0" cellspacing="2" cellpadding="0">
497
<tr><td valign="top"></td><td valign="top"><em>count</em> </td><td>The number of bytes that will be read from the stream. </td></tr>
498
<tr><td valign="top"></td><td valign="top"><em>cancellable</em> </td><td><a class="el" href="classGio_1_1Cancellable.html" title="Allows actions to be cancelled.">Cancellable</a> object. </td></tr>
501
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The number of bytes read into <em>stream's</em> buffer, up to <em>count</em>, or -1 on error. </dd></dl>
505
<a class="anchor" name="271eab4876136b4960d37350738bfdfe"></a><!-- doxytag: member="Gio::BufferedInputStream::fill" ref="271eab4876136b4960d37350738bfdfe" args="(gssize count)" -->
506
<div class="memitem">
507
<div class="memproto">
508
<table class="memname">
510
<td class="memname">gssize Gio::BufferedInputStream::fill </td>
512
<td class="paramtype">gssize </td>
513
<td class="paramname"> <em>count</em> </td>
514
<td> ) </td>
522
non-cancellable version of <a class="el" href="classGio_1_1BufferedInputStream.html#197687762599fb7c5b60141b55120cde" title="Tries to read count bytes from the stream into the buffer.">fill()</a>
527
<a class="anchor" name="0a41790e04e9ba500eb18d1ce8371d34"></a><!-- doxytag: member="Gio::BufferedInputStream::fill_async" ref="0a41790e04e9ba500eb18d1ce8371d34" args="(const SlotAsyncReady &slot, gssize count, const Glib::RefPtr< Cancellable > &cancellable, int io_priority=Glib::PRIORITY_DEFAULT)" -->
528
<div class="memitem">
529
<div class="memproto">
530
<table class="memname">
532
<td class="memname">void Gio::BufferedInputStream::fill_async </td>
534
<td class="paramtype">const <a class="el" href="namespaceGio.html#ecaa02709f9ab83fa2b36d2571665cbe">SlotAsyncReady</a>& </td>
535
<td class="paramname"> <em>slot</em>, </td>
538
<td class="paramkey"></td>
540
<td class="paramtype">gssize </td>
541
<td class="paramname"> <em>count</em>, </td>
544
<td class="paramkey"></td>
546
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1Cancellable.html">Cancellable</a>>& </td>
547
<td class="paramname"> <em>cancellable</em>, </td>
550
<td class="paramkey"></td>
552
<td class="paramtype">int </td>
553
<td class="paramname"> <em>io_priority</em> = <code>Glib::PRIORITY_DEFAULT</code></td><td> </td>
558
<td></td><td></td><td></td>
565
Reads data into the stream's buffer asynchronously, up to <em>count</em> size.
567
<em>io_priority</em> can be used to prioritize reads. For the synchronous version of this function, see <a class="el" href="classGio_1_1BufferedInputStream.html#197687762599fb7c5b60141b55120cde" title="Tries to read count bytes from the stream into the buffer.">fill()</a>.<p>
568
<dl compact><dt><b>Parameters:</b></dt><dd>
569
<table border="0" cellspacing="2" cellpadding="0">
570
<tr><td valign="top"></td><td valign="top"><em>slot</em> </td><td>A AsyncReadyCallback. </td></tr>
571
<tr><td valign="top"></td><td valign="top"><em>count</em> </td><td>The number of bytes to read. </td></tr>
572
<tr><td valign="top"></td><td valign="top"><em>cancellable</em> </td><td><a class="el" href="classGio_1_1Cancellable.html" title="Allows actions to be cancelled.">Cancellable</a> object. </td></tr>
573
<tr><td valign="top"></td><td valign="top"><em>io_priority</em> </td><td>the I/O priority of the request. </td></tr>
579
<a class="anchor" name="adb9c1b367e36c20c91e16ea840b6ef0"></a><!-- doxytag: member="Gio::BufferedInputStream::fill_async" ref="adb9c1b367e36c20c91e16ea840b6ef0" args="(const SlotAsyncReady &slot, gssize count, int io_priority=Glib::PRIORITY_DEFAULT)" -->
580
<div class="memitem">
581
<div class="memproto">
582
<table class="memname">
584
<td class="memname">void Gio::BufferedInputStream::fill_async </td>
586
<td class="paramtype">const <a class="el" href="namespaceGio.html#ecaa02709f9ab83fa2b36d2571665cbe">SlotAsyncReady</a>& </td>
587
<td class="paramname"> <em>slot</em>, </td>
590
<td class="paramkey"></td>
592
<td class="paramtype">gssize </td>
593
<td class="paramname"> <em>count</em>, </td>
596
<td class="paramkey"></td>
598
<td class="paramtype">int </td>
599
<td class="paramname"> <em>io_priority</em> = <code>Glib::PRIORITY_DEFAULT</code></td><td> </td>
604
<td></td><td></td><td></td>
611
Reads data into the stream's buffer asynchronously, up to <em>count</em> size.
613
<em>io_priority</em> can be used to prioritize reads. For the synchronous version of this function, see <a class="el" href="classGio_1_1BufferedInputStream.html#197687762599fb7c5b60141b55120cde" title="Tries to read count bytes from the stream into the buffer.">fill()</a>.<p>
614
<dl compact><dt><b>Parameters:</b></dt><dd>
615
<table border="0" cellspacing="2" cellpadding="0">
616
<tr><td valign="top"></td><td valign="top"><em>slot</em> </td><td>A AsyncReadyCallback. </td></tr>
617
<tr><td valign="top"></td><td valign="top"><em>count</em> </td><td>The number of bytes to read. </td></tr>
618
<tr><td valign="top"></td><td valign="top"><em>io_priority</em> </td><td>the I/O priority of the request. </td></tr>
624
<a class="anchor" name="13c665ccc722a2544539086846137277"></a><!-- doxytag: member="Gio::BufferedInputStream::fill_finish" ref="13c665ccc722a2544539086846137277" args="(const Glib::RefPtr< AsyncResult > &result)" -->
625
<div class="memitem">
626
<div class="memproto">
627
<table class="memname">
629
<td class="memname">gssize Gio::BufferedInputStream::fill_finish </td>
631
<td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1AsyncResult.html">AsyncResult</a>>& </td>
632
<td class="paramname"> <em>result</em> </td>
633
<td> ) </td>
641
Finishes an asynchronous read.
643
<dl compact><dt><b>Parameters:</b></dt><dd>
644
<table border="0" cellspacing="2" cellpadding="0">
645
<tr><td valign="top"></td><td valign="top"><em>result</em> </td><td>A <a class="el" href="classGio_1_1AsyncResult.html" title="Provides a base class for implementing asynchronous function results.">AsyncResult</a>. </td></tr>
648
<dl class="return" compact><dt><b>Returns:</b></dt><dd>A gssize of the read stream, or -1 on an error. </dd></dl>
623
<a class="anchor" name="4c14baabc1f6e3baffd38bdfb2797d55"></a><!-- doxytag: member="Gio::BufferedInputStream::property_buffer_size" ref="4c14baabc1f6e3baffd38bdfb2797d55" args="() const " -->
624
<div class="memitem">
625
<div class="memproto">
626
<table class="memname">
628
<td class="memname"><a class="el" href="classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a><guint> Gio::BufferedInputStream::property_buffer_size </td>
630
<td class="paramname"> </td>
631
<td> ) </td>
639
The size of the backend buffer.
641
You rarely need to use properties because there are get_ and set_ methods for almost all of them. <dl class="return" compact><dt><b>Returns:</b></dt><dd>A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes. </dd></dl>
645
<a class="anchor" name="dd79ff7674ee8f29ed4c778d29e4ce91"></a><!-- doxytag: member="Gio::BufferedInputStream::property_buffer_size" ref="dd79ff7674ee8f29ed4c778d29e4ce91" args="()" -->
646
<div class="memitem">
647
<div class="memproto">
648
<table class="memname">
650
<td class="memname"><a class="el" href="classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a><guint> Gio::BufferedInputStream::property_buffer_size </td>
652
<td class="paramname"> </td>
653
<td> ) </td>
661
The size of the backend buffer.
663
You rarely need to use properties because there are get_ and set_ methods for almost all of them. <dl class="return" compact><dt><b>Returns:</b></dt><dd>A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes. </dd></dl>
667
<a class="anchor" name="8741ffb62c82425f54bc5e005c2a238f"></a><!-- doxytag: member="Gio::BufferedInputStream::read_byte" ref="8741ffb62c82425f54bc5e005c2a238f" args="()" -->
668
<div class="memitem">
669
<div class="memproto">
670
<table class="memname">
672
<td class="memname">int Gio::BufferedInputStream::read_byte </td>
674
<td class="paramname"> </td>
675
<td> ) </td>
683
Non-cancellable version of <a class="el" href="classGio_1_1BufferedInputStream.html#8741ffb62c82425f54bc5e005c2a238f" title="Non-cancellable version of read_byte().">read_byte()</a>.
686
<p>Reimplemented in <a class="el" href="classGio_1_1DataInputStream.html#f4d01aa4e791d403b79db406befcc28e">Gio::DataInputStream</a>.</p>
684
<a class="anchor" name="8741ffb62c82425f54bc5e005c2a238f"></a><!-- doxytag: member="Gio::BufferedInputStream::read_byte" ref="8741ffb62c82425f54bc5e005c2a238f" args="()" -->
685
<div class="memitem">
686
<div class="memproto">
687
<table class="memname">
689
<td class="memname">int Gio::BufferedInputStream::read_byte </td>
691
<td class="paramname"> </td>
692
<td> ) </td>
700
Non-cancellable version of <a class="el" href="classGio_1_1BufferedInputStream.html#8741ffb62c82425f54bc5e005c2a238f" title="Non-cancellable version of read_byte().">read_byte()</a>.
703
<p>Reimplemented in <a class="el" href="classGio_1_1DataInputStream.html#f4d01aa4e791d403b79db406befcc28e">Gio::DataInputStream</a>.</p>
707
<a class="anchor" name="dd79ff7674ee8f29ed4c778d29e4ce91"></a><!-- doxytag: member="Gio::BufferedInputStream::property_buffer_size" ref="dd79ff7674ee8f29ed4c778d29e4ce91" args="()" -->
708
<div class="memitem">
709
<div class="memproto">
710
<table class="memname">
712
<td class="memname"><a class="el" href="classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a><guint> Gio::BufferedInputStream::property_buffer_size </td>
714
<td class="paramname"> </td>
715
<td> ) </td>
723
The size of the backend buffer.
725
You rarely need to use properties because there are get_ and set_ methods for almost all of them. <dl class="return" compact><dt><b>Returns:</b></dt><dd>A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes. </dd></dl>
729
<a class="anchor" name="4c14baabc1f6e3baffd38bdfb2797d55"></a><!-- doxytag: member="Gio::BufferedInputStream::property_buffer_size" ref="4c14baabc1f6e3baffd38bdfb2797d55" args="() const " -->
730
<div class="memitem">
731
<div class="memproto">
732
<table class="memname">
734
<td class="memname"><a class="el" href="classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a><guint> Gio::BufferedInputStream::property_buffer_size </td>
736
<td class="paramname"> </td>
737
<td> ) </td>
745
The size of the backend buffer.
747
You rarely need to use properties because there are get_ and set_ methods for almost all of them. <dl class="return" compact><dt><b>Returns:</b></dt><dd>A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes. </dd></dl>
722
<a class="anchor" name="f5f861a5b30aadc48e21fb10a46afaa7"></a><!-- doxytag: member="Gio::BufferedInputStream::set_buffer_size" ref="f5f861a5b30aadc48e21fb10a46afaa7" args="(gsize size)" -->
723
<div class="memitem">
724
<div class="memproto">
725
<table class="memname">
727
<td class="memname">void Gio::BufferedInputStream::set_buffer_size </td>
729
<td class="paramtype">gsize </td>
730
<td class="paramname"> <em>size</em> </td>
731
<td> ) </td>
739
Sets the size of the internal buffer of <em>stream</em> to <em>size</em>, or to the size of the contents of the buffer.
741
The buffer can never be resized smaller than its current contents. <dl compact><dt><b>Parameters:</b></dt><dd>
742
<table border="0" cellspacing="2" cellpadding="0">
743
<tr><td valign="top"></td><td valign="top"><em>size</em> </td><td>A gsize. </td></tr>