40 #define ZLIB_VERSION "1.2.8" 41 #define ZLIB_VERNUM 0x1280 42 #define ZLIB_VER_MAJOR 1 43 #define ZLIB_VER_MINOR 2 44 #define ZLIB_VER_REVISION 8 45 #define ZLIB_VER_SUBREVISION 0 80 typedef voidpf (*alloc_func) OF((voidpf opaque, uInt items, uInt size));
81 typedef
void (*free_func) OF((voidpf opaque, voidpf address));
86 z_const Bytef *next_in;
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() 216 ZEXTERN
const char * ZEXPORT zlibVersion OF((
void));
246 ZEXTERN
int ZEXPORT deflate OF((z_streamp strm,
int flush));
353 ZEXTERN
int ZEXPORT deflateEnd OF((z_streamp strm));
392 ZEXTERN
int ZEXPORT inflate OF((z_streamp strm,
int flush));
508 ZEXTERN
int ZEXPORT inflateEnd OF((z_streamp strm));
587 ZEXTERN
int ZEXPORT deflateSetDictionary OF((z_streamp strm,
588 const Bytef *dictionary,
631 ZEXTERN
int ZEXPORT deflateCopy OF((z_streamp dest,
649 ZEXTERN
int ZEXPORT deflateReset OF((z_streamp strm));
660 ZEXTERN
int ZEXPORT deflateParams OF((z_streamp strm,
681 ZEXTERN
int ZEXPORT deflateTune OF((z_streamp strm,
698 ZEXTERN uLong ZEXPORT deflateBound OF((z_streamp strm,
713 ZEXTERN
int ZEXPORT deflatePending OF((z_streamp strm,
728 ZEXTERN
int ZEXPORT deflatePrime OF((z_streamp strm,
745 ZEXTERN
int ZEXPORT deflateSetHeader OF((z_streamp strm,
819 ZEXTERN
int ZEXPORT inflateSetDictionary OF((z_streamp strm,
820 const Bytef *dictionary,
842 ZEXTERN
int ZEXPORT inflateGetDictionary OF((z_streamp strm,
857 ZEXTERN
int ZEXPORT inflateSync OF((z_streamp strm));
876 ZEXTERN
int ZEXPORT inflateCopy OF((z_streamp dest,
892 ZEXTERN
int ZEXPORT inflateReset OF((z_streamp strm));
902 ZEXTERN
int ZEXPORT inflateReset2 OF((z_streamp strm,
914 ZEXTERN
int ZEXPORT inflatePrime OF((z_streamp strm,
935 ZEXTERN
long ZEXPORT inflateMark OF((z_streamp strm));
963 ZEXTERN
int ZEXPORT inflateGetHeader OF((z_streamp strm,
1025 typedef unsigned (*in_func) OF((
void FAR *,
1026 z_const
unsigned char FAR * FAR *));
1027 typedef int (*out_func) OF((
void FAR *,
unsigned char FAR *,
unsigned));
1029 ZEXTERN
int ZEXPORT inflateBack OF((z_streamp strm,
1030 in_func in,
void FAR *in_desc,
1031 out_func out,
void FAR *out_desc));
1099 ZEXTERN
int ZEXPORT inflateBackEnd OF((z_streamp strm));
1107 ZEXTERN uLong ZEXPORT zlibCompileFlags OF((
void));
1160 ZEXTERN
int ZEXPORT compress OF((Bytef *dest, uLongf *destLen,
1161 const Bytef *source, uLong sourceLen));
1174 ZEXTERN
int ZEXPORT compress2 OF((Bytef *dest, uLongf *destLen,
1175 const Bytef *source, uLong sourceLen,
1190 ZEXTERN uLong ZEXPORT compressBound OF((uLong sourceLen));
1197 ZEXTERN
int ZEXPORT uncompress OF((Bytef *dest, uLongf *destLen,
1198 const Bytef *source, uLong sourceLen));
1264 ZEXTERN gzFile ZEXPORT gzdopen OF((
int fd,
const char *mode));
1287 ZEXTERN
int ZEXPORT gzbuffer OF((gzFile file,
unsigned size));
1304 ZEXTERN
int ZEXPORT gzsetparams OF((gzFile file,
int level,
int strategy));
1313 ZEXTERN
int ZEXPORT gzread OF((gzFile file, voidp buf,
unsigned len));
1341 ZEXTERN
int ZEXPORT gzwrite OF((gzFile file,
1342 voidpc buf,
unsigned len));
1349 ZEXTERN
int ZEXPORTVA gzprintf Z_ARG((gzFile file,
const char *format, ...));
1364 ZEXTERN
int ZEXPORT gzputs OF((gzFile file,
const char *s));
1372 ZEXTERN
char * ZEXPORT gzgets OF((gzFile file,
char *buf,
int len));
1385 ZEXTERN
int ZEXPORT gzputc OF((gzFile file,
int c));
1391 ZEXTERN
int ZEXPORT gzgetc OF((gzFile file));
1400 ZEXTERN
int ZEXPORT gzungetc OF((
int c, gzFile file));
1412 ZEXTERN
int ZEXPORT gzflush OF((gzFile file,
int flush));
1447 ZEXTERN
int ZEXPORT gzrewind OF((gzFile file));
1475 ZEXTERN
int ZEXPORT gzeof OF((gzFile file));
1490 ZEXTERN
int ZEXPORT gzdirect OF((gzFile file));
1511 ZEXTERN
int ZEXPORT gzclose OF((gzFile file));
1524 ZEXTERN
int ZEXPORT gzclose_r OF((gzFile file));
1525 ZEXTERN
int ZEXPORT gzclose_w OF((gzFile file));
1536 ZEXTERN
const char * ZEXPORT gzerror OF((gzFile file,
int *errnum));
1552 ZEXTERN
void ZEXPORT gzclearerr OF((gzFile file));
1569 ZEXTERN uLong ZEXPORT adler32 OF((uLong adler,
const Bytef *buf, uInt len));
1600 ZEXTERN uLong ZEXPORT crc32 OF((uLong crc,
const Bytef *buf, uInt len));
1633 ZEXTERN
int ZEXPORT deflateInit_ OF((z_streamp strm,
int level,
1634 const char *version,
int stream_size));
1635 ZEXTERN
int ZEXPORT inflateInit_ OF((z_streamp strm,
1636 const char *version,
int stream_size));
1637 ZEXTERN
int ZEXPORT deflateInit2_ OF((z_streamp strm,
int level,
int method,
1638 int windowBits,
int memLevel,
1639 int strategy,
const char *version,
1641 ZEXTERN
int ZEXPORT inflateInit2_ OF((z_streamp strm,
int windowBits,
1642 const char *version,
int stream_size));
1643 ZEXTERN
int ZEXPORT inflateBackInit_ OF((z_streamp strm,
int windowBits,
1644 unsigned char FAR *window,
1645 const char *version,
1647 #define deflateInit(strm, level) \ 1648 deflateInit_((strm), (level), ZLIB_VERSION, (int)sizeof(z_stream)) 1649 #define inflateInit(strm) \ 1650 inflateInit_((strm), ZLIB_VERSION, (int)sizeof(z_stream)) 1651 #define deflateInit2(strm, level, method, windowBits, memLevel, strategy) \ 1652 deflateInit2_((strm),(level),(method),(windowBits),(memLevel),\ 1653 (strategy), ZLIB_VERSION, (int)sizeof(z_stream)) 1654 #define inflateInit2(strm, windowBits) \ 1655 inflateInit2_((strm), (windowBits), ZLIB_VERSION, \ 1656 (int)sizeof(z_stream)) 1657 #define inflateBackInit(strm, windowBits, window) \ 1658 inflateBackInit_((strm), (windowBits), (window), \ 1659 ZLIB_VERSION, (int)sizeof(z_stream)) 1672 unsigned char *next;
1675 ZEXTERN
int ZEXPORT gzgetc_ OF((gzFile file));
1678 # define z_gzgetc(g) \ 1679 ((g)->have ? ((g)->have--, (g)->pos++, *((g)->next)++) : gzgetc(g)) 1681 # define gzgetc(g) \ 1682 ((g)->have ? ((g)->have--, (g)->pos++, *((g)->next)++) : gzgetc(g)) 1692 ZEXTERN gzFile ZEXPORT gzopen64 OF((
const char *,
const char *));
1693 ZEXTERN z_off64_t ZEXPORT gzseek64 OF((gzFile, z_off64_t,
int));
1694 ZEXTERN z_off64_t ZEXPORT gztell64 OF((gzFile));
1695 ZEXTERN z_off64_t ZEXPORT gzoffset64 OF((gzFile));
1696 ZEXTERN uLong ZEXPORT adler32_combine64 OF((uLong, uLong, z_off64_t));
1697 ZEXTERN uLong ZEXPORT crc32_combine64 OF((uLong, uLong, z_off64_t));
1700 #if !defined(ZLIB_INTERNAL) && defined(Z_WANT64) 1701 # ifdef Z_PREFIX_SET 1702 # define z_gzopen z_gzopen64 1703 # define z_gzseek z_gzseek64 1704 # define z_gztell z_gztell64 1705 # define z_gzoffset z_gzoffset64 1706 # define z_adler32_combine z_adler32_combine64 1707 # define z_crc32_combine z_crc32_combine64 1709 # define gzopen gzopen64 1710 # define gzseek gzseek64 1711 # define gztell gztell64 1712 # define gzoffset gzoffset64 1713 # define adler32_combine adler32_combine64 1714 # define crc32_combine crc32_combine64 1717 ZEXTERN gzFile ZEXPORT gzopen64 OF((
const char *,
const char *));
1718 ZEXTERN z_off_t ZEXPORT gzseek64 OF((gzFile, z_off_t,
int));
1719 ZEXTERN z_off_t ZEXPORT gztell64 OF((gzFile));
1720 ZEXTERN z_off_t ZEXPORT gzoffset64 OF((gzFile));
1721 ZEXTERN uLong ZEXPORT adler32_combine64 OF((uLong, uLong, z_off_t));
1722 ZEXTERN uLong ZEXPORT crc32_combine64 OF((uLong, uLong, z_off_t));
1725 ZEXTERN gzFile ZEXPORT gzopen OF((
const char *,
const char *));
1726 ZEXTERN z_off_t ZEXPORT gzseek OF((gzFile, z_off_t,
int));
1727 ZEXTERN z_off_t ZEXPORT gztell OF((gzFile));
1728 ZEXTERN z_off_t ZEXPORT gzoffset OF((gzFile));
1729 ZEXTERN uLong ZEXPORT adler32_combine OF((uLong, uLong, z_off_t));
1730 ZEXTERN uLong ZEXPORT crc32_combine OF((uLong, uLong, z_off_t));
1735 ZEXTERN uLong ZEXPORT adler32_combine OF((uLong, uLong, z_off_t));
1736 ZEXTERN uLong ZEXPORT crc32_combine OF((uLong, uLong, z_off_t));
1741 #if !defined(ZUTIL_H) && !defined(NO_DUMMY_DECL) 1746 ZEXTERN
const char * ZEXPORT zError OF((
int));
1747 ZEXTERN
int ZEXPORT inflateSyncPoint OF((z_streamp));
1748 ZEXTERN
const z_crc_t FAR * ZEXPORT get_crc_table OF((
void));
1749 ZEXTERN
int ZEXPORT inflateUndermine OF((z_streamp,
int));
1750 ZEXTERN
int ZEXPORT inflateResetKeep OF((z_streamp));
1751 ZEXTERN
int ZEXPORT deflateResetKeep OF((z_streamp));
1752 #if defined(_WIN32) && !defined(Z_SOLO) 1753 ZEXTERN gzFile ZEXPORT gzopen_w OF((
const wchar_t *path,
1756 #if defined(STDC) || defined(Z_HAVE_STDARG_H) 1758 ZEXTERN
int ZEXPORTVA gzvprintf Z_ARG((gzFile file,