FilterYenc

A filter for yEncoding or yDecoding a stream.

Constructors

this
this(void* ptr, Flag!"Take" take)
this
this(bool encode)

Creates a new yEnc filter.

Members

Functions

getCrc
uint getCrc()

Get the computed crc or (guint32) -1 on fail.

getPcrc
uint getPcrc()

Get the computed part crc or (guint32) -1 on fail.

self
FilterYenc self()

Returns this, for use in with statements.

setCrc
void setCrc(uint crc)

Sets the current crc32 value on the yEnc filter yenc to crc.

setState
void setState(int state)

Sets the current state of the yencoder/ydecoder

Properties

_gType
GType _gType [@property getter]

Static functions

_getGType
GType _getGType()
builder
FilterYencGidBuilder builder()

Get builder for gmime.filter_yenc.FilterYenc

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)