It derives from <GFilterOutputStream>.
Buffered output stream implements
<GFilterOutputStream> and provides for
buffered writes.
By default, <GBufferedOutputStream>’s
buffer size is set at 4 kilobytes.
To create a buffered output stream, use buffered-output-stream:new, or buffered-output-stream:new-sized to specify the buffer’s
size at construction.
To get the size of a buffer within a buffered input stream, use
buffered-output-stream:get-buffer-size. To change
the size of a buffered output stream’s buffer, use
buffered-output-stream:set-buffer-size. Note that
the buffer’s size cannot be reduced below the size of the data within
the buffer.
parent-instanceprivWhether the buffer should automatically grow.
Its value is a boolean.
Set it with (set! (buffered-output-stream:auto-grow self) value).
The size of the backend buffer, in bytes.
Its value is an unsigned 32-bit integer.
Set it with (set! (buffered-output-stream:buffer-size self)
value).
Checks if the buffer automatically grows as data is added.
Passed: a <GBufferedOutputStream>.
Returned: a boolean.
TRUE if the self’s buffer automatically grows, FALSE
otherwise.
Gets the size of the buffer in the self.
Passed: a <GBufferedOutputStream>.
Returned: an unsigned 64-bit integer.
the current size of the buffer.
Creates a new buffered output stream for a base stream.
Passed: a <GOutputStream>.
Returned: a <GOutputStream>.
a <GOutputStream> for the given
base-stream.
Creates a new buffered output stream with a given buffer size.
Passed: a <GOutputStream>.
Passed: an unsigned 64-bit integer.
a gsize.
Returned: a <GOutputStream>.
a <GOutputStream> with an internal buffer set
to size.
Sets whether or not the self’s buffer should automatically grow. If auto-grow 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.
Passed: a <GBufferedOutputStream>.
Passed: a boolean.
a gboolean.
Sets the size of the internal buffer to size.
Passed: a <GBufferedOutputStream>.
Passed: an unsigned 64-bit integer.
a gsize.