Function

Gio-2.0Giopollable_stream_writeSince 2.34

  • Tries to write to stream, as with g_output_stream_write() (if blocking is true) or g_pollable_output_stream_write_nonblocking() (if blocking is false). This can be used to more easily share code between blocking and non-blocking implementations of a method.

    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 number

    the number of bytes written, or -1 on error.

    2.34