GMimeFilterPassThrough

GMimeFilterPassThrough — Zero-copy pass-through filter

Functions

Types and Values

Description

Passes bytes through without transforming, copying or buffering them. Filtering and completion return the supplied input pointer, length and prespace unchanged, including for empty input. Output is borrowed from the caller and has the same lifetime as the supplied input buffer.

Unlike a GMimeFilterBasic using a pass-through codec, this filter does not allocate an output buffer. It has no conversion state to reset; copying creates a new, independent filter of the same type.

Functions

g_mime_filter_pass_through_new ()

GMimeFilter *
g_mime_filter_pass_through_new (void);

Creates a filter that passes data through without processing or copying it. Completion emits the supplied input without adding bytes, and the filter can be reused without resetting it.

Returns

a new pass-through filter.

[transfer full]

Types and Values

GMimeFilterPassThrough

typedef struct _GMimeFilterPassThrough GMimeFilterPassThrough;

A filter that returns input unchanged without copying or buffering it.

See Also

GMimeFilter, GMimeFilterBasic