Basics
Guides
API Reference
Basics
Guides
API Reference
[209:14] static extends: object
Alternate constructors for BufferedOutputStream. Usage:
BufferedOutputStreamCtors.<name>(...). The primary constructor lives
directly on BufferedOutputStream.
newSized (object base_stream, int size)
Creates a new buffered output stream with a given buffer size.
base_stream is a [class@Gio.OutputStream]..size is a #gsize..A new BufferedOutputStream.[227:14] static extends: object
Generated metadata helpers for BufferedOutputStream class surfaces.
properties ()
Returns property metadata for
BufferedOutputStream.
A list.[21:7] extends: object
Buffered output stream implements [class@Gio.FilterOutputStream] and provides
for buffered writes. By default, GBufferedOutputStream's buffer size is set
at 4 kilobytes. To create a buffered output stream, use
[ctor@Gio.BufferedOutputStream.new], or
[ctor@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
[method@Gio.BufferedOutputStream.get_buffer_size]. To change the size of a
buffered output stream's buffer, use
[method@Gio.BufferedOutputStream.set_buffer_size]. Note that the buffer's
size cannot be reduced below the size of the data within the buffer.
BufferedOutputStream (base_stream = null)
Creates a new buffered output stream for a base stream.
base_stream is a [class@Gio.OutputStream]..toNativeHandle (Source)
Normalizes a constructor argument into a raw pointer carrier. Accepts a raw NativeHandle, a raw NativeBuffer returned from
fn.call(...), another generated wrapper exposinghandle(), or null. Returns null when the argument carries no pointer.
Source is the raw handle, raw buffer, wrapper, or null.A raw pointer carrier or null when no pointer is present.getLib ()
Returns the opened native library for this generated wrapper.
The opened native library.handle ()
Returns the wrapped NativeHandle.
The wrapped NativeHandle.isNull ()
Returns true when the wrapped handle is null.
A bool.describe ()
Returns a small string for debugging generated wrappers.
A string.asFilterOutputStream ()
Wraps this handle as
FilterOutputStream.
A FilterOutputStream object.asSeekable ()
Wraps this handle as
Seekable.
A Seekable object.getProperty (string Name)
Reads one generated property by name.
setProperty (string Name, Value)
Writes one generated property by name.
setAutogrow (bool Value)
Whether the buffer should automatically grow.
Value is the new property value.None.setBuffersize (int Value)
The size of the backend buffer, in bytes.
Value is the new property value.None.get_auto_grow ()
Checks if the buffer automatically grows as data is added.
get_buffer_size ()
Gets the size of the buffer in the @stream.
set_auto_grow (bool auto_grow)
Sets whether or not the @stream's buffer should automatically grow. If
is true, then each write will just make the buffer larger, and you must manually flush the buffer to actually write out the data to the underlying stream.auto_grow is a #gboolean..None.set_buffer_size (int size)
Sets the size of the internal buffer to @size.
size is a #gsize..None.
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.