gio.simple_iostream
Module for [SimpleIOStream] class
Types 3
gio.simple_iostream.SimpleIOStream creates a gio.iostream.IOStream from an arbitrary gio.input_stream.InputStream and gio.output_stream.OutputStream. This allows any pair of input and output streams to be used with gio.iostream.IOStream methods.
This is useful when you obtained a gio.input_stream.InputStream and a gio.output_stream.OutputStream by other means, for instance creating them with platform specific methods as [gio.unix_input_stream.UnixInputStream.new_] (from gio-unix-2.0.pc / GioUnix-2.0), and you want to take advantage of the methods provided by gio.iostream.IOStream.
Methods
SimpleIOStreamGidBuilder builder() static nothrowGet builder for [gio.simple_iostream.SimpleIOStream] Returns: New builder objectgio.input_stream.InputStream inputStream() @property nothrowGet `inputStream` property. Returns: The [gio.input_stream.InputStream] to read from.gio.output_stream.OutputStream outputStream() @property nothrowGet `outputStream` property. Returns: The [gio.output_stream.OutputStream] to write to.Constructors
this(gio.input_stream.InputStream inputStream, gio.output_stream.OutputStream outputStream)Creates a new #GSimpleIOStream wrapping input_stream and output_stream. See also #GIOStream.Fluent builder implementation template for gio.simple_iostream.SimpleIOStream
Methods
T inputStream(gio.input_stream.InputStream propval) nothrowSet `inputStream` property. Params: propval = The [gio.input_stream.InputStream] to read from. Returns: Builder instance for fluent chainingT outputStream(gio.output_stream.OutputStream propval) nothrowSet `outputStream` property. Params: propval = The [gio.output_stream.OutputStream] to write to. Returns: Builder instance for fluent chainingFluent builder for gio.simple_iostream.SimpleIOStream
Methods