decode_to_output_stream_sync


Description:

[ Version ( since = "3.12" ) ]
public virtual ssize_t decode_to_output_stream_sync (OutputStream output_stream, Cancellable? cancellable = null) throws Error

Writes the decoded data content to output_stream.

<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

a DataWrapper

output_stream

a OutputStream

cancellable

optional Cancellable object, or null

Returns:

the number of bytes written, or -1 on error