Class

PurpleQueuedOutputStream

Description [src]

final class Purple.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 purple_queued_output_stream_new().

To queue data, use purple_queued_output_stream_push_bytes_async().

If there’s a fatal stream error, it’s suggested to clear the remaining bytes queued with purple_queued_output_stream_clear_queue() to avoid excessive errors returned in purple_queued_output_stream_push_bytes_async()‘s async callback.

Available since:3.0.0

Constructors

purple_queued_output_stream_new

Creates a new queued output stream for a base stream.

Available since: 3.0.0

Instance methods

purple_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.

Available since: 3.0.0

purple_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.

Available since: 3.0.0

purple_queued_output_stream_push_bytes_finish

Finishes pushing bytes asynchronously.

Available since: 3.0.0

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
No description available.

Signals

Signals inherited from GObject (1)
GObject.Object::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 PurpleQueuedOutputStreamClass {
  GFilterOutputStreamClass parent_class;
  
}
Class members
parent_class
GFilterOutputStreamClass
  No description available.