BufferedInputStream.fillAsync

void fillAsync(ptrdiff_t count, int ioPriority, gio.cancellable.Cancellable cancellable = null, gio.types.AsyncReadyCallback callback = null)

Reads data into stream's buffer asynchronously, up to count size. io_priority can be used to prioritize reads. For the synchronous version of this function, see [gio.buffered_input_stream.BufferedInputStream.fill].

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

Parameters

countthe number of bytes that will be read from the stream
ioPrioritythe [I/O priority][io-priority] of the request
cancellableoptional #GCancellable object
callbacka #GAsyncReadyCallback