write_all_async


Description:

[ Version ( since = "2.44" ) ]
public async bool write_all_async (uint8[] buffer, int io_priority, Cancellable? cancellable, out size_t bytes_written) throws Error

Request an asynchronous write of buffer.length bytes from buffer into the stream.

When the operation is finished callback will be called. You can then call write_all_async.end to get the result of the operation.

This is the asynchronous version of write_all.

Call write_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.

Note that no copy of buffer will be made, so it must stay valid until callback is called.

Parameters:

this

A OutputStream

buffer

the buffer containing the data to write

io_priority

the io priority of the request

cancellable

optional Cancellable object, null to ignore

callback

callback to call when the request is satisfied

count

the number of bytes to write

user_data

the data to pass to callback function




2022 vala-language.org