InputStream.readAllAsync

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

This is the asynchronous equivalent of gio.input_stream.InputStream.readAll.

Call gio.input_stream.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 gio.cancellable.Cancellable

optional #GCancellable object, null to ignore

callback gio.types.AsyncReadyCallback

a #GAsyncReadyCallback to call when the request is satisfied