30 const uInt
max = (uInt)-1;
36 stream.
zalloc = (alloc_func)0;
37 stream.
zfree = (free_func)0;
41 if (err !=
Z_OK)
return err;
58 }
while (err ==
Z_OK);
83 return sourceLen + (sourceLen >> 12) + (sourceLen >> 14) +
84 (sourceLen >> 25) + 13;
uLong ZEXPORT compressBound(uLong sourceLen)
int ZEXPORT compress2(Bytef *dest, uLongf *destLen, const Bytef *source, uLong sourceLen, int level)
int ZEXPORT compress(Bytef *dest, uLongf *destLen, const Bytef *source, uLong sourceLen)
int ZEXPORT deflateEnd(z_streamp strm)
int ZEXPORT deflate(z_streamp strm, int flush)
T max(const T t1, const T t2)
brief Return the largest of the two arguments
#define deflateInit(strm, level)
#define Z_DEFAULT_COMPRESSION