Tries to write count bytes to stream, as with
g_output_stream_write_all(), but using g_pollable_stream_write()
rather than g_output_stream_write().
On a successful write of count bytes, true is returned, and
bytes_written is set to count.
If there is an error during the operation (including
Gio.IOErrorEnum.WOULD_BLOCK in the non-blocking case), false is
returned and error 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 g_pollable_stream_write(), if blocking is false, then
stream must be a Gio.PollableOutputStream for which
g_pollable_output_stream_can_poll() returns true or else the
behavior is undefined. If blocking is true, then stream does not
need to be a Gio.PollableOutputStream.
Tries to write
countbytes tostream, as withg_output_stream_write_all(), but usingg_pollable_stream_write()rather thang_output_stream_write().On a successful write of
countbytes,trueis returned, andbytes_writtenis set tocount.If there is an error during the operation (including Gio.IOErrorEnum.WOULD_BLOCK in the non-blocking case),
falseis returned anderroris set to indicate the error status,bytes_writtenis updated to contain the number of bytes written into the stream before the error occurred.As with
g_pollable_stream_write(), ifblockingisfalse, thenstreammust be a Gio.PollableOutputStream for whichg_pollable_output_stream_can_poll()returnstrueor else the behavior is undefined. Ifblockingistrue, thenstreamdoes not need to be a Gio.PollableOutputStream.