22 int ZEXPORT
compress2 (Bytef *dest, uLongf *destLen,
const Bytef *source, uLong sourceLen,
int level)
27 stream.
next_in = (z_const Bytef *)source;
37 stream.
zalloc = (alloc_func)0;
38 stream.
zfree = (free_func)0;
42 if (err !=
Z_OK)
return err;
57 int ZEXPORT
compress (Bytef *dest, uLongf *destLen,
const Bytef *source, uLong sourceLen)
68 return sourceLen + (sourceLen >> 12) + (sourceLen >> 14) +
69 (sourceLen >> 25) + 13;
int ZEXPORT deflateEnd(z_streamp strm)
uLong ZEXPORT compressBound(uLong sourceLen)
int ZEXPORT deflate(z_streamp strm, int flush)
int ZEXPORT compress(Bytef *dest, uLongf *destLen, const Bytef *source, uLong sourceLen)
#define deflateInit(strm, level)
int ZEXPORT compress2(Bytef *dest, uLongf *destLen, const Bytef *source, uLong sourceLen, int level)
#define Z_DEFAULT_COMPRESSION