1.74 <GSimpleIOStream>

Class: <GSimpleIOStream>

It derives from <GIOStream>.

<GSimpleIOStream> creates a <GIOStream> from an arbitrary <GInputStream> and <GOutputStream>. This allows any pair of input and output streams to be used with <GIOStream> methods.

This is useful when you obtained a <GInputStream> and a <GOutputStream> by other means, for instance creating them with platform specific methods as ‘g_unix_input_stream_new()‘ (from gio-unix-2.0.pc / GioUnix-2.0), and you want to take advantage of the methods provided by <GIOStream>.

Properties

Property: simple-iostream:input-stream self

The <GInputStream> to read from.

Its value is a <GInputStream>, or #f.

It can only be set when the object is made, with #:input-stream.

Property: simple-iostream:output-stream self

The <GOutputStream> to write to.

Its value is a <GOutputStream>, or #f.

It can only be set when the object is made, with #:output-stream.

Procedures

Procedure: simple-iostream:new input-stream output-stream ⇒ %return

Creates a new <GSimpleIOStream> wrapping input-stream and output-stream. See also <GIOStream>.

input-stream

Passed: a <GInputStream>.

a <GInputStream>.

output-stream

Passed: a <GOutputStream>.

a <GOutputStream>.

%return

Returned: a <GIOStream>.

a new <GSimpleIOStream> instance.