read_all_async
Description:
[ Version ( since = "2.44" ) ]
public async bool read_all_async (uint8[] buffer, int io_priority, Cancellable? cancellable, out size_t bytes_read) throws Error
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 buffer.
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.
Parameters:
| this | |
| buffer |
a buffer to read data into (which should be at least count bytes long) |
| io_priority |
the I/O priority of the request |
| cancellable |
optional Cancellable object, null to ignore |
| callback |
a TaskReadyCallback to call when the request is satisfied |
| count |
the number of bytes that will be read from the stream |
| user_data |
the data to pass to callback function |