Method

GioBufferedInputStreamfill_async

Declaration [src]

void
g_buffered_input_stream_fill_async (
  GBufferedInputStream* stream,
  gssize count,
  int io_priority,
  GCancellable* cancellable,
  GAsyncReadyCallback callback,
  gpointer user_data
)

Description [src]

Reads data into streams buffer asynchronously, up to count size. io_priority can be used to prioritize reads. For the synchronous version of this function, see g_buffered_input_stream_fill().

If count is -1 then the attempted read size is equal to the number of bytes that are required to fill the buffer.

This method completes asynchronously. Use g_buffered_input_stream_fill_finish() inside the GAsyncReadyCallback to obtain the result of the operation.

Parameters

count

Type: gssize

The number of bytes that will be read from the stream.

io_priority

Type: int

The I/O priority of the request.

cancellable

Type: GCancellable

Optional GCancellable object.

The argument can be NULL.
The data is owned by the caller of the method.
callback

Type: GAsyncReadyCallback

A GAsyncReadyCallback.

The argument can be NULL.
user_data

Type: gpointer

A #gpointer.

The argument can be NULL.
The data is owned by the caller of the method.