gio.input_stream.InputStream is a base class for implementing streaming input.
It has functions to read from a stream (gio.input_stream.InputStream.read), to close a stream (gio.input_stream.InputStream.close) and to skip some content (gio.input_stream.InputStream.skip).
To copy the content of an input stream to an output stream without manually handling the reads and writes, use gio.output_stream.OutputStream.splice.
See the documentation for gio.iostream.IOStream for details of thread safety of streaming APIs.
All of these functions have async variants too.
gio.input_stream.InputStream is a base class for implementing streaming input.
It has functions to read from a stream (gio.input_stream.InputStream.read), to close a stream (gio.input_stream.InputStream.close) and to skip some content (gio.input_stream.InputStream.skip).
To copy the content of an input stream to an output stream without manually handling the reads and writes, use gio.output_stream.OutputStream.splice.
See the documentation for gio.iostream.IOStream for details of thread safety of streaming APIs.
All of these functions have async variants too.