SimpleIOStream


Object Hierarchy:

GLib.SimpleIOStream GLib.SimpleIOStream GLib.SimpleIOStream GLib.IOStream GLib.IOStream GLib.IOStream->GLib.SimpleIOStream GLib.Object GLib.Object GLib.Object->GLib.IOStream

Description:

[ CCode ( type_id = "g_simple_io_stream_get_type ()" ) ]
[ Version ( since = "2.44" ) ]
public sealed class SimpleIOStream : IOStream

`GSimpleIOStream` creates a [class@Gio.

IOStream] from an arbitrary [class@Gio.InputStream] and [class@Gio.OutputStream]. This allows any pair of input and output streams to be used with [class@Gio.IOStream] methods.

This is useful when you obtained a [class@Gio.InputStream] and a [class@Gio.OutputStream] by other means, for instance creating them with platform specific methods as [`g_unix_input_stream_new()`](../gio-unix/ctor.UnixInputStream.new.html) (from `gio-unix-2.0.pc` / `GioUnix-2.0`), and you want to take advantage of the methods provided by [class@Gio.IOStream].


Namespace: GLib
Package: gio-2.0

Content:

Properties:

Creation methods:

Inherited Members: