Function

Gio-2.0Giopollable_stream_write_allSince 2.34

  • 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.

    Parameters

    Returns [boolean, number]

    true on success, false if there was an error

    2.34