InputStream.readAllAsync

void readAllAsync(ref ubyte[] buffer, int ioPriority, gio.cancellable.Cancellable cancellable = null, gio.types.AsyncReadyCallback callback = null)

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 [glib.types.PRIORITY_DEFAULT].

Parameters

buffera buffer to read data into (which should be at least count bytes long)
ioPrioritythe [I/O priority][io-priority] of the request
cancellableoptional #GCancellable object, null to ignore
callbacka #GAsyncReadyCallback to call when the request is satisfied