:right-sidebar: True BufferedOutputStream =================================================================== .. currentmodule:: gi.repository.Gio .. class:: BufferedOutputStream(**properties: ~typing.Any) :no-contents-entry: Superclasses: :class:`~gi.repository.Gio.FilterOutputStream`, :class:`~gi.repository.Gio.OutputStream`, :class:`~gi.repository.GObject.Object` Implemented Interfaces: :class:`~gi.repository.Gio.Seekable` :Constructors: :: BufferedOutputStream(**properties) new(base_stream:Gio.OutputStream) -> Gio.OutputStream new_sized(base_stream:Gio.OutputStream, size:int) -> Gio.OutputStream Constructors ------------ .. rst-class:: interim-class .. class:: BufferedOutputStream :no-index: .. classmethod:: new(base_stream: ~gi.repository.Gio.OutputStream) -> ~gi.repository.Gio.OutputStream Creates a new buffered output stream for a base stream. :param base_stream: a :obj:`~gi.repository.Gio.OutputStream`. .. classmethod:: new_sized(base_stream: ~gi.repository.Gio.OutputStream, size: int) -> ~gi.repository.Gio.OutputStream Creates a new buffered output stream with a given buffer size. :param base_stream: a :obj:`~gi.repository.Gio.OutputStream`. :param size: a :obj:`~gi.repository.gsize`. Methods ------- .. rst-class:: interim-class .. class:: BufferedOutputStream :no-index: .. method:: get_auto_grow() -> bool Checks if the buffer automatically grows as data is added. .. method:: get_buffer_size() -> int Gets the size of the buffer in the ``stream``. .. method:: set_auto_grow(auto_grow: bool) -> None Sets whether or not the ``stream``'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. :param auto_grow: a :obj:`~gi.repository.gboolean`. .. method:: set_buffer_size(size: int) -> None Sets the size of the internal buffer to ``size``. :param size: a :obj:`~gi.repository.gsize`. Properties ---------- .. rst-class:: interim-class .. class:: BufferedOutputStream :no-index: .. attribute:: props.auto_grow :type: bool Whether the buffer should automatically grow. .. attribute:: props.buffer_size :type: int The size of the backend buffer, in bytes. Fields ------ .. rst-class:: interim-class .. class:: BufferedOutputStream :no-index: .. attribute:: parent_instance .. attribute:: priv