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.
Tries to write to
stream, as withg_output_stream_write()(ifblockingistrue) org_pollable_output_stream_write_nonblocking()(ifblockingisfalse). This can be used to more easily share code between blocking and non-blocking implementations of a method.If
blockingisfalse, 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.