21 int ZEXPORT
compress2 (dest, destLen, source, sourceLen, level)
30 const uInt
max = (uInt)-1;
36 stream.
zalloc = (alloc_func)0;
37 stream.
zfree = (free_func)0;
45 stream.
next_in = (z_const Bytef *)source;
54 stream.
avail_in = sourceLen > (uLong)max ? max : (uInt)sourceLen;
58 }
while (err ==
Z_OK);
67 int ZEXPORT
compress (dest, destLen, source, sourceLen)
83 return sourceLen + (sourceLen >> 12) + (sourceLen >> 14) +
84 (sourceLen >> 25) + 13;