public async bool read_all_async (uint8 buffer, int io_priority, Cancellable? cancellable, out size_t bytes_read) throws Error
Request an asynchronous read of
buffer.length bytes from the stream into the buffer starting at
This is the asynchronous equivalent of read_all.
Call read_all_async.end 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.
a buffer to read data into (which should be at least count bytes long)
the I/O priority of the request
optional Cancellable object, null to ignore
callback to call when the request is satisfied
the number of bytes that will be read from the stream
the data to pass to callback function