write_to_stream
Description:
[ Version ( since = "3.0" ) ]
public async ssize_t write_to_stream (Stream stream, int io_priority, Cancellable? cancellable = null) throws Error
public async ssize_t write_to_stream (Stream stream, int io_priority, Cancellable? cancellable = null) throws Error
Asynchronously writes the content of this to stream
in a machine-independent format appropriate
for the data.
It should be possible to construct an equivalent data wrapper object later by passing this stream to construct_from_stream.
When the operation is finished, callback
will be called. You can then call write_to_stream.end to get
the result of the operation.
Parameters:
this | |
stream |
a Stream for writed data to be written to |
io_priority |
the I/O priority of the request |
cancellable |
optional Cancellable object, or null |
callback |
a TaskReadyCallback to call when the request is satisfied |
user_data |
data to pass to the callback function |