compress

fnint compress(ubyte * dest, c_ulong * destLen, const(ubyte) * source, c_ulong sourceLen) nothrow

Compress source buffer to destination buffer.

Parameters

destDestination buffer.
destLenPointer to destination buffer size (updated with actual size).
sourceSource buffer.
sourceLenSource buffer size.

Returns

Z_OK on success, or an error code.