Go to the source code of this file.
|
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) |
|
uLong ZEXPORT | compressBound (uLong sourceLen) |
|
int ZEXPORT compress |
( |
Bytef * |
dest, |
|
|
uLongf * |
destLen, |
|
|
const Bytef * |
source, |
|
|
uLong |
sourceLen |
|
) |
| |
Definition at line 57 of file compress.cc.
int ZEXPORT compress2(Bytef *dest, uLongf *destLen, const Bytef *source, uLong sourceLen, int level)
#define Z_DEFAULT_COMPRESSION
int ZEXPORT compress2 |
( |
Bytef * |
dest, |
|
|
uLongf * |
destLen, |
|
|
const Bytef * |
source, |
|
|
uLong |
sourceLen, |
|
|
int |
level |
|
) |
| |
Definition at line 22 of file compress.cc.
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;
int ZEXPORT deflateEnd(z_streamp strm)
int ZEXPORT deflate(z_streamp strm, int flush)
#define deflateInit(strm, level)
uLong ZEXPORT compressBound |
( |
uLong |
sourceLen | ) |
|
Definition at line 66 of file compress.cc.
68 return sourceLen + (sourceLen >> 12) + (sourceLen >> 14) +
69 (sourceLen >> 25) + 13;