Method

CamelDataWrapperwrite_to_output_stream

since: 3.12

Declaration [src]

void
camel_data_wrapper_write_to_output_stream (
  CamelDataWrapper* data_wrapper,
  GOutputStream* output_stream,
  gint io_priority,
  GCancellable* cancellable,
  GAsyncReadyCallback callback,
  gpointer user_data
)

Description [src]

Asynchronously writes the content of data_wrapper to output_stream in a machine-independent format appropriate for the data.

When the operation is finished, callback will be called. You can then call camel_data_wrapper_write_to_output_stream_finish() to get the result of the operation.

Available since: 3.12

This method completes asynchronously. Use camel_data_wrapper_write_to_output_stream_finish() inside the GAsyncReadyCallback to obtain the result of the operation.

Parameters

output_stream

Type: GOutputStream

A GOutputStream.

The data is owned by the caller of the method.
io_priority

Type: gint

The I/O priority of the request.

cancellable

Type: GCancellable

Optional GCancellable object, or NULL.

The argument can be NULL.
The data is owned by the caller of the method.
callback

Type: GAsyncReadyCallback

A GAsyncReadyCallback to call when the request is satisfied.

The argument can be NULL.
user_data

Type: gpointer

Data to pass to the callback function.

The argument can be NULL.
The data is owned by the caller of the method.