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:
GBytes
The bytes to queue.
The data is owned by the caller of the method. priority
-
Type:
int
IO priority of the request.
cancellable
-
Type:
GCancellable
A
GCancellable
orNULL
.The argument can be NULL
.The data is owned by the caller of the method. callback
-
Type:
GAsyncReadyCallback
Callback to call when the request is finished.
The argument can be NULL
. data
-
Type:
gpointer
Data to pass to
callback
.The argument can be NULL
.The data is owned by the caller of the method.