write_to_output_stream_sync
Description:
[ Version ( since = "3.12" ) ]
public virtual ssize_t write_to_output_stream_sync (OutputStream output_stream, Cancellable? cancellable = null) throws Error
public virtual ssize_t write_to_output_stream_sync (OutputStream output_stream, Cancellable? cancellable = null) throws Error
Writes the content of this to output_stream
in a machine-independent format appropriate for the
data.
<note> <para> This function may block even if the given output stream does not. For example, the content may have to be fetched
across a network before it can be written to output_stream
. </para> </note>
Parameters:
this | |
output_stream | |
cancellable |
optional Cancellable object, or null |
Returns:
the number of bytes written, or -1 on error |