~kklimonda/ubuntu/natty/glibmm2.4/update

« back to all changes in this revision

Viewing changes to docs/reference/html/classGio_1_1InputStream.html

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2009-03-16 14:26:05 UTC
  • mfrom: (1.2.35 upstream)
  • Revision ID: james.westby@ubuntu.com-20090316142605-gj2oyabw69a9b9li
Tags: 2.20.0-0ubuntu1
New upstream version

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
 
20
20
<!-- begin main content -->
21
21
<div id="content">
22
 
<!-- Generated by Doxygen 1.5.6 -->
 
22
<!-- Generated by Doxygen 1.5.8 -->
23
23
  <div class="navpath"><a class="el" href="namespaceGio.html">Gio</a>::<a class="el" href="classGio_1_1InputStream.html">InputStream</a>
24
24
  </div>
25
25
<div class="contents">
33
33
Inheritance diagram for Gio::InputStream:</div>
34
34
<div class="dynsection">
35
35
<p><center><img src="classGio_1_1InputStream__inherit__graph.png" border="0" usemap="#Gio_1_1InputStream__inherit__map" alt="Inheritance graph"></center>
36
 
<map name="Gio_1_1InputStream__inherit__map">
37
 
<area shape="rect" href="classGio_1_1FileInputStream.html" title="FileInputStream provides input streams that take their content from a file." alt="" coords="648,5,789,32"><area shape="rect" href="classGio_1_1FilterInputStream.html" title="Filter Input Stream." alt="" coords="644,56,793,82"><area shape="rect" href="classGio_1_1MemoryInputStream.html" title="MemoryInputStream implements InputStream for arbitrary memory chunks." alt="" coords="635,106,803,133"><area shape="rect" href="classGio_1_1UnixInputStream.html" title="UnixInputStream implements InputStream for reading from a unix file descriptor, including..." alt="" coords="645,157,792,184"><area shape="rect" href="classGlib_1_1Object.html" title="Glib::Object" alt="" coords="328,81,419,108"><area shape="rect" href="classGlib_1_1ObjectBase.html" title="Glib::ObjectBase is a common base class for Objects and Interfaces." alt="" coords="160,81,280,108"><area shape="rect" href="classsigc_1_1trackable.html" title="sigc::trackable" alt="" coords="5,81,112,108"><area shape="rect" href="classGio_1_1BufferedInputStream.html" title="The buffered input stream implements FilterInputStream and provides for buffered..." alt="" coords="851,56,1019,82"><area shape="rect" href="classGio_1_1DataInputStream.html" title="An implementation of BufferedInputStream that allows for high&#45;level data manipulation..." alt="" coords="1068,56,1215,82"></map>
38
36
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div>
39
37
 
40
38
<p>
134
132
</div>
135
133
</div><p>
136
134
<hr><h2>Member Function Documentation</h2>
 
135
<a class="anchor" name="7a3202cf7014bcfb2c0a7f301448ae50"></a><!-- doxytag: member="Gio::InputStream::close" ref="7a3202cf7014bcfb2c0a7f301448ae50" args="()" -->
 
136
<div class="memitem">
 
137
<div class="memproto">
 
138
      <table class="memname">
 
139
        <tr>
 
140
          <td class="memname">bool Gio::InputStream::close           </td>
 
141
          <td>(</td>
 
142
          <td class="paramname">          </td>
 
143
          <td>&nbsp;)&nbsp;</td>
 
144
          <td></td>
 
145
        </tr>
 
146
      </table>
 
147
</div>
 
148
<div class="memdoc">
 
149
 
 
150
<p>
 
151
Closes the stream, releasing resources related to it. 
 
152
<p>
 
153
Once the stream is closed, all other operations will throw a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with CLOSED. Closing a stream multiple times will not return an error.<p>
 
154
Streams will be automatically closed when the last reference is dropped, but you might want to call this make sure resources are released as early as possible.<p>
 
155
Some streams might keep the backing store of the stream (e.g. a file descriptor) open after the stream is closed. See the documentation for the individual stream for details.<p>
 
156
On failure the first error that happened will be reported, but the close operation will finish as much as possible. A stream that failed to close will still throw a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with CLOSED for all operations. Still, it is important to check and report the error to the user.<p>
 
157
<dl class="return" compact><dt><b>Returns:</b></dt><dd><code>true</code> on success, <code>false</code> on failure. </dd></dl>
 
158
 
 
159
</div>
 
160
</div><p>
 
161
<a class="anchor" name="1b76b2503e607475f63731a886456e09"></a><!-- doxytag: member="Gio::InputStream::close" ref="1b76b2503e607475f63731a886456e09" args="(const Glib::RefPtr&lt; Cancellable &gt; &amp;cancellable)" -->
 
162
<div class="memitem">
 
163
<div class="memproto">
 
164
      <table class="memname">
 
165
        <tr>
 
166
          <td class="memname">bool Gio::InputStream::close           </td>
 
167
          <td>(</td>
 
168
          <td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;<a class="el" href="classGio_1_1Cancellable.html">Cancellable</a>&gt;&amp;&nbsp;</td>
 
169
          <td class="paramname"> <em>cancellable</em>          </td>
 
170
          <td>&nbsp;)&nbsp;</td>
 
171
          <td></td>
 
172
        </tr>
 
173
      </table>
 
174
</div>
 
175
<div class="memdoc">
 
176
 
 
177
<p>
 
178
Closes the stream, releasing resources related to it. 
 
179
<p>
 
180
Once the stream is closed, all other operations will throw a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with CLOSED. Closing a stream multiple times will not return an error.<p>
 
181
Streams will be automatically closed when the last reference is dropped, but you might want to call this function to make sure resources are released as early as possible.<p>
 
182
Some streams might keep the backing store of the stream (e.g. a file descriptor) open after the stream is closed. See the documentation for the individual stream for details.<p>
 
183
On failure the first error that happened will be reported, but the close operation will finish as much as possible. A stream that failed to close will still throw a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with CLOSED for all operations. Still, it is important to check and report the error to the user.<p>
 
184
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. Cancelling a close will still leave the stream closed, but some streams can use a faster close that doesn't block to e.g. check errors. <dl compact><dt><b>Parameters:</b></dt><dd>
 
185
  <table border="0" cellspacing="2" cellpadding="0">
 
186
    <tr><td valign="top"></td><td valign="top"><em>cancellable</em>&nbsp;</td><td><a class="el" href="classGio_1_1Cancellable.html" title="Allows actions to be cancelled.">Cancellable</a> object. </td></tr>
 
187
  </table>
 
188
</dl>
 
189
<dl class="return" compact><dt><b>Returns:</b></dt><dd><code>true</code> on success, <code>false</code> on failure. </dd></dl>
 
190
 
 
191
</div>
 
192
</div><p>
 
193
<a class="anchor" name="b5160982124f34ed6e475776acd126d2"></a><!-- doxytag: member="Gio::InputStream::close_async" ref="b5160982124f34ed6e475776acd126d2" args="(const SlotAsyncReady &amp;slot, int io_priority=Glib::PRIORITY_DEFAULT)" -->
 
194
<div class="memitem">
 
195
<div class="memproto">
 
196
      <table class="memname">
 
197
        <tr>
 
198
          <td class="memname">void Gio::InputStream::close_async           </td>
 
199
          <td>(</td>
 
200
          <td class="paramtype">const <a class="el" href="namespaceGio.html#ecaa02709f9ab83fa2b36d2571665cbe">SlotAsyncReady</a>&amp;&nbsp;</td>
 
201
          <td class="paramname"> <em>slot</em>, </td>
 
202
        </tr>
 
203
        <tr>
 
204
          <td class="paramkey"></td>
 
205
          <td></td>
 
206
          <td class="paramtype">int&nbsp;</td>
 
207
          <td class="paramname"> <em>io_priority</em> = <code>Glib::PRIORITY_DEFAULT</code></td><td>&nbsp;</td>
 
208
        </tr>
 
209
        <tr>
 
210
          <td></td>
 
211
          <td>)</td>
 
212
          <td></td><td></td><td></td>
 
213
        </tr>
 
214
      </table>
 
215
</div>
 
216
<div class="memdoc">
 
217
 
 
218
<p>
 
219
Requests an asynchronous closes of the stream, releasing resources related to it. 
 
220
<p>
 
221
When the operation is finished <em>slot</em> will be called. You can then call <a class="el" href="classGio_1_1InputStream.html#e5a0d2c3ccf27661e374f151117a8fb7" title="Finishes closing a stream asynchronously, started from g_input_stream_close_async()...">close_finish()</a> to get the result of the operation.<p>
 
222
For behaviour details see <a class="el" href="classGio_1_1InputStream.html#7a3202cf7014bcfb2c0a7f301448ae50" title="Closes the stream, releasing resources related to it.">close()</a>.<p>
 
223
The asyncronous methods have a default fallback that uses threads to implement asynchronicity, so they are optional for inheriting classes. However, if you override one you must override all.<p>
 
224
<dl compact><dt><b>Parameters:</b></dt><dd>
 
225
  <table border="0" cellspacing="2" cellpadding="0">
 
226
    <tr><td valign="top"></td><td valign="top"><em>slot</em>&nbsp;</td><td>Callback to call when the request is satisfied. </td></tr>
 
227
    <tr><td valign="top"></td><td valign="top"><em>io_priority</em>&nbsp;</td><td>The I/O priority of the request. </td></tr>
 
228
  </table>
 
229
</dl>
 
230
 
 
231
</div>
 
232
</div><p>
 
233
<a class="anchor" name="f66159778ee2d577e9df52063ced53bf"></a><!-- doxytag: member="Gio::InputStream::close_async" ref="f66159778ee2d577e9df52063ced53bf" args="(const SlotAsyncReady &amp;slot, const Glib::RefPtr&lt; Cancellable &gt; &amp;cancellable, int io_priority=Glib::PRIORITY_DEFAULT)" -->
 
234
<div class="memitem">
 
235
<div class="memproto">
 
236
      <table class="memname">
 
237
        <tr>
 
238
          <td class="memname">void Gio::InputStream::close_async           </td>
 
239
          <td>(</td>
 
240
          <td class="paramtype">const <a class="el" href="namespaceGio.html#ecaa02709f9ab83fa2b36d2571665cbe">SlotAsyncReady</a>&amp;&nbsp;</td>
 
241
          <td class="paramname"> <em>slot</em>, </td>
 
242
        </tr>
 
243
        <tr>
 
244
          <td class="paramkey"></td>
 
245
          <td></td>
 
246
          <td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;<a class="el" href="classGio_1_1Cancellable.html">Cancellable</a>&gt;&amp;&nbsp;</td>
 
247
          <td class="paramname"> <em>cancellable</em>, </td>
 
248
        </tr>
 
249
        <tr>
 
250
          <td class="paramkey"></td>
 
251
          <td></td>
 
252
          <td class="paramtype">int&nbsp;</td>
 
253
          <td class="paramname"> <em>io_priority</em> = <code>Glib::PRIORITY_DEFAULT</code></td><td>&nbsp;</td>
 
254
        </tr>
 
255
        <tr>
 
256
          <td></td>
 
257
          <td>)</td>
 
258
          <td></td><td></td><td></td>
 
259
        </tr>
 
260
      </table>
 
261
</div>
 
262
<div class="memdoc">
 
263
 
 
264
<p>
 
265
Requests an asynchronous closes of the stream, releasing resources related to it. 
 
266
<p>
 
267
When the operation is finished <em>slot</em> will be called. You can then call <a class="el" href="classGio_1_1InputStream.html#e5a0d2c3ccf27661e374f151117a8fb7" title="Finishes closing a stream asynchronously, started from g_input_stream_close_async()...">close_finish()</a> to get the result of the operation.<p>
 
268
For behaviour details see <a class="el" href="classGio_1_1InputStream.html#7a3202cf7014bcfb2c0a7f301448ae50" title="Closes the stream, releasing resources related to it.">close()</a>.<p>
 
269
The asyncronous methods have a default fallback that uses threads to implement asynchronicity, so they are optional for inheriting classes. However, if you override one you must override all.<p>
 
270
<dl compact><dt><b>Parameters:</b></dt><dd>
 
271
  <table border="0" cellspacing="2" cellpadding="0">
 
272
    <tr><td valign="top"></td><td valign="top"><em>slot</em>&nbsp;</td><td>Callback to call when the request is satisfied. </td></tr>
 
273
    <tr><td valign="top"></td><td valign="top"><em>cancellable</em>&nbsp;</td><td>A <a class="el" href="classGio_1_1Cancellable.html" title="Allows actions to be cancelled.">Cancellable</a> object. </td></tr>
 
274
    <tr><td valign="top"></td><td valign="top"><em>io_priority</em>&nbsp;</td><td>The I/O priority of the request. </td></tr>
 
275
  </table>
 
276
</dl>
 
277
 
 
278
</div>
 
279
</div><p>
 
280
<a class="anchor" name="e5a0d2c3ccf27661e374f151117a8fb7"></a><!-- doxytag: member="Gio::InputStream::close_finish" ref="e5a0d2c3ccf27661e374f151117a8fb7" args="(const Glib::RefPtr&lt; AsyncResult &gt; &amp;result)" -->
 
281
<div class="memitem">
 
282
<div class="memproto">
 
283
      <table class="memname">
 
284
        <tr>
 
285
          <td class="memname">gboolean Gio::InputStream::close_finish           </td>
 
286
          <td>(</td>
 
287
          <td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;<a class="el" href="classGio_1_1AsyncResult.html">AsyncResult</a>&gt;&amp;&nbsp;</td>
 
288
          <td class="paramname"> <em>result</em>          </td>
 
289
          <td>&nbsp;)&nbsp;</td>
 
290
          <td></td>
 
291
        </tr>
 
292
      </table>
 
293
</div>
 
294
<div class="memdoc">
 
295
 
 
296
<p>
 
297
Finishes closing a stream asynchronously, started from g_input_stream_close_async(). 
 
298
<p>
 
299
<dl compact><dt><b>Parameters:</b></dt><dd>
 
300
  <table border="0" cellspacing="2" cellpadding="0">
 
301
    <tr><td valign="top"></td><td valign="top"><em>result</em>&nbsp;</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>
 
302
  </table>
 
303
</dl>
 
304
<dl class="return" compact><dt><b>Returns:</b></dt><dd><code>true</code> if the stream was closed successfully. </dd></dl>
 
305
 
 
306
</div>
 
307
</div><p>
 
308
<a class="anchor" name="1b0ef82ab81b3ded607584c7029fe1e9"></a><!-- doxytag: member="Gio::InputStream::gobj" ref="1b0ef82ab81b3ded607584c7029fe1e9" args="() const " -->
 
309
<div class="memitem">
 
310
<div class="memproto">
 
311
      <table class="memname">
 
312
        <tr>
 
313
          <td class="memname">const GInputStream* Gio::InputStream::gobj           </td>
 
314
          <td>(</td>
 
315
          <td class="paramname">          </td>
 
316
          <td>&nbsp;)&nbsp;</td>
 
317
          <td> const<code> [inline]</code></td>
 
318
        </tr>
 
319
      </table>
 
320
</div>
 
321
<div class="memdoc">
 
322
 
 
323
<p>
 
324
Provides access to the underlying C GObject. 
 
325
<p>
 
326
 
 
327
<p>Reimplemented from <a class="el" href="classGlib_1_1ObjectBase.html#778a94181132976bbfb0519793f3b32e">Glib::ObjectBase</a>.</p>
 
328
 
 
329
<p>Reimplemented in <a class="el" href="classGio_1_1BufferedInputStream.html#d6b09565f69b4c1cf1f0ca05ee53709e">Gio::BufferedInputStream</a>, <a class="el" href="classGio_1_1DataInputStream.html#5d8f01998854eac791a3089acef051c0">Gio::DataInputStream</a>, <a class="el" href="classGio_1_1FileInputStream.html#b1afea7b758100ca02a6aa5b89d57662">Gio::FileInputStream</a>, <a class="el" href="classGio_1_1FilterInputStream.html#c8fbd2cc879bfab4854d952b27ce271c">Gio::FilterInputStream</a>, <a class="el" href="classGio_1_1MemoryInputStream.html#f9ea44af840fc0d29d460498c8ce7d0e">Gio::MemoryInputStream</a>, and <a class="el" href="classGio_1_1UnixInputStream.html#dc7b87c43606f90378a521df99220971">Gio::UnixInputStream</a>.</p>
 
330
 
 
331
</div>
 
332
</div><p>
137
333
<a class="anchor" name="2ed1120b3d03a12086e7f0ed3946aba1"></a><!-- doxytag: member="Gio::InputStream::gobj" ref="2ed1120b3d03a12086e7f0ed3946aba1" args="()" -->
138
334
<div class="memitem">
139
335
<div class="memproto">
159
355
 
160
356
</div>
161
357
</div><p>
162
 
<a class="anchor" name="1b0ef82ab81b3ded607584c7029fe1e9"></a><!-- doxytag: member="Gio::InputStream::gobj" ref="1b0ef82ab81b3ded607584c7029fe1e9" args="() const " -->
163
 
<div class="memitem">
164
 
<div class="memproto">
165
 
      <table class="memname">
166
 
        <tr>
167
 
          <td class="memname">const GInputStream* Gio::InputStream::gobj           </td>
168
 
          <td>(</td>
169
 
          <td class="paramname">          </td>
170
 
          <td>&nbsp;)&nbsp;</td>
171
 
          <td> const<code> [inline]</code></td>
172
 
        </tr>
173
 
      </table>
174
 
</div>
175
 
<div class="memdoc">
176
 
 
177
 
<p>
178
 
Provides access to the underlying C GObject. 
179
 
<p>
180
 
 
181
 
<p>Reimplemented from <a class="el" href="classGlib_1_1ObjectBase.html#778a94181132976bbfb0519793f3b32e">Glib::ObjectBase</a>.</p>
182
 
 
183
 
<p>Reimplemented in <a class="el" href="classGio_1_1BufferedInputStream.html#d6b09565f69b4c1cf1f0ca05ee53709e">Gio::BufferedInputStream</a>, <a class="el" href="classGio_1_1DataInputStream.html#5d8f01998854eac791a3089acef051c0">Gio::DataInputStream</a>, <a class="el" href="classGio_1_1FileInputStream.html#b1afea7b758100ca02a6aa5b89d57662">Gio::FileInputStream</a>, <a class="el" href="classGio_1_1FilterInputStream.html#c8fbd2cc879bfab4854d952b27ce271c">Gio::FilterInputStream</a>, <a class="el" href="classGio_1_1MemoryInputStream.html#f9ea44af840fc0d29d460498c8ce7d0e">Gio::MemoryInputStream</a>, and <a class="el" href="classGio_1_1UnixInputStream.html#dc7b87c43606f90378a521df99220971">Gio::UnixInputStream</a>.</p>
184
 
 
185
 
</div>
186
 
</div><p>
187
358
<a class="anchor" name="28a9394b07e9183c0c79798ea344c65c"></a><!-- doxytag: member="Gio::InputStream::gobj_copy" ref="28a9394b07e9183c0c79798ea344c65c" args="()" -->
188
359
<div class="memitem">
189
360
<div class="memproto">
207
378
 
208
379
</div>
209
380
</div><p>
210
 
<a class="anchor" name="49a1f4219f96c7fafdcf1ed12eb443e2"></a><!-- doxytag: member="Gio::InputStream::read" ref="49a1f4219f96c7fafdcf1ed12eb443e2" args="(void *buffer, gsize count, const Glib::RefPtr&lt; Cancellable &gt; &amp;cancellable)" -->
211
 
<div class="memitem">
212
 
<div class="memproto">
213
 
      <table class="memname">
214
 
        <tr>
215
 
          <td class="memname">gssize Gio::InputStream::read           </td>
216
 
          <td>(</td>
217
 
          <td class="paramtype">void *&nbsp;</td>
218
 
          <td class="paramname"> <em>buffer</em>, </td>
219
 
        </tr>
220
 
        <tr>
221
 
          <td class="paramkey"></td>
222
 
          <td></td>
223
 
          <td class="paramtype">gsize&nbsp;</td>
224
 
          <td class="paramname"> <em>count</em>, </td>
225
 
        </tr>
226
 
        <tr>
227
 
          <td class="paramkey"></td>
228
 
          <td></td>
229
 
          <td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;<a class="el" href="classGio_1_1Cancellable.html">Cancellable</a>&gt;&amp;&nbsp;</td>
230
 
          <td class="paramname"> <em>cancellable</em></td><td>&nbsp;</td>
231
 
        </tr>
232
 
        <tr>
233
 
          <td></td>
234
 
          <td>)</td>
235
 
          <td></td><td></td><td></td>
236
 
        </tr>
237
 
      </table>
238
 
</div>
239
 
<div class="memdoc">
240
 
 
241
 
<p>
242
 
Tries to read <em>count</em> bytes from the stream into the buffer starting at <em>buffer</em>. 
243
 
<p>
244
 
Will block during this read.<p>
245
 
If count 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> with INVALID_ARGUMENT to be thrown.<p>
246
 
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>
247
 
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. <dl compact><dt><b>Parameters:</b></dt><dd>
248
 
  <table border="0" cellspacing="2" cellpadding="0">
249
 
    <tr><td valign="top"></td><td valign="top"><em>buffer</em>&nbsp;</td><td>A buffer to read data into (which should be at least count bytes long). </td></tr>
250
 
    <tr><td valign="top"></td><td valign="top"><em>count</em>&nbsp;</td><td>The number of bytes that will be read from the stream. </td></tr>
251
 
    <tr><td valign="top"></td><td valign="top"><em>cancellable</em>&nbsp;</td><td><a class="el" href="classGio_1_1Cancellable.html" title="Allows actions to be cancelled.">Cancellable</a> object. </td></tr>
252
 
  </table>
253
 
</dl>
254
 
<dl class="return" compact><dt><b>Returns:</b></dt><dd>Number of bytes read, or -1 on error. </dd></dl>
255
 
 
256
 
</div>
257
 
</div><p>
258
381
<a class="anchor" name="42ab2486116d40f6ef828277befb508a"></a><!-- doxytag: member="Gio::InputStream::read" ref="42ab2486116d40f6ef828277befb508a" args="(void *buffer, gsize count)" -->
259
382
<div class="memitem">
260
383
<div class="memproto">
296
419
 
297
420
</div>
298
421
</div><p>
 
422
<a class="anchor" name="49a1f4219f96c7fafdcf1ed12eb443e2"></a><!-- doxytag: member="Gio::InputStream::read" ref="49a1f4219f96c7fafdcf1ed12eb443e2" args="(void *buffer, gsize count, const Glib::RefPtr&lt; Cancellable &gt; &amp;cancellable)" -->
 
423
<div class="memitem">
 
424
<div class="memproto">
 
425
      <table class="memname">
 
426
        <tr>
 
427
          <td class="memname">gssize Gio::InputStream::read           </td>
 
428
          <td>(</td>
 
429
          <td class="paramtype">void *&nbsp;</td>
 
430
          <td class="paramname"> <em>buffer</em>, </td>
 
431
        </tr>
 
432
        <tr>
 
433
          <td class="paramkey"></td>
 
434
          <td></td>
 
435
          <td class="paramtype">gsize&nbsp;</td>
 
436
          <td class="paramname"> <em>count</em>, </td>
 
437
        </tr>
 
438
        <tr>
 
439
          <td class="paramkey"></td>
 
440
          <td></td>
 
441
          <td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;<a class="el" href="classGio_1_1Cancellable.html">Cancellable</a>&gt;&amp;&nbsp;</td>
 
442
          <td class="paramname"> <em>cancellable</em></td><td>&nbsp;</td>
 
443
        </tr>
 
444
        <tr>
 
445
          <td></td>
 
446
          <td>)</td>
 
447
          <td></td><td></td><td></td>
 
448
        </tr>
 
449
      </table>
 
450
</div>
 
451
<div class="memdoc">
 
452
 
 
453
<p>
 
454
Tries to read <em>count</em> bytes from the stream into the buffer starting at <em>buffer</em>. 
 
455
<p>
 
456
Will block during this read.<p>
 
457
If count 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> with INVALID_ARGUMENT to be thrown.<p>
 
458
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>
 
459
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. <dl compact><dt><b>Parameters:</b></dt><dd>
 
460
  <table border="0" cellspacing="2" cellpadding="0">
 
461
    <tr><td valign="top"></td><td valign="top"><em>buffer</em>&nbsp;</td><td>A buffer to read data into (which should be at least count bytes long). </td></tr>
 
462
    <tr><td valign="top"></td><td valign="top"><em>count</em>&nbsp;</td><td>The number of bytes that will be read from the stream. </td></tr>
 
463
    <tr><td valign="top"></td><td valign="top"><em>cancellable</em>&nbsp;</td><td><a class="el" href="classGio_1_1Cancellable.html" title="Allows actions to be cancelled.">Cancellable</a> object. </td></tr>
 
464
  </table>
 
465
</dl>
 
466
<dl class="return" compact><dt><b>Returns:</b></dt><dd>Number of bytes read, or -1 on error. </dd></dl>
 
467
 
 
468
</div>
 
469
</div><p>
 
470
<a class="anchor" name="6da0fc57d1a5df7107370c67e84aa496"></a><!-- doxytag: member="Gio::InputStream::read_all" ref="6da0fc57d1a5df7107370c67e84aa496" args="(void *buffer, gsize count, gsize &amp;bytes_read)" -->
 
471
<div class="memitem">
 
472
<div class="memproto">
 
473
      <table class="memname">
 
474
        <tr>
 
475
          <td class="memname">bool Gio::InputStream::read_all           </td>
 
476
          <td>(</td>
 
477
          <td class="paramtype">void *&nbsp;</td>
 
478
          <td class="paramname"> <em>buffer</em>, </td>
 
479
        </tr>
 
480
        <tr>
 
481
          <td class="paramkey"></td>
 
482
          <td></td>
 
483
          <td class="paramtype">gsize&nbsp;</td>
 
484
          <td class="paramname"> <em>count</em>, </td>
 
485
        </tr>
 
486
        <tr>
 
487
          <td class="paramkey"></td>
 
488
          <td></td>
 
489
          <td class="paramtype">gsize &amp;&nbsp;</td>
 
490
          <td class="paramname"> <em>bytes_read</em></td><td>&nbsp;</td>
 
491
        </tr>
 
492
        <tr>
 
493
          <td></td>
 
494
          <td>)</td>
 
495
          <td></td><td></td><td></td>
 
496
        </tr>
 
497
      </table>
 
498
</div>
 
499
<div class="memdoc">
 
500
 
 
501
<p>
 
502
Tries to read <em>count</em> bytes from the stream into the buffer starting at <em>buffer</em>. 
 
503
<p>
 
504
Will block during this read.<p>
 
505
This function is similar to <a class="el" href="classGio_1_1InputStream.html#49a1f4219f96c7fafdcf1ed12eb443e2" title="Tries to read count bytes from the stream into the buffer starting at buffer.">read()</a>, except it tries to read as many bytes as requested, only stopping on an error or end of stream.<p>
 
506
On a successful read of <em>count</em> bytes, or if we reached the end of the stream, <code>true</code> is returned, and <em>bytes_read</em> is set to the number of bytes read into <em>buffer</em> .<p>
 
507
If there is an error during the operation <code>false</code> is returned and a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> is thrown to indicate the error status, <em>bytes_read</em> is updated to contain the number of bytes read into <em>buffer</em> before the error occured. <dl compact><dt><b>Parameters:</b></dt><dd>
 
508
  <table border="0" cellspacing="2" cellpadding="0">
 
509
    <tr><td valign="top"></td><td valign="top"><em>buffer</em>&nbsp;</td><td>A buffer to read data into (which should be at least count bytes long). </td></tr>
 
510
    <tr><td valign="top"></td><td valign="top"><em>count</em>&nbsp;</td><td>The number of bytes that will be read from the stream. </td></tr>
 
511
    <tr><td valign="top"></td><td valign="top"><em>bytes_read</em>&nbsp;</td><td>Location to store the number of bytes that was read from the stream. </td></tr>
 
512
  </table>
 
513
</dl>
 
514
<dl class="return" compact><dt><b>Returns:</b></dt><dd><code>true</code> on success, <code>false</code> if there was an error. </dd></dl>
 
515
 
 
516
</div>
 
517
</div><p>
299
518
<a class="anchor" name="1dc8a2babf32f93a0a5dccc0c39e0959"></a><!-- doxytag: member="Gio::InputStream::read_all" ref="1dc8a2babf32f93a0a5dccc0c39e0959" args="(void *buffer, gsize count, gsize &amp;bytes_read, const Glib::RefPtr&lt; Cancellable &gt; &amp;cancellable)" -->
300
519
<div class="memitem">
301
520
<div class="memproto">
351
570
 
352
571
</div>
353
572
</div><p>
354
 
<a class="anchor" name="6da0fc57d1a5df7107370c67e84aa496"></a><!-- doxytag: member="Gio::InputStream::read_all" ref="6da0fc57d1a5df7107370c67e84aa496" args="(void *buffer, gsize count, gsize &amp;bytes_read)" -->
355
 
<div class="memitem">
356
 
<div class="memproto">
357
 
      <table class="memname">
358
 
        <tr>
359
 
          <td class="memname">bool Gio::InputStream::read_all           </td>
360
 
          <td>(</td>
361
 
          <td class="paramtype">void *&nbsp;</td>
362
 
          <td class="paramname"> <em>buffer</em>, </td>
363
 
        </tr>
364
 
        <tr>
365
 
          <td class="paramkey"></td>
366
 
          <td></td>
367
 
          <td class="paramtype">gsize&nbsp;</td>
368
 
          <td class="paramname"> <em>count</em>, </td>
369
 
        </tr>
370
 
        <tr>
371
 
          <td class="paramkey"></td>
372
 
          <td></td>
373
 
          <td class="paramtype">gsize &amp;&nbsp;</td>
374
 
          <td class="paramname"> <em>bytes_read</em></td><td>&nbsp;</td>
375
 
        </tr>
376
 
        <tr>
377
 
          <td></td>
378
 
          <td>)</td>
379
 
          <td></td><td></td><td></td>
380
 
        </tr>
381
 
      </table>
382
 
</div>
383
 
<div class="memdoc">
384
 
 
385
 
<p>
386
 
Tries to read <em>count</em> bytes from the stream into the buffer starting at <em>buffer</em>. 
387
 
<p>
388
 
Will block during this read.<p>
389
 
This function is similar to <a class="el" href="classGio_1_1InputStream.html#49a1f4219f96c7fafdcf1ed12eb443e2" title="Tries to read count bytes from the stream into the buffer starting at buffer.">read()</a>, except it tries to read as many bytes as requested, only stopping on an error or end of stream.<p>
390
 
On a successful read of <em>count</em> bytes, or if we reached the end of the stream, <code>true</code> is returned, and <em>bytes_read</em> is set to the number of bytes read into <em>buffer</em> .<p>
391
 
If there is an error during the operation <code>false</code> is returned and a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> is thrown to indicate the error status, <em>bytes_read</em> is updated to contain the number of bytes read into <em>buffer</em> before the error occured. <dl compact><dt><b>Parameters:</b></dt><dd>
392
 
  <table border="0" cellspacing="2" cellpadding="0">
393
 
    <tr><td valign="top"></td><td valign="top"><em>buffer</em>&nbsp;</td><td>A buffer to read data into (which should be at least count bytes long). </td></tr>
394
 
    <tr><td valign="top"></td><td valign="top"><em>count</em>&nbsp;</td><td>The number of bytes that will be read from the stream. </td></tr>
395
 
    <tr><td valign="top"></td><td valign="top"><em>bytes_read</em>&nbsp;</td><td>Location to store the number of bytes that was read from the stream. </td></tr>
396
 
  </table>
397
 
</dl>
398
 
<dl class="return" compact><dt><b>Returns:</b></dt><dd><code>true</code> on success, <code>false</code> if there was an error. </dd></dl>
399
 
 
400
 
</div>
401
 
</div><p>
402
 
<a class="anchor" name="17ea65f35c15043156db90af831a44a3"></a><!-- doxytag: member="Gio::InputStream::skip" ref="17ea65f35c15043156db90af831a44a3" args="(gsize count, const Glib::RefPtr&lt; Cancellable &gt; &amp;cancellable)" -->
403
 
<div class="memitem">
404
 
<div class="memproto">
405
 
      <table class="memname">
406
 
        <tr>
407
 
          <td class="memname">gssize Gio::InputStream::skip           </td>
408
 
          <td>(</td>
409
 
          <td class="paramtype">gsize&nbsp;</td>
410
 
          <td class="paramname"> <em>count</em>, </td>
411
 
        </tr>
412
 
        <tr>
413
 
          <td class="paramkey"></td>
414
 
          <td></td>
415
 
          <td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;<a class="el" href="classGio_1_1Cancellable.html">Cancellable</a>&gt;&amp;&nbsp;</td>
416
 
          <td class="paramname"> <em>cancellable</em></td><td>&nbsp;</td>
417
 
        </tr>
418
 
        <tr>
419
 
          <td></td>
420
 
          <td>)</td>
421
 
          <td></td><td></td><td></td>
422
 
        </tr>
423
 
      </table>
424
 
</div>
425
 
<div class="memdoc">
426
 
 
427
 
<p>
428
 
Tries to skip <em>count</em> bytes from the stream. 
429
 
<p>
430
 
Will block during the operation.<p>
431
 
This is identical to g_input_stream_read(), from a behaviour standpoint, but the bytes that are skipped are not returned to the user. Some streams have an implementation that is more efficient than reading the data.<p>
432
 
This function is optional for inherited classes, as the default implementation emulates it using read.<p>
433
 
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. <dl compact><dt><b>Parameters:</b></dt><dd>
434
 
  <table border="0" cellspacing="2" cellpadding="0">
435
 
    <tr><td valign="top"></td><td valign="top"><em>count</em>&nbsp;</td><td>The number of bytes that will be skipped from the stream. </td></tr>
436
 
    <tr><td valign="top"></td><td valign="top"><em>cancellable</em>&nbsp;</td><td><a class="el" href="classGio_1_1Cancellable.html" title="Allows actions to be cancelled.">Cancellable</a> object. </td></tr>
437
 
  </table>
438
 
</dl>
439
 
<dl class="return" compact><dt><b>Returns:</b></dt><dd>Number of bytes skipped, or -1 on error. </dd></dl>
440
 
 
441
 
</div>
442
 
</div><p>
443
 
<a class="anchor" name="1ea9146d612c666168886734b79a5d65"></a><!-- doxytag: member="Gio::InputStream::skip" ref="1ea9146d612c666168886734b79a5d65" args="(gsize count)" -->
444
 
<div class="memitem">
445
 
<div class="memproto">
446
 
      <table class="memname">
447
 
        <tr>
448
 
          <td class="memname">gssize Gio::InputStream::skip           </td>
449
 
          <td>(</td>
450
 
          <td class="paramtype">gsize&nbsp;</td>
451
 
          <td class="paramname"> <em>count</em>          </td>
452
 
          <td>&nbsp;)&nbsp;</td>
453
 
          <td></td>
454
 
        </tr>
455
 
      </table>
456
 
</div>
457
 
<div class="memdoc">
458
 
 
459
 
<p>
460
 
Tries to skip <em>count</em> bytes from the stream. 
461
 
<p>
462
 
Will block during the operation.<p>
463
 
This is identical to <a class="el" href="classGio_1_1InputStream.html#49a1f4219f96c7fafdcf1ed12eb443e2" title="Tries to read count bytes from the stream into the buffer starting at buffer.">read()</a>, from a behaviour standpoint, but the bytes that are skipped are not returned to the user. Some streams have an implementation that is more efficient than reading the data.<p>
464
 
This function is optional for inherited classes, as the default implementation emulates it using read.<p>
465
 
<dl compact><dt><b>Parameters:</b></dt><dd>
466
 
  <table border="0" cellspacing="2" cellpadding="0">
467
 
    <tr><td valign="top"></td><td valign="top"><em>count</em>&nbsp;</td><td>The number of bytes that will be skipped from the stream. </td></tr>
468
 
  </table>
469
 
</dl>
470
 
<dl class="return" compact><dt><b>Returns:</b></dt><dd>Number of bytes skipped, or -1 on error. </dd></dl>
471
 
 
472
 
</div>
473
 
</div><p>
474
 
<a class="anchor" name="1b76b2503e607475f63731a886456e09"></a><!-- doxytag: member="Gio::InputStream::close" ref="1b76b2503e607475f63731a886456e09" args="(const Glib::RefPtr&lt; Cancellable &gt; &amp;cancellable)" -->
475
 
<div class="memitem">
476
 
<div class="memproto">
477
 
      <table class="memname">
478
 
        <tr>
479
 
          <td class="memname">bool Gio::InputStream::close           </td>
480
 
          <td>(</td>
481
 
          <td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;<a class="el" href="classGio_1_1Cancellable.html">Cancellable</a>&gt;&amp;&nbsp;</td>
482
 
          <td class="paramname"> <em>cancellable</em>          </td>
483
 
          <td>&nbsp;)&nbsp;</td>
484
 
          <td></td>
485
 
        </tr>
486
 
      </table>
487
 
</div>
488
 
<div class="memdoc">
489
 
 
490
 
<p>
491
 
Closes the stream, releasing resources related to it. 
492
 
<p>
493
 
Once the stream is closed, all other operations will throw a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with CLOSED. Closing a stream multiple times will not return an error.<p>
494
 
Streams will be automatically closed when the last reference is dropped, but you might want to call this function to make sure resources are released as early as possible.<p>
495
 
Some streams might keep the backing store of the stream (e.g. a file descriptor) open after the stream is closed. See the documentation for the individual stream for details.<p>
496
 
On failure the first error that happened will be reported, but the close operation will finish as much as possible. A stream that failed to close will still throw a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with CLOSED for all operations. Still, it is important to check and report the error to the user.<p>
497
 
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. Cancelling a close will still leave the stream closed, but some streams can use a faster close that doesn't block to e.g. check errors. <dl compact><dt><b>Parameters:</b></dt><dd>
498
 
  <table border="0" cellspacing="2" cellpadding="0">
499
 
    <tr><td valign="top"></td><td valign="top"><em>cancellable</em>&nbsp;</td><td><a class="el" href="classGio_1_1Cancellable.html" title="Allows actions to be cancelled.">Cancellable</a> object. </td></tr>
500
 
  </table>
501
 
</dl>
502
 
<dl class="return" compact><dt><b>Returns:</b></dt><dd><code>true</code> on success, <code>false</code> on failure. </dd></dl>
503
 
 
504
 
</div>
505
 
</div><p>
506
 
<a class="anchor" name="7a3202cf7014bcfb2c0a7f301448ae50"></a><!-- doxytag: member="Gio::InputStream::close" ref="7a3202cf7014bcfb2c0a7f301448ae50" args="()" -->
507
 
<div class="memitem">
508
 
<div class="memproto">
509
 
      <table class="memname">
510
 
        <tr>
511
 
          <td class="memname">bool Gio::InputStream::close           </td>
512
 
          <td>(</td>
513
 
          <td class="paramname">          </td>
514
 
          <td>&nbsp;)&nbsp;</td>
515
 
          <td></td>
516
 
        </tr>
517
 
      </table>
518
 
</div>
519
 
<div class="memdoc">
520
 
 
521
 
<p>
522
 
Closes the stream, releasing resources related to it. 
523
 
<p>
524
 
Once the stream is closed, all other operations will throw a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with CLOSED. Closing a stream multiple times will not return an error.<p>
525
 
Streams will be automatically closed when the last reference is dropped, but you might want to call this make sure resources are released as early as possible.<p>
526
 
Some streams might keep the backing store of the stream (e.g. a file descriptor) open after the stream is closed. See the documentation for the individual stream for details.<p>
527
 
On failure the first error that happened will be reported, but the close operation will finish as much as possible. A stream that failed to close will still throw a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with CLOSED for all operations. Still, it is important to check and report the error to the user.<p>
528
 
<dl class="return" compact><dt><b>Returns:</b></dt><dd><code>true</code> on success, <code>false</code> on failure. </dd></dl>
529
 
 
530
 
</div>
531
 
</div><p>
532
 
<a class="anchor" name="5b7762ee3f3c571fbc59a0c9af6e879e"></a><!-- doxytag: member="Gio::InputStream::read_async" ref="5b7762ee3f3c571fbc59a0c9af6e879e" args="(void *buffer, gsize count, const SlotAsyncReady &amp;slot, const Glib::RefPtr&lt; Cancellable &gt; &amp;cancellable, int io_priority=Glib::PRIORITY_DEFAULT)" -->
533
 
<div class="memitem">
534
 
<div class="memproto">
535
 
      <table class="memname">
536
 
        <tr>
537
 
          <td class="memname">void Gio::InputStream::read_async           </td>
538
 
          <td>(</td>
539
 
          <td class="paramtype">void *&nbsp;</td>
540
 
          <td class="paramname"> <em>buffer</em>, </td>
541
 
        </tr>
542
 
        <tr>
543
 
          <td class="paramkey"></td>
544
 
          <td></td>
545
 
          <td class="paramtype">gsize&nbsp;</td>
546
 
          <td class="paramname"> <em>count</em>, </td>
547
 
        </tr>
548
 
        <tr>
549
 
          <td class="paramkey"></td>
550
 
          <td></td>
551
 
          <td class="paramtype">const <a class="el" href="namespaceGio.html#ecaa02709f9ab83fa2b36d2571665cbe">SlotAsyncReady</a>&amp;&nbsp;</td>
552
 
          <td class="paramname"> <em>slot</em>, </td>
553
 
        </tr>
554
 
        <tr>
555
 
          <td class="paramkey"></td>
556
 
          <td></td>
557
 
          <td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;<a class="el" href="classGio_1_1Cancellable.html">Cancellable</a>&gt;&amp;&nbsp;</td>
558
 
          <td class="paramname"> <em>cancellable</em>, </td>
559
 
        </tr>
560
 
        <tr>
561
 
          <td class="paramkey"></td>
562
 
          <td></td>
563
 
          <td class="paramtype">int&nbsp;</td>
564
 
          <td class="paramname"> <em>io_priority</em> = <code>Glib::PRIORITY_DEFAULT</code></td><td>&nbsp;</td>
565
 
        </tr>
566
 
        <tr>
567
 
          <td></td>
568
 
          <td>)</td>
569
 
          <td></td><td></td><td></td>
570
 
        </tr>
571
 
      </table>
572
 
</div>
573
 
<div class="memdoc">
574
 
 
575
 
<p>
576
 
Request an asynchronous read of <em>count</em> bytes from the stream into the buffer starting at <em>buffer</em>. 
577
 
<p>
578
 
When the operation is finished <em>slot</em> will be called. You can then call <a class="el" href="classGio_1_1InputStream.html#c089ab220e671ba0af2dd97f2405c0c5" title="Finishes an asynchronous stream read operation.">read_finish()</a> to get the result of the operation.<p>
579
 
During an async request no other sync and async calls are allowed, and will result in <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with PENDING being thrown.<p>
580
 
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> with INVALID_ARGUMENT to be thrown.<p>
581
 
On success, the number of bytes read into the buffer will be passed to the <em>slot</em> callback. 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, but generally we try to read as many bytes as requested. Zero is returned on end of file (or if <em>count</em> is zero), but never otherwise.<p>
582
 
Any outstanding i/o request with higher priority (lower numerical value) will be executed before an outstanding request with lower priority. Default priority is PRIORITY_DEFAULT.<p>
583
 
The asyncronous methods have a default fallback that uses threads to implement asynchronicity, so they are optional for inheriting classes. However, if you override one you must override all.<p>
584
 
<dl compact><dt><b>Parameters:</b></dt><dd>
585
 
  <table border="0" cellspacing="2" cellpadding="0">
586
 
    <tr><td valign="top"></td><td valign="top"><em>buffer</em>&nbsp;</td><td>A buffer to read data into (which should be at least count bytes long). </td></tr>
587
 
    <tr><td valign="top"></td><td valign="top"><em>count</em>&nbsp;</td><td>The number of bytes that will be read from the stream. </td></tr>
588
 
    <tr><td valign="top"></td><td valign="top"><em>slot</em>&nbsp;</td><td>Callback to call when the request is satisfied. </td></tr>
589
 
    <tr><td valign="top"></td><td valign="top"><em>cancellable</em>&nbsp;</td><td>A <a class="el" href="classGio_1_1Cancellable.html" title="Allows actions to be cancelled.">Cancellable</a> object. </td></tr>
590
 
    <tr><td valign="top"></td><td valign="top"><em>io_priority</em>&nbsp;</td><td>The I/O priority of the request. </td></tr>
591
 
  </table>
592
 
</dl>
593
 
 
594
 
</div>
595
 
</div><p>
596
573
<a class="anchor" name="05bea76fa9ac3c098a167d2b377e36a6"></a><!-- doxytag: member="Gio::InputStream::read_async" ref="05bea76fa9ac3c098a167d2b377e36a6" args="(void *buffer, gsize count, const SlotAsyncReady &amp;slot, int io_priority=Glib::PRIORITY_DEFAULT)" -->
597
574
<div class="memitem">
598
575
<div class="memproto">
650
627
 
651
628
</div>
652
629
</div><p>
 
630
<a class="anchor" name="5b7762ee3f3c571fbc59a0c9af6e879e"></a><!-- doxytag: member="Gio::InputStream::read_async" ref="5b7762ee3f3c571fbc59a0c9af6e879e" args="(void *buffer, gsize count, const SlotAsyncReady &amp;slot, const Glib::RefPtr&lt; Cancellable &gt; &amp;cancellable, int io_priority=Glib::PRIORITY_DEFAULT)" -->
 
631
<div class="memitem">
 
632
<div class="memproto">
 
633
      <table class="memname">
 
634
        <tr>
 
635
          <td class="memname">void Gio::InputStream::read_async           </td>
 
636
          <td>(</td>
 
637
          <td class="paramtype">void *&nbsp;</td>
 
638
          <td class="paramname"> <em>buffer</em>, </td>
 
639
        </tr>
 
640
        <tr>
 
641
          <td class="paramkey"></td>
 
642
          <td></td>
 
643
          <td class="paramtype">gsize&nbsp;</td>
 
644
          <td class="paramname"> <em>count</em>, </td>
 
645
        </tr>
 
646
        <tr>
 
647
          <td class="paramkey"></td>
 
648
          <td></td>
 
649
          <td class="paramtype">const <a class="el" href="namespaceGio.html#ecaa02709f9ab83fa2b36d2571665cbe">SlotAsyncReady</a>&amp;&nbsp;</td>
 
650
          <td class="paramname"> <em>slot</em>, </td>
 
651
        </tr>
 
652
        <tr>
 
653
          <td class="paramkey"></td>
 
654
          <td></td>
 
655
          <td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;<a class="el" href="classGio_1_1Cancellable.html">Cancellable</a>&gt;&amp;&nbsp;</td>
 
656
          <td class="paramname"> <em>cancellable</em>, </td>
 
657
        </tr>
 
658
        <tr>
 
659
          <td class="paramkey"></td>
 
660
          <td></td>
 
661
          <td class="paramtype">int&nbsp;</td>
 
662
          <td class="paramname"> <em>io_priority</em> = <code>Glib::PRIORITY_DEFAULT</code></td><td>&nbsp;</td>
 
663
        </tr>
 
664
        <tr>
 
665
          <td></td>
 
666
          <td>)</td>
 
667
          <td></td><td></td><td></td>
 
668
        </tr>
 
669
      </table>
 
670
</div>
 
671
<div class="memdoc">
 
672
 
 
673
<p>
 
674
Request an asynchronous read of <em>count</em> bytes from the stream into the buffer starting at <em>buffer</em>. 
 
675
<p>
 
676
When the operation is finished <em>slot</em> will be called. You can then call <a class="el" href="classGio_1_1InputStream.html#c089ab220e671ba0af2dd97f2405c0c5" title="Finishes an asynchronous stream read operation.">read_finish()</a> to get the result of the operation.<p>
 
677
During an async request no other sync and async calls are allowed, and will result in <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with PENDING being thrown.<p>
 
678
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> with INVALID_ARGUMENT to be thrown.<p>
 
679
On success, the number of bytes read into the buffer will be passed to the <em>slot</em> callback. 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, but generally we try to read as many bytes as requested. Zero is returned on end of file (or if <em>count</em> is zero), but never otherwise.<p>
 
680
Any outstanding i/o request with higher priority (lower numerical value) will be executed before an outstanding request with lower priority. Default priority is PRIORITY_DEFAULT.<p>
 
681
The asyncronous methods have a default fallback that uses threads to implement asynchronicity, so they are optional for inheriting classes. However, if you override one you must override all.<p>
 
682
<dl compact><dt><b>Parameters:</b></dt><dd>
 
683
  <table border="0" cellspacing="2" cellpadding="0">
 
684
    <tr><td valign="top"></td><td valign="top"><em>buffer</em>&nbsp;</td><td>A buffer to read data into (which should be at least count bytes long). </td></tr>
 
685
    <tr><td valign="top"></td><td valign="top"><em>count</em>&nbsp;</td><td>The number of bytes that will be read from the stream. </td></tr>
 
686
    <tr><td valign="top"></td><td valign="top"><em>slot</em>&nbsp;</td><td>Callback to call when the request is satisfied. </td></tr>
 
687
    <tr><td valign="top"></td><td valign="top"><em>cancellable</em>&nbsp;</td><td>A <a class="el" href="classGio_1_1Cancellable.html" title="Allows actions to be cancelled.">Cancellable</a> object. </td></tr>
 
688
    <tr><td valign="top"></td><td valign="top"><em>io_priority</em>&nbsp;</td><td>The I/O priority of the request. </td></tr>
 
689
  </table>
 
690
</dl>
 
691
 
 
692
</div>
 
693
</div><p>
653
694
<a class="anchor" name="c089ab220e671ba0af2dd97f2405c0c5"></a><!-- doxytag: member="Gio::InputStream::read_finish" ref="c089ab220e671ba0af2dd97f2405c0c5" args="(const Glib::RefPtr&lt; AsyncResult &gt; &amp;result)" -->
654
695
<div class="memitem">
655
696
<div class="memproto">
678
719
 
679
720
</div>
680
721
</div><p>
 
722
<a class="anchor" name="1ea9146d612c666168886734b79a5d65"></a><!-- doxytag: member="Gio::InputStream::skip" ref="1ea9146d612c666168886734b79a5d65" args="(gsize count)" -->
 
723
<div class="memitem">
 
724
<div class="memproto">
 
725
      <table class="memname">
 
726
        <tr>
 
727
          <td class="memname">gssize Gio::InputStream::skip           </td>
 
728
          <td>(</td>
 
729
          <td class="paramtype">gsize&nbsp;</td>
 
730
          <td class="paramname"> <em>count</em>          </td>
 
731
          <td>&nbsp;)&nbsp;</td>
 
732
          <td></td>
 
733
        </tr>
 
734
      </table>
 
735
</div>
 
736
<div class="memdoc">
 
737
 
 
738
<p>
 
739
Tries to skip <em>count</em> bytes from the stream. 
 
740
<p>
 
741
Will block during the operation.<p>
 
742
This is identical to <a class="el" href="classGio_1_1InputStream.html#49a1f4219f96c7fafdcf1ed12eb443e2" title="Tries to read count bytes from the stream into the buffer starting at buffer.">read()</a>, from a behaviour standpoint, but the bytes that are skipped are not returned to the user. Some streams have an implementation that is more efficient than reading the data.<p>
 
743
This function is optional for inherited classes, as the default implementation emulates it using read.<p>
 
744
<dl compact><dt><b>Parameters:</b></dt><dd>
 
745
  <table border="0" cellspacing="2" cellpadding="0">
 
746
    <tr><td valign="top"></td><td valign="top"><em>count</em>&nbsp;</td><td>The number of bytes that will be skipped from the stream. </td></tr>
 
747
  </table>
 
748
</dl>
 
749
<dl class="return" compact><dt><b>Returns:</b></dt><dd>Number of bytes skipped, or -1 on error. </dd></dl>
 
750
 
 
751
</div>
 
752
</div><p>
 
753
<a class="anchor" name="17ea65f35c15043156db90af831a44a3"></a><!-- doxytag: member="Gio::InputStream::skip" ref="17ea65f35c15043156db90af831a44a3" args="(gsize count, const Glib::RefPtr&lt; Cancellable &gt; &amp;cancellable)" -->
 
754
<div class="memitem">
 
755
<div class="memproto">
 
756
      <table class="memname">
 
757
        <tr>
 
758
          <td class="memname">gssize Gio::InputStream::skip           </td>
 
759
          <td>(</td>
 
760
          <td class="paramtype">gsize&nbsp;</td>
 
761
          <td class="paramname"> <em>count</em>, </td>
 
762
        </tr>
 
763
        <tr>
 
764
          <td class="paramkey"></td>
 
765
          <td></td>
 
766
          <td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;<a class="el" href="classGio_1_1Cancellable.html">Cancellable</a>&gt;&amp;&nbsp;</td>
 
767
          <td class="paramname"> <em>cancellable</em></td><td>&nbsp;</td>
 
768
        </tr>
 
769
        <tr>
 
770
          <td></td>
 
771
          <td>)</td>
 
772
          <td></td><td></td><td></td>
 
773
        </tr>
 
774
      </table>
 
775
</div>
 
776
<div class="memdoc">
 
777
 
 
778
<p>
 
779
Tries to skip <em>count</em> bytes from the stream. 
 
780
<p>
 
781
Will block during the operation.<p>
 
782
This is identical to g_input_stream_read(), from a behaviour standpoint, but the bytes that are skipped are not returned to the user. Some streams have an implementation that is more efficient than reading the data.<p>
 
783
This function is optional for inherited classes, as the default implementation emulates it using read.<p>
 
784
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. <dl compact><dt><b>Parameters:</b></dt><dd>
 
785
  <table border="0" cellspacing="2" cellpadding="0">
 
786
    <tr><td valign="top"></td><td valign="top"><em>count</em>&nbsp;</td><td>The number of bytes that will be skipped from the stream. </td></tr>
 
787
    <tr><td valign="top"></td><td valign="top"><em>cancellable</em>&nbsp;</td><td><a class="el" href="classGio_1_1Cancellable.html" title="Allows actions to be cancelled.">Cancellable</a> object. </td></tr>
 
788
  </table>
 
789
</dl>
 
790
<dl class="return" compact><dt><b>Returns:</b></dt><dd>Number of bytes skipped, or -1 on error. </dd></dl>
 
791
 
 
792
</div>
 
793
</div><p>
 
794
<a class="anchor" name="111e86dad4548394edcff16d7735d2d5"></a><!-- doxytag: member="Gio::InputStream::skip_async" ref="111e86dad4548394edcff16d7735d2d5" args="(gsize count, const SlotAsyncReady &amp;slot, int io_priority=Glib::PRIORITY_DEFAULT)" -->
 
795
<div class="memitem">
 
796
<div class="memproto">
 
797
      <table class="memname">
 
798
        <tr>
 
799
          <td class="memname">void Gio::InputStream::skip_async           </td>
 
800
          <td>(</td>
 
801
          <td class="paramtype">gsize&nbsp;</td>
 
802
          <td class="paramname"> <em>count</em>, </td>
 
803
        </tr>
 
804
        <tr>
 
805
          <td class="paramkey"></td>
 
806
          <td></td>
 
807
          <td class="paramtype">const <a class="el" href="namespaceGio.html#ecaa02709f9ab83fa2b36d2571665cbe">SlotAsyncReady</a>&amp;&nbsp;</td>
 
808
          <td class="paramname"> <em>slot</em>, </td>
 
809
        </tr>
 
810
        <tr>
 
811
          <td class="paramkey"></td>
 
812
          <td></td>
 
813
          <td class="paramtype">int&nbsp;</td>
 
814
          <td class="paramname"> <em>io_priority</em> = <code>Glib::PRIORITY_DEFAULT</code></td><td>&nbsp;</td>
 
815
        </tr>
 
816
        <tr>
 
817
          <td></td>
 
818
          <td>)</td>
 
819
          <td></td><td></td><td></td>
 
820
        </tr>
 
821
      </table>
 
822
</div>
 
823
<div class="memdoc">
 
824
 
 
825
<p>
 
826
Request an asynchronous skip of <em>count</em> bytes from the stream into the buffer starting at <em>buffer</em>. 
 
827
<p>
 
828
When the operation is finished <em>slot</em> will be called. You can then call <a class="el" href="classGio_1_1InputStream.html#1522468bd203ab3082ab54e9eba68b03" title="Finishes a stream skip operation.">skip_finish()</a> to get the result of the operation.<p>
 
829
During an async request no other sync and async calls are allowed, and will result in <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with PENDING being thrown.<p>
 
830
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> with INVALID_ARGUMENT to be thrown.<p>
 
831
On success, the number of bytes skipped will be passed to the callback. 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, but generally we try to skip as many bytes as requested. Zero is returned on end of file (or if <em>count</em> is zero), but never otherwise.<p>
 
832
Any outstanding i/o request with higher priority (lower numerical value) will be executed before an outstanding request with lower priority. Default priority is PRIORITY_DEFAULT.<p>
 
833
The asyncronous methods have a default fallback that uses threads to implement asynchronicity, so they are optional for inheriting classes. However, if you override one you must override all.<p>
 
834
<dl compact><dt><b>Parameters:</b></dt><dd>
 
835
  <table border="0" cellspacing="2" cellpadding="0">
 
836
    <tr><td valign="top"></td><td valign="top"><em>count</em>&nbsp;</td><td>The number of bytes that will be skipped from the stream. </td></tr>
 
837
    <tr><td valign="top"></td><td valign="top"><em>slot</em>&nbsp;</td><td>Callback to call when the request is satisfied. </td></tr>
 
838
    <tr><td valign="top"></td><td valign="top"><em>io_priority</em>&nbsp;</td><td>The I/O priority of the request. </td></tr>
 
839
  </table>
 
840
</dl>
 
841
 
 
842
</div>
 
843
</div><p>
681
844
<a class="anchor" name="1bf7a4a30005813b0a46e069215907a2"></a><!-- doxytag: member="Gio::InputStream::skip_async" ref="1bf7a4a30005813b0a46e069215907a2" args="(gsize count, const SlotAsyncReady &amp;slot, const Glib::RefPtr&lt; Cancellable &gt; &amp;cancellable, int io_priority=Glib::PRIORITY_DEFAULT)" -->
682
845
<div class="memitem">
683
846
<div class="memproto">
735
898
 
736
899
</div>
737
900
</div><p>
738
 
<a class="anchor" name="111e86dad4548394edcff16d7735d2d5"></a><!-- doxytag: member="Gio::InputStream::skip_async" ref="111e86dad4548394edcff16d7735d2d5" args="(gsize count, const SlotAsyncReady &amp;slot, int io_priority=Glib::PRIORITY_DEFAULT)" -->
739
 
<div class="memitem">
740
 
<div class="memproto">
741
 
      <table class="memname">
742
 
        <tr>
743
 
          <td class="memname">void Gio::InputStream::skip_async           </td>
744
 
          <td>(</td>
745
 
          <td class="paramtype">gsize&nbsp;</td>
746
 
          <td class="paramname"> <em>count</em>, </td>
747
 
        </tr>
748
 
        <tr>
749
 
          <td class="paramkey"></td>
750
 
          <td></td>
751
 
          <td class="paramtype">const <a class="el" href="namespaceGio.html#ecaa02709f9ab83fa2b36d2571665cbe">SlotAsyncReady</a>&amp;&nbsp;</td>
752
 
          <td class="paramname"> <em>slot</em>, </td>
753
 
        </tr>
754
 
        <tr>
755
 
          <td class="paramkey"></td>
756
 
          <td></td>
757
 
          <td class="paramtype">int&nbsp;</td>
758
 
          <td class="paramname"> <em>io_priority</em> = <code>Glib::PRIORITY_DEFAULT</code></td><td>&nbsp;</td>
759
 
        </tr>
760
 
        <tr>
761
 
          <td></td>
762
 
          <td>)</td>
763
 
          <td></td><td></td><td></td>
764
 
        </tr>
765
 
      </table>
766
 
</div>
767
 
<div class="memdoc">
768
 
 
769
 
<p>
770
 
Request an asynchronous skip of <em>count</em> bytes from the stream into the buffer starting at <em>buffer</em>. 
771
 
<p>
772
 
When the operation is finished <em>slot</em> will be called. You can then call <a class="el" href="classGio_1_1InputStream.html#1522468bd203ab3082ab54e9eba68b03" title="Finishes a stream skip operation.">skip_finish()</a> to get the result of the operation.<p>
773
 
During an async request no other sync and async calls are allowed, and will result in <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> with PENDING being thrown.<p>
774
 
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> with INVALID_ARGUMENT to be thrown.<p>
775
 
On success, the number of bytes skipped will be passed to the callback. 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, but generally we try to skip as many bytes as requested. Zero is returned on end of file (or if <em>count</em> is zero), but never otherwise.<p>
776
 
Any outstanding i/o request with higher priority (lower numerical value) will be executed before an outstanding request with lower priority. Default priority is PRIORITY_DEFAULT.<p>
777
 
The asyncronous methods have a default fallback that uses threads to implement asynchronicity, so they are optional for inheriting classes. However, if you override one you must override all.<p>
778
 
<dl compact><dt><b>Parameters:</b></dt><dd>
779
 
  <table border="0" cellspacing="2" cellpadding="0">
780
 
    <tr><td valign="top"></td><td valign="top"><em>count</em>&nbsp;</td><td>The number of bytes that will be skipped from the stream. </td></tr>
781
 
    <tr><td valign="top"></td><td valign="top"><em>slot</em>&nbsp;</td><td>Callback to call when the request is satisfied. </td></tr>
782
 
    <tr><td valign="top"></td><td valign="top"><em>io_priority</em>&nbsp;</td><td>The I/O priority of the request. </td></tr>
783
 
  </table>
784
 
</dl>
785
 
 
786
 
</div>
787
 
</div><p>
788
901
<a class="anchor" name="1522468bd203ab3082ab54e9eba68b03"></a><!-- doxytag: member="Gio::InputStream::skip_finish" ref="1522468bd203ab3082ab54e9eba68b03" args="(const Glib::RefPtr&lt; AsyncResult &gt; &amp;result)" -->
789
902
<div class="memitem">
790
903
<div class="memproto">
813
926
 
814
927
</div>
815
928
</div><p>
816
 
<a class="anchor" name="f66159778ee2d577e9df52063ced53bf"></a><!-- doxytag: member="Gio::InputStream::close_async" ref="f66159778ee2d577e9df52063ced53bf" args="(const SlotAsyncReady &amp;slot, const Glib::RefPtr&lt; Cancellable &gt; &amp;cancellable, int io_priority=Glib::PRIORITY_DEFAULT)" -->
817
 
<div class="memitem">
818
 
<div class="memproto">
819
 
      <table class="memname">
820
 
        <tr>
821
 
          <td class="memname">void Gio::InputStream::close_async           </td>
822
 
          <td>(</td>
823
 
          <td class="paramtype">const <a class="el" href="namespaceGio.html#ecaa02709f9ab83fa2b36d2571665cbe">SlotAsyncReady</a>&amp;&nbsp;</td>
824
 
          <td class="paramname"> <em>slot</em>, </td>
825
 
        </tr>
826
 
        <tr>
827
 
          <td class="paramkey"></td>
828
 
          <td></td>
829
 
          <td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;<a class="el" href="classGio_1_1Cancellable.html">Cancellable</a>&gt;&amp;&nbsp;</td>
830
 
          <td class="paramname"> <em>cancellable</em>, </td>
831
 
        </tr>
832
 
        <tr>
833
 
          <td class="paramkey"></td>
834
 
          <td></td>
835
 
          <td class="paramtype">int&nbsp;</td>
836
 
          <td class="paramname"> <em>io_priority</em> = <code>Glib::PRIORITY_DEFAULT</code></td><td>&nbsp;</td>
837
 
        </tr>
838
 
        <tr>
839
 
          <td></td>
840
 
          <td>)</td>
841
 
          <td></td><td></td><td></td>
842
 
        </tr>
843
 
      </table>
844
 
</div>
845
 
<div class="memdoc">
846
 
 
847
 
<p>
848
 
Requests an asynchronous closes of the stream, releasing resources related to it. 
849
 
<p>
850
 
When the operation is finished <em>slot</em> will be called. You can then call <a class="el" href="classGio_1_1InputStream.html#e5a0d2c3ccf27661e374f151117a8fb7" title="Finishes closing a stream asynchronously, started from g_input_stream_close_async()...">close_finish()</a> to get the result of the operation.<p>
851
 
For behaviour details see <a class="el" href="classGio_1_1InputStream.html#7a3202cf7014bcfb2c0a7f301448ae50" title="Closes the stream, releasing resources related to it.">close()</a>.<p>
852
 
The asyncronous methods have a default fallback that uses threads to implement asynchronicity, so they are optional for inheriting classes. However, if you override one you must override all.<p>
853
 
<dl compact><dt><b>Parameters:</b></dt><dd>
854
 
  <table border="0" cellspacing="2" cellpadding="0">
855
 
    <tr><td valign="top"></td><td valign="top"><em>slot</em>&nbsp;</td><td>Callback to call when the request is satisfied. </td></tr>
856
 
    <tr><td valign="top"></td><td valign="top"><em>cancellable</em>&nbsp;</td><td>A <a class="el" href="classGio_1_1Cancellable.html" title="Allows actions to be cancelled.">Cancellable</a> object. </td></tr>
857
 
    <tr><td valign="top"></td><td valign="top"><em>io_priority</em>&nbsp;</td><td>The I/O priority of the request. </td></tr>
858
 
  </table>
859
 
</dl>
860
 
 
861
 
</div>
862
 
</div><p>
863
 
<a class="anchor" name="b5160982124f34ed6e475776acd126d2"></a><!-- doxytag: member="Gio::InputStream::close_async" ref="b5160982124f34ed6e475776acd126d2" args="(const SlotAsyncReady &amp;slot, int io_priority=Glib::PRIORITY_DEFAULT)" -->
864
 
<div class="memitem">
865
 
<div class="memproto">
866
 
      <table class="memname">
867
 
        <tr>
868
 
          <td class="memname">void Gio::InputStream::close_async           </td>
869
 
          <td>(</td>
870
 
          <td class="paramtype">const <a class="el" href="namespaceGio.html#ecaa02709f9ab83fa2b36d2571665cbe">SlotAsyncReady</a>&amp;&nbsp;</td>
871
 
          <td class="paramname"> <em>slot</em>, </td>
872
 
        </tr>
873
 
        <tr>
874
 
          <td class="paramkey"></td>
875
 
          <td></td>
876
 
          <td class="paramtype">int&nbsp;</td>
877
 
          <td class="paramname"> <em>io_priority</em> = <code>Glib::PRIORITY_DEFAULT</code></td><td>&nbsp;</td>
878
 
        </tr>
879
 
        <tr>
880
 
          <td></td>
881
 
          <td>)</td>
882
 
          <td></td><td></td><td></td>
883
 
        </tr>
884
 
      </table>
885
 
</div>
886
 
<div class="memdoc">
887
 
 
888
 
<p>
889
 
Requests an asynchronous closes of the stream, releasing resources related to it. 
890
 
<p>
891
 
When the operation is finished <em>slot</em> will be called. You can then call <a class="el" href="classGio_1_1InputStream.html#e5a0d2c3ccf27661e374f151117a8fb7" title="Finishes closing a stream asynchronously, started from g_input_stream_close_async()...">close_finish()</a> to get the result of the operation.<p>
892
 
For behaviour details see <a class="el" href="classGio_1_1InputStream.html#7a3202cf7014bcfb2c0a7f301448ae50" title="Closes the stream, releasing resources related to it.">close()</a>.<p>
893
 
The asyncronous methods have a default fallback that uses threads to implement asynchronicity, so they are optional for inheriting classes. However, if you override one you must override all.<p>
894
 
<dl compact><dt><b>Parameters:</b></dt><dd>
895
 
  <table border="0" cellspacing="2" cellpadding="0">
896
 
    <tr><td valign="top"></td><td valign="top"><em>slot</em>&nbsp;</td><td>Callback to call when the request is satisfied. </td></tr>
897
 
    <tr><td valign="top"></td><td valign="top"><em>io_priority</em>&nbsp;</td><td>The I/O priority of the request. </td></tr>
898
 
  </table>
899
 
</dl>
900
 
 
901
 
</div>
902
 
</div><p>
903
 
<a class="anchor" name="e5a0d2c3ccf27661e374f151117a8fb7"></a><!-- doxytag: member="Gio::InputStream::close_finish" ref="e5a0d2c3ccf27661e374f151117a8fb7" args="(const Glib::RefPtr&lt; AsyncResult &gt; &amp;result)" -->
904
 
<div class="memitem">
905
 
<div class="memproto">
906
 
      <table class="memname">
907
 
        <tr>
908
 
          <td class="memname">gboolean Gio::InputStream::close_finish           </td>
909
 
          <td>(</td>
910
 
          <td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;<a class="el" href="classGio_1_1AsyncResult.html">AsyncResult</a>&gt;&amp;&nbsp;</td>
911
 
          <td class="paramname"> <em>result</em>          </td>
912
 
          <td>&nbsp;)&nbsp;</td>
913
 
          <td></td>
914
 
        </tr>
915
 
      </table>
916
 
</div>
917
 
<div class="memdoc">
918
 
 
919
 
<p>
920
 
Finishes closing a stream asynchronously, started from g_input_stream_close_async(). 
921
 
<p>
922
 
<dl compact><dt><b>Parameters:</b></dt><dd>
923
 
  <table border="0" cellspacing="2" cellpadding="0">
924
 
    <tr><td valign="top"></td><td valign="top"><em>result</em>&nbsp;</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>
925
 
  </table>
926
 
</dl>
927
 
<dl class="return" compact><dt><b>Returns:</b></dt><dd><code>true</code> if the stream was closed successfully. </dd></dl>
928
 
 
929
 
</div>
930
 
</div><p>
931
929
<hr><h2>Friends And Related Function Documentation</h2>
932
930
<a class="anchor" name="ec580b0fc1e0807d7ccba6cbb7e302db"></a><!-- doxytag: member="Gio::InputStream::wrap" ref="ec580b0fc1e0807d7ccba6cbb7e302db" args="(GInputStream *object, bool take_copy=false)" -->
933
931
<div class="memitem">
974
972
 
975
973
<hr><address><small>
976
974
Generated for glibmm 2.4 by <a href="http://www.doxygen.org/index.html">
977
 
Doxygen</a> 1.5.6 &copy;&nbsp;1997-2001</small></address>
 
975
Doxygen</a> 1.5.8 &copy;&nbsp;1997-2001</small></address>
978
976
</body>
979
977
</html>