[ Version ( since = "2.34" ) ]
public bool pollable_stream_write_all (OutputStream stream, uint8 buffer, bool blocking, out size_t bytes_written, Cancellable? cancellable = null) throws Error
On a successful write of
buffer.length bytes, true is returned, and
is set to
If there is an error during the operation (including g_io_error_would_block in the non-blocking case),
false is returned and throws is set to indicate the error status,
bytes_written is updated to contain the number of bytes written into the stream before the error occurred.
As with pollable_stream_write, if
stream must be a
PollableOutputStream for which can_poll returns
true or else the behavior is undefined. If
blocking is true,
stream does not need to be a PollableOutputStream.
the buffer containing the data to write.
whether to do blocking I/O
location to store the number of bytes that was written to the stream
optional Cancellable object, null to ignore.
the number of bytes to write
true on success, false if there was an error