40#define ZLIB_VERSION "1.2.2"
41#define ZLIB_VERNUM 0x1220
140#define Z_PARTIAL_FLUSH 1
141#define Z_SYNC_FLUSH 2
142#define Z_FULL_FLUSH 3
148#define Z_STREAM_END 1
151#define Z_STREAM_ERROR (-2)
152#define Z_DATA_ERROR (-3)
153#define Z_MEM_ERROR (-4)
154#define Z_BUF_ERROR (-5)
155#define Z_VERSION_ERROR (-6)
160#define Z_NO_COMPRESSION 0
161#define Z_BEST_SPEED 1
162#define Z_BEST_COMPRESSION 9
163#define Z_DEFAULT_COMPRESSION (-1)
167#define Z_HUFFMAN_ONLY 2
169#define Z_DEFAULT_STRATEGY 0
182#define zlib_version zlibVersion()
508 const Bytef *dictionary,
663 const Bytef *dictionary,
744typedef unsigned (*in_func)
OF((
void FAR *,
unsigned char FAR *
FAR *));
745typedef int (*out_func)
OF((
void FAR *,
unsigned char FAR *,
unsigned));
748 in_func in,
void FAR *in_desc,
749 out_func out,
void FAR *out_desc));
982 voidpc buf,
unsigned len));
1161 const char *version,
int stream_size));
1163 const char *version,
int stream_size));
1165 int windowBits,
int memLevel,
1169 const char *version,
int stream_size));
1172 const char *version,
1174#define deflateInit(strm, level) \
1175 deflateInit_((strm), (level), ZLIB_VERSION, sizeof(z_stream))
1176#define inflateInit(strm) \
1177 inflateInit_((strm), ZLIB_VERSION, sizeof(z_stream))
1178#define deflateInit2(strm, level, method, windowBits, memLevel, strategy) \
1179 deflateInit2_((strm),(level),(method),(windowBits),(memLevel),\
1180 (strategy), ZLIB_VERSION, sizeof(z_stream))
1181#define inflateInit2(strm, windowBits) \
1182 inflateInit2_((strm), (windowBits), ZLIB_VERSION, sizeof(z_stream))
1183#define inflateBackInit(strm, windowBits, window) \
1184 inflateBackInit_((strm), (windowBits), (window), \
1185 ZLIB_VERSION, sizeof(z_stream))
1187#if !defined(_ZUTIL_H) && !defined(NO_DUMMY_DECL)
uLong ZEXPORT adler32(uLong adler, const Bytef *buf, uInt len)
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)
unsigned long ZEXPORT crc32(unsigned long crc, const unsigned char FAR *buf, unsigned len)
const unsigned long FAR *ZEXPORT get_crc_table()
int ZEXPORT deflateInit_(z_streamp strm, int level, const char *version, int stream_size)
int ZEXPORT deflateCopy(z_streamp dest, z_streamp source)
int ZEXPORT deflateSetDictionary(z_streamp strm, const Bytef *dictionary, uInt dictLength)
int ZEXPORT deflateReset(z_streamp strm)
int ZEXPORT deflateParams(z_streamp strm, int level, int strategy)
uLong ZEXPORT deflateBound(z_streamp strm, uLong sourceLen)
int ZEXPORT deflatePrime(z_streamp strm, int bits, int value)
int ZEXPORT deflateEnd(z_streamp strm)
int ZEXPORT deflateInit2_(z_streamp strm, int level, int method, int windowBits, int memLevel, int strategy, const char *version, int stream_size)
int ZEXPORT deflate(z_streamp strm, int flush)
struct internal_state FAR * state
struct z_stream_s z_stream
voidpf alloc_func OF((voidpf opaque, uInt items, uInt size))
const char *ZEXPORT zlibVersion()
uLong ZEXPORT zlibCompileFlags()
const char *ZEXPORT zError(int err)