Gio.BufferedOutputStream
const Gio = imports.gi.Gio;
let bufferedOutputStream = new Gio.BufferedOutputStream({
buffer_size: value,
});
Buffered output stream implements Gio.FilterOutputStream and provides for buffered writes.
By default, Gio.BufferedOutputStream's buffer size is set at 4 kilobytes.
To create a buffered output stream, use Gio.BufferedOutputStream.new, or Gio.BufferedOutputStream.new_sized to specify the buffer's size at construction.
To get the size of a buffer within a buffered input stream, use Gio.BufferedOutputStream.prototype.get_buffer_size. To change the size of a buffered output stream's buffer, use Gio.BufferedOutputStream.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.OutputStream
-
Gio.FilterOutputStream
- Gio.BufferedOutputStream
-
-