Class

BirbQueuedOutputStream

since: 0.1

Description [src]

final class Birb.QueuedOutputStream : Gio.FilterOutputStream
{
  /* No available fields */
}

An implementation of GFilterOutputStream which allows queuing data for output. This allows data to be queued while other data is being output. Therefore, data doesn’t have to be manually stored while waiting for stream operations to finish.

To create a queued output stream, use birb_queued_output_stream_new().

To queue data, use birb_queued_output_stream_push_bytes_async().

If there’s a fatal stream error, it’s suggested to clear the remaining bytes queued with birb_queued_output_stream_clear_queue() to avoid excessive errors returned in the callback of birb_queued_output_stream_push_bytes_async().

Available since: 0.1

Constructors

birb_queued_output_stream_new

Creates a new queued output stream for a base stream.

since: 0.1

Instance methods

birb_queued_output_stream_clear_queue

Clears the queue of any pending bytes. However, any bytes that are in the process of being sent will finish their operation.

since: 0.1

birb_queued_output_stream_push_bytes_async

Asynchronously queues and then writes data to stream. Once the data has been written, or an error occurs, callback will be called.

since: 0.1

birb_queued_output_stream_push_bytes_finish

Finishes pushing bytes asynchronously.

since: 0.1

Methods inherited from GFilterOutputStream (3)
g_filter_output_stream_get_base_stream

Gets the base stream for the filter stream.

g_filter_output_stream_get_close_base_stream

Returns whether the base stream will be closed when stream is closed.

g_filter_output_stream_set_close_base_stream

Sets whether the base stream will be closed when stream is closed.

Methods inherited from GOutputStream (31)

Please see GOutputStream for a full list of methods.

Methods inherited from GObject (43)

Please see GObject for a full list of methods.

Properties

Properties inherited from GFilterOutputStream (2)
Gio.FilterOutputStream:base-stream
No description available.
Gio.FilterOutputStream:close-base-stream

Whether the base stream should be closed when the filter stream is closed.

Signals

Signals inherited from GObject (1)
GObject::notify

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

Class structure

struct BirbQueuedOutputStreamClass {
  GFilterOutputStreamClass parent_class;
  
}

No description available.

Class members
parent_class: GFilterOutputStreamClass

No description available.