Gio.BufferedOutputStream¶
- Subclasses:
None
Methods¶
- Inherited:
Gio.FilterOutputStream (3), Gio.OutputStream (29), GObject.Object (37), Gio.Seekable (5)
- Structs:
class |
|
class |
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w |
|||
r/w/c |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class Gio.BufferedOutputStream(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
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.
- classmethod new(base_stream)[source]¶
- Parameters:
base_stream (
Gio.OutputStream
) – aGio.OutputStream
.- Returns:
a
Gio.OutputStream
for the given base_stream.- Return type:
Creates a new buffered output stream for a base stream.
- classmethod new_sized(base_stream, size)[source]¶
- Parameters:
base_stream (
Gio.OutputStream
) – aGio.OutputStream
.size (
int
) – a #gsize.
- Returns:
a
Gio.OutputStream
with an internal buffer set to size.- Return type:
Creates a new buffered output stream with a given buffer size.
- get_buffer_size()[source]¶
- Returns:
the current size of the buffer.
- Return type:
Gets the size of the buffer in the self.
Property Details¶
- Gio.BufferedOutputStream.props.auto_grow¶
-
Whether the buffer should automatically grow.