FilterGZip

A filter for compresing or decompressing a gzip stream.

Constructors

this
this(void* ptr, Flag!"Take" take)
this
this(gmime.types.FilterGZipMode mode, int level)

Creates a new gzip (or gunzip) filter.

Members

Functions

getComment
string getComment()

Gets the comment that was either previously set or retrieved when decoding a gzip stream.

getFilename
string getFilename()

Gets the filename that was either previously set or retrieved when decoding a gzip stream.

self
FilterGZip self()

Returns this, for use in with statements.

setComment
void setComment(string comment)

Sets the comment that should be used when generating the gzip header.

setFilename
void setFilename(string filename)

Sets the filename that should be used when generating the gzip header.

Properties

_gType
GType _gType [@property getter]

Static functions

_getGType
GType _getGType()
builder
FilterGZipGidBuilder builder()

Get builder for gmime.filter_gzip.FilterGZip

Inherited Members

From Filter

_getGType
GType _getGType()
_gType
GType _gType [@property getter]
self
Filter self()

Returns this, for use in with statements.

builder
FilterGidBuilder builder()

Get builder for gmime.filter.Filter

backup
void backup(ubyte[] data)

Sets number of bytes backed up on the input, new calls replace previous ones

complete
void complete(ubyte[] inbuf, size_t prespace, ubyte[] outbuf, size_t outprespace)

Completes the filtering.

copy
gmime.filter.Filter copy()

Copies filter into a new #GMimeFilter object.

filter
void filter(ubyte[] inbuf, size_t prespace, ubyte[] outbuf, size_t outprespace)

Filters the input data and writes it to out.

reset
void reset()

Resets the filter.

setSize
void setSize(size_t size, bool keep)

Ensure this much size is available for filter output (if required)