Method
BirbQueuedOutputStreampush_bytes_async
since: 0.1
Declaration [src]
void
birb_queued_output_stream_push_bytes_async (
BirbQueuedOutputStream* stream,
GBytes* bytes,
int priority,
GCancellable* cancellable,
GAsyncReadyCallback callback,
gpointer data
)
Description [src]
Asynchronously queues and then writes data to stream. Once the data has
been written, or an error occurs, callback will be called.
Be careful such that if there’s a fatal stream error, all remaining queued
operations will likely return this error. Use
birb_queued_output_stream_clear_queue() to clear the queue on such
an error to only report it a single time.
Available since: 0.1
This method completes asynchronously. Use birb_queued_output_stream_push_bytes_finish() inside the GAsyncReadyCallback to obtain the result of the operation.
Parameters
bytes-
Type:
GBytesThe bytes to queue.
The data is owned by the caller of the method. priority-
Type:
intIO priority of the request.
cancellable-
Type:
GCancellableA
GCancellableorNULL.The argument can be NULL.The data is owned by the caller of the method. callback-
Type:
GAsyncReadyCallbackCallback to call when the request is finished.
The argument can be NULL. data-
Type:
gpointerData to pass to
callback.The argument can be NULL.The data is owned by the caller of the method.