gmime.data_wrapper

Module for [DataWrapper] class

Types 3

A wrapper for a stream which may be encoded.

Methods
GType _getGType() static nothrow
GType _gType() @property nothrow
DataWrapper self() nothrowReturns `this`, for use in `with` statements.
DataWrapperGidBuilder builder() static nothrowGet builder for [gmime.data_wrapper.DataWrapper] Returns: New builder object
gmime.data_wrapper.DataWrapper newWithStream(gmime.stream.Stream stream, gmime.types.ContentEncoding encoding) static nothrowCreates a new #GMimeDataWrapper object around stream.
gmime.types.ContentEncoding getEncoding() nothrowGets the encoding type of the stream wrapped by wrapper. Returns: the encoding type of the internal stream.
gmime.stream.Stream getStream() nothrowGets a reference to the stream wrapped by wrapper. Returns: a reference to the internal stream.
void setEncoding(gmime.types.ContentEncoding encoding) nothrowSets the encoding type of the internal stream.
void setStream(gmime.stream.Stream stream) nothrowReplaces the wrapper's internal stream with stream. Don't forget, if stream is not of the same encoding as the old stream, you'll want to call [gmime.data_wrapper.DataWrapper.setEncoding] as well.
ptrdiff_t writeToStream(gmime.stream.Stream stream) nothrowWrites the raw (decoded) data to the output stream.
Constructors
this(void * ptr, Flag!"Take" take)
this()Creates a new #GMimeDataWrapper object. Returns: a new data wrapper object.
Methods
DataWrapper build() nothrowCreate object from builder. Returns: New object