InputStream.readAllAsync

Request an asynchronous read of count bytes from the stream into the buffer starting at buffer.

This is the asynchronous equivalent of InputStream.readAll.

Call InputStream.readAllFinish to collect the result.

Any outstanding I/O request with higher priority (lower numerical value) will be executed before an outstanding request with lower priority. Default priority is G_PRIORITY_DEFAULT.

class InputStream
void
readAllAsync

Parameters

buffer ubyte[]

a buffer to read data into (which should be at least count bytes long)

ioPriority int

the [I/O priority][io-priority] of the request

cancellable Cancellable

optional gio.Cancellable object, NULL to ignore

callback GAsyncReadyCallback

callback to call when the request is satisfied

userData void*

the data to pass to callback function

Meta

Since

2.44