OutputStream


Object Hierarchy:

Object hierarchy for OutputStream

Description:

[ CCode ( type_id = "g_output_stream_get_type ()" ) ]
public abstract class OutputStream : Object

`GOutputStream` is a base class for implementing streaming output.

It has functions to write to a stream ([method@Gio.OutputStream.write]), to close a stream ([method@Gio.OutputStream.close]) and to flush pending writes ([method@Gio.OutputStream.flush]).

To copy the content of an input stream to an output stream without manually handling the reads and writes, use [ method@Gio.OutputStream.splice].

See the documentation for [class@Gio.IOStream] for details of thread safety of streaming APIs.

All of these functions have async variants too.

All classes derived from `GOutputStream` *should* implement synchronous writing, splicing, flushing and closing streams, but *may* implement asynchronous versions.

Required by:

Namespace: GLib
Package: gio-2.0

Content:

Creation methods:

Methods:

Inherited Members: