SimpleIOStream
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 ../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.
Skipped during bindings generation
method
input-stream
: Property has no getter nor settermethod
output-stream
: Property has no getter nor setter
Since
2.44
Constructors
Properties
Functions
Clears the pending flag on @stream.
Closes the stream, releasing resources related to it. This will also close the individual input and output streams, if they are not already closed.
Requests an asynchronous close of the stream, releasing resources related to it. When the operation is finished @callback will be called. You can then call g_io_stream_close_finish() to get the result of the operation.
Closes a stream.
Gets the input stream for this object. This is used for reading.
Gets the output stream for this object. This is used for writing.
Checks if a stream has pending actions.
Sets @stream to have actions pending. If the pending flag is already set or @stream is closed, it will return false and set
Asynchronously splice the output stream of @stream1 to the input stream of