Gio.BufferedInputStream

const Gio = imports.gi.Gio;

let bufferedInputStream = new Gio.BufferedInputStream({
    buffer_size: value,
});
  

Buffered input stream implements Gio.FilterInputStream and provides for buffered reads.

By default, Gio.BufferedInputStream's buffer size is set at 4 kilobytes.

To create a buffered input stream, use Gio.BufferedInputStream.new, or Gio.BufferedInputStream.new_sized to specify the buffer's size at construction.

To get the size of a buffer within a buffered input stream, use Gio.BufferedInputStream.prototype.get_buffer_size. To change the size of a buffered input stream's buffer, use Gio.BufferedInputStream.prototype.set_buffer_size. Note that the buffer's size cannot be reduced below the size of the data within the buffer.

Hierarchy

  • GObject.Object
    • Gio.InputStream
      • Gio.FilterInputStream
        • Gio.BufferedInputStream