Class: Gio::BufferedOutputStream

Inherits:
FilterOutputStream show all
Defined in:
(unknown)

Instance Method Summary collapse

Methods inherited from FilterOutputStream

#base_stream, #base_stream=, #close_base_stream, #close_base_stream=, #close_base_stream?

Methods inherited from OutputStream

#clear_pending, #close, #close_async, #close_finish, #flush, #flush_async, #flush_finish, #has_pending, #is_closed, #is_closing, open, #printf, #set_pending, #splice, #splice_async, #splice_finish, #vprintf, #write, #write_all, #write_all_async, #write_all_finish, #write_async, #write_bytes, #write_bytes_async, #write_bytes_finish, #write_finish, #writev, #writev_all, #writev_all_async, #writev_all_finish, #writev_async, #writev_finish

Constructor Details

#initialize(base_stream, size) ⇒ Gio::OutputStream

Creates a new buffered output stream with a given buffer size.

Parameters:

  • base_stream (Gio::OutputStream)

    a GOutput::Stream.

  • size (Integer)

    a #gsize.

Instance Method Details

#auto_growBoolean

Checks if the buffer automatically grows as data is added. false otherwise.

Returns:

  • (Boolean)

    true if the stream's buffer automatically grows,

#auto_grow=(auto_grow) ⇒ Boolean

Whether the buffer should automatically grow.

Parameters:

  • auto_grow (Boolean)

Returns:

  • (Boolean)

    auto-grow

  • (Boolean)

    auto-grow

#auto_grow?Boolean

Whether the buffer should automatically grow.

Returns:

  • (Boolean)

    auto-grow

#buffer_sizeInteger

The size of the backend buffer, in bytes.

Returns:

  • (Integer)

    buffer-size

#buffer_size=(buffer_size) ⇒ Integer

The size of the backend buffer, in bytes.

Parameters:

  • buffer_size (Integer)

Returns:

  • (Integer)

    buffer-size

  • (Integer)

    buffer-size