compress

fnubyte[] compress(const(void)[] srcbuf, int level)

Compress data

Parameters

srcbufbuffer containing the data to compress
levelcompression level. Legal values are -1 .. 9, with -1 indicating the default level (6), 0 indicating no compression, 1 being the least compression and 9 being the most.

Returns

the compressed data
fnubyte[] compress(const(void)[] srcbuf)

ditto