Go to the documentation of this file.
40 #define ZLIB_VERSION "1.2.7"
41 #define ZLIB_VERNUM 0x1270
42 #define ZLIB_VER_MAJOR 1
43 #define ZLIB_VER_MINOR 2
44 #define ZLIB_VER_REVISION 7
45 #define ZLIB_VER_SUBREVISION 0
95 struct internal_state
FAR *state;
165 #define Z_PARTIAL_FLUSH 1
166 #define Z_SYNC_FLUSH 2
167 #define Z_FULL_FLUSH 3
174 #define Z_STREAM_END 1
175 #define Z_NEED_DICT 2
177 #define Z_STREAM_ERROR (-2)
178 #define Z_DATA_ERROR (-3)
179 #define Z_MEM_ERROR (-4)
180 #define Z_BUF_ERROR (-5)
181 #define Z_VERSION_ERROR (-6)
186 #define Z_NO_COMPRESSION 0
187 #define Z_BEST_SPEED 1
188 #define Z_BEST_COMPRESSION 9
189 #define Z_DEFAULT_COMPRESSION (-1)
193 #define Z_HUFFMAN_ONLY 2
196 #define Z_DEFAULT_STRATEGY 0
201 #define Z_ASCII Z_TEXT
210 #define zlib_version zlibVersion()
588 const Bytef *dictionary,
820 const Bytef *dictionary,
1010 typedef unsigned (*in_func)
OF((
void FAR *,
unsigned char FAR * FAR *));
1011 typedef
int (*out_func)
OF((
void FAR *,
unsigned char FAR *,
unsigned));
1014 in_func in,
void FAR *in_desc,
1015 out_func out,
void FAR *out_desc));
1325 voidpc buf,
unsigned len));
1621 int windowBits,
int memLevel,
1622 int strategy,
const char *version,
1627 unsigned char FAR *window,
1628 const char *version,
1630 #define deflateInit(strm, level) \
1631 deflateInit_((strm), (level), ZLIB_VERSION, (int)sizeof(z_stream))
1632 #define inflateInit(strm) \
1633 inflateInit_((strm), ZLIB_VERSION, (int)sizeof(z_stream))
1634 #define deflateInit2(strm, level, method, windowBits, memLevel, strategy) \
1635 deflateInit2_((strm),(level),(method),(windowBits),(memLevel),\
1636 (strategy), ZLIB_VERSION, (int)sizeof(z_stream))
1637 #define inflateInit2(strm, windowBits) \
1638 inflateInit2_((strm), (windowBits), ZLIB_VERSION, \
1639 (int)sizeof(z_stream))
1640 #define inflateBackInit(strm, windowBits, window) \
1641 inflateBackInit_((strm), (windowBits), (window), \
1642 ZLIB_VERSION, (int)sizeof(z_stream))
1661 # define z_gzgetc(g) \
1662 ((g)->have ? ((g)->have--, (g)->pos++, *((g)->next)++) : gzgetc(g))
1664 # define gzgetc(g) \
1665 ((g)->have ? ((g)->have--, (g)->pos++, *((g)->next)++) : gzgetc(g))
1683 #if !defined(ZLIB_INTERNAL) && defined(Z_WANT64)
1684 # ifdef Z_PREFIX_SET
1685 # define z_gzopen z_gzopen64
1686 # define z_gzseek z_gzseek64
1687 # define z_gztell z_gztell64
1688 # define z_gzoffset z_gzoffset64
1689 # define z_adler32_combine z_adler32_combine64
1690 # define z_crc32_combine z_crc32_combine64
1692 # define gzopen gzopen64
1693 # define gzseek gzseek64
1694 # define gztell gztell64
1695 # define gzoffset gzoffset64
1696 # define adler32_combine adler32_combine64
1697 # define crc32_combine crc32_combine64
1724 #if !defined(ZUTIL_H) && !defined(NO_DUMMY_DECL)
1735 #if defined(_WIN32) && !defined(Z_SOLO)