23 uLong sourceLen,
int level) {
37 if (err !=
Z_OK)
return err;
54 }
while (err ==
Z_OK);
73 return sourceLen + (sourceLen >> 12) + (sourceLen >> 14) +
74 (sourceLen >> 25) + 13;
uLong ZEXPORT compressBound(uLong sourceLen)
voidpf(* alloc_func)(voidpf opaque, uInt items, uInt size)
int ZEXPORT deflateEnd(z_streamp strm)
constexpr const _Tp & max(const _Tp &a, const _Tp &b)
int ZEXPORT compress2(Bytef *dest, uLongf *destLen, const Bytef *source, uLong sourceLen, int level)
int ZEXPORT deflate(z_streamp strm, int flush)
int ZEXPORT compress(Bytef *dest, uLongf *destLen, const Bytef *source, uLong sourceLen)
#define deflateInit(strm, level)
void(* free_func)(voidpf opaque, voidpf address)
#define Z_DEFAULT_COMPRESSION