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 |
Whether the buffer should automatically grow |
||
r/w/c |
The size of the backend buffer |
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
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
(), orGio.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.get_buffer_size
(). To change the size of a buffered output stream’s buffer, useGio.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