DataWrapper
Object Hierarchy:
Description:
[ CCode ( type_id = "camel_data_wrapper_get_type ()" ) ]
public class DataWrapper : Object
Content:
Creation methods:
Methods:
- public size_t calculate_decoded_size_sync (Cancellable? cancellable = null) throws Error
Calculates decoded size of the this
by saving it to a null-stream and returns how many bytes had been written.
- public size_t calculate_size_sync (Cancellable? cancellable = null) throws Error
Calculates size of the this by
saving it to a null-stream and returns how many bytes had been written.
- public bool construct_from_data_sync (void* data, ssize_t data_len, Cancellable? cancellable = null) throws Error
Constructs the content of this from
data
of length data_len
.
- public async bool construct_from_input_stream (InputStream input_stream, int io_priority, Cancellable? cancellable = null) throws Error
Asynchronously constructs the content of
this from input_stream
.
- public virtual bool construct_from_input_stream_sync (InputStream input_stream, Cancellable? cancellable = null) throws Error
Constructs the content of this from
input_stream
.
- public async bool construct_from_stream (Stream stream, int io_priority, Cancellable? cancellable = null) throws Error
Asynchronously constructs the content of
this from the given stream
.
- public virtual bool construct_from_stream_sync (Stream stream, Cancellable? cancellable = null) throws Error
Constructs the content of this from
the given stream
.
- public async ssize_t decode_to_output_stream (OutputStream output_stream, int io_priority, Cancellable? cancellable = null) throws Error
Asynchronously writes the decoded data content to output_stream
.
- public virtual ssize_t decode_to_output_stream_sync (OutputStream output_stream, Cancellable? cancellable = null) throws Error
Writes the decoded data content to output_stream
.
- public async ssize_t decode_to_stream (Stream stream, int io_priority, Cancellable? cancellable = null) throws Error
Asynchronously writes the decoded data content to stream
.
- public virtual ssize_t decode_to_stream_sync (Stream stream, Cancellable? cancellable = null) throws Error
Writes the decoded data content to stream
.
- public unowned ByteArray get_byte_array ()
Returns the ByteArray being used to hold
the contents of this.
- public TransferEncoding get_encoding ()
- public virtual string get_mime_type ()
- public virtual unowned ContentType? get_mime_type_field ()
- public virtual bool is_offline ()
- public void set_encoding (TransferEncoding encoding)
- public virtual void set_mime_type (string mime_type)
This sets the data wrapper's MIME type.
- public virtual void set_mime_type_field (ContentType? mime_type)
This sets the data wrapper's MIME type.
- public void set_offline (bool offline)
Sets whether the this is "offline".
- public void take_mime_type_field (owned ContentType? mime_type)
Sets mime-type filed to be mime_type
and consumes it, aka
unlike set_mime_type_field, this doesn't add its own
reference to mime_type
.
- public async ssize_t write_to_output_stream (OutputStream output_stream, int io_priority, Cancellable? cancellable = null) throws Error
Asynchronously writes the content of this
to output_stream
in a machine-independent format appropriate for the data.
- public virtual ssize_t write_to_output_stream_sync (OutputStream output_stream, Cancellable? cancellable = null) throws Error
Writes the content of this to
output_stream
in a machine-independent format appropriate for the data.
- public async ssize_t write_to_stream (Stream stream, int io_priority, Cancellable? cancellable = null) throws Error
Asynchronously writes the content of this
to stream
in a machine-independent format appropriate for the data.
- public virtual ssize_t write_to_stream_sync (Stream stream, Cancellable? cancellable = null) throws Error
Writes the content of this to
stream
in a machine-independent format appropriate for the data.
Inherited Members:
All known members inherited from class GLib.Object
- @get
- @new
- @ref
- @set
- add_toggle_ref
- add_weak_pointer
- bind_property
- connect
- constructed
- disconnect
- dispose
- dup_data
- dup_qdata
- force_floating
- freeze_notify
- get_class
- get_data
- get_property
- get_qdata
- get_type
- getv
- interface_find_property
- interface_install_property
- interface_list_properties
- is_floating
- new_valist
- new_with_properties
- newv
- notify
- notify_property
- ref_count
- ref_sink
- remove_toggle_ref
- remove_weak_pointer
- replace_data
- replace_qdata
- set_data
- set_data_full
- set_property
- set_qdata
- set_qdata_full
- set_valist
- setv
- steal_data
- steal_qdata
- thaw_notify
- unref
- watch_closure
- weak_ref
- weak_unref