Top |
GInputStream * | input-stream | Read / Write / Construct Only |
GOutputStream * | output-stream | Read / Write / Construct Only |
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()
or g_win32_input_stream_new()
, and you want
to take advantage of the methods provided by GIOStream.
GIOStream * g_simple_io_stream_new (GInputStream *input_stream
,GOutputStream *output_stream
);
Creates a new GSimpleIOStream wrapping input_stream
and output_stream
.
See also GIOStream.
Since: 2.44
typedef struct _GSimpleIOStream GSimpleIOStream;
A wrapper around a GInputStream and a GOutputStream.
Since: 2.44
“input-stream”
property“input-stream” GInputStream *
The GInputStream to read from.
Flags: Read / Write / Construct Only
Since: 2.44
“output-stream”
property“output-stream” GOutputStream *
The GOutputStream to write to.
Flags: Read / Write / Construct Only
Since: 2.44