Compress

Used when the data to be compressed is not all in one buffer.

Constructors

this
this(int level, bool wantGzip)
this(bool wantGzip)

Construct. level is the same as for D.zlib.compress().

Destructor

A destructor is present on this object, but not explicitly documented in the source.

Members

Functions

compress
const(void)[] compress(const(void)[] buf)

Compress the data in buf and return the compressed data. The buffers returned from successive calls to this should be concatenated together.

flush
void[] flush(int mode)

Compress and return any remaining data. The returned data should be appended to that returned by compress().

Suggestion Box / Bug Report