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
80 typedef voidpf (*alloc_func)
OF((voidpf opaque, uInt items, uInt size));
81 typedef
void (*free_func)
OF((voidpf opaque, voidpf address));
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()
246 ZEXTERN
int ZEXPORT
deflate OF((z_streamp strm,
int flush));
392 ZEXTERN
int ZEXPORT
inflate OF((z_streamp strm,
int flush));
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));
1143 ZEXTERN
int ZEXPORT
compress OF((Bytef *dest, uLongf *destLen,
1144 const Bytef *source, uLong sourceLen));
1157 ZEXTERN
int ZEXPORT
compress2 OF((Bytef *dest, uLongf *destLen,
1158 const Bytef *source, uLong sourceLen,
1180 ZEXTERN
int ZEXPORT
uncompress OF((Bytef *dest, uLongf *destLen,
1181 const Bytef *source, uLong sourceLen));
1247 ZEXTERN gzFile ZEXPORT
gzdopen OF((
int fd,
const char *mode));
1296 ZEXTERN
int ZEXPORT
gzread OF((gzFile
file, voidp buf,
unsigned len));
1325 voidpc buf,
unsigned len));
1347 ZEXTERN
int ZEXPORT
gzputs OF((gzFile
file,
const char *
s));
1519 ZEXTERN
const char * ZEXPORT
gzerror OF((gzFile
file,
int *errnum));
1552 ZEXTERN uLong ZEXPORT
adler32 OF((uLong adler,
const Bytef *buf, uInt
len));
1583 ZEXTERN uLong ZEXPORT
crc32 OF((uLong crc,
const Bytef *buf, uInt
len));
1617 const char *
version,
int stream_size));
1619 const char *
version,
int stream_size));
1620 ZEXTERN
int ZEXPORT
deflateInit2_ OF((z_streamp strm,
int level,
int method,
1621 int windowBits,
int memLevel,
1622 int strategy,
const char *
version,
1625 const char *
version,
int stream_size));
1627 unsigned char FAR *window,
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))
1675 ZEXTERN gzFile ZEXPORT
gzopen64 OF((
const char *,
const char *));
1676 ZEXTERN z_off64_t ZEXPORT
gzseek64 OF((gzFile, z_off64_t,
int));
1677 ZEXTERN z_off64_t ZEXPORT
gztell64 OF((gzFile));
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
1700 ZEXTERN gzFile ZEXPORT
gzopen64 OF((
const char *,
const char *));
1701 ZEXTERN z_off_t ZEXPORT
gzseek64 OF((gzFile, z_off_t,
int));
1702 ZEXTERN z_off_t ZEXPORT
gztell64 OF((gzFile));
1708 ZEXTERN gzFile ZEXPORT
gzopen OF((
const char *,
const char *));
1709 ZEXTERN z_off_t ZEXPORT
gzseek OF((gzFile, z_off_t,
int));
1710 ZEXTERN z_off_t ZEXPORT
gztell OF((gzFile));
1711 ZEXTERN z_off_t ZEXPORT
gzoffset OF((gzFile));
1724 #if !defined(ZUTIL_H) && !defined(NO_DUMMY_DECL)
1729 ZEXTERN
const char * ZEXPORT
zError OF((
int));
1735 #if defined(_WIN32) && !defined(Z_SOLO)
1736 ZEXTERN gzFile ZEXPORT gzopen_w
OF((
const wchar_t *path,
int ZEXPORT deflateEnd(z_streamp strm)
const char *ZEXPORT zError(int err)
int ZEXPORT inflateInit2_(z_streamp strm, int windowBits, const char *version, int stream_size)
unsigned long ZEXPORT crc32(unsigned long crc, const unsigned char FAR *buf, uInt len)
int ZEXPORTVA gzprintf(gzFile file, const char *format, int a1, int a2, int a3, int a4, int a5, int a6, int a7, int a8, int a9, int a10, int a11, int a12, int a13, int a14, int a15, int a16, int a17, int a18, int a19, int a20)
int ZEXPORT inflateSync(z_streamp strm)
z_off_t ZEXPORT gzoffset(gzFile file)
z_off_t ZEXPORT gzseek(gzFile file, z_off_t offset, int whence)
int ZEXPORT gzungetc(int c, gzFile file)
int ZEXPORT deflateCopy(z_streamp dest, z_streamp source)
int ZEXPORT inflateInit_(z_streamp strm, const char *version, int stream_size)
int ZEXPORT inflateReset2(z_streamp strm, int windowBits)
void ZEXPORT gzclearerr(gzFile file)
z_off64_t ZEXPORT gzoffset64(gzFile file)
const char *ZEXPORT gzerror(gzFile file, int *errnum)
int ZEXPORT inflateUndermine(z_streamp strm, int subvert)
z_off64_t ZEXPORT gzseek64(gzFile file, z_off64_t offset, int whence)
const z_crc_t FAR *ZEXPORT get_crc_table()
int ZEXPORT deflateResetKeep(z_streamp strm)
int ZEXPORT gzsetparams(gzFile file, int level, int strategy)
int ZEXPORT inflateCopy(z_streamp dest, z_streamp source)
int ZEXPORT gzeof(gzFile file)
uLong ZEXPORT adler32(uLong adler, const Bytef *buf, uInt len)
gzFile ZEXPORT gzopen64(const char *path, const char *mode)
struct gz_header_s gz_header
gz_header FAR * gz_headerp
int ZEXPORT deflateTune(z_streamp strm, int good_length, int max_lazy, int nice_length, int max_chain)
struct internal_state FAR * state
int ZEXPORT deflatePrime(z_streamp strm, int bits, int value)
z_off_t ZEXPORT gztell(gzFile file)
int ZEXPORT inflateBack(z_streamp strm, in_func in, void FAR *in_desc, out_func out, void FAR *out_desc)
int ZEXPORT gzclose(gzFile file)
int ZEXPORT deflateSetDictionary(z_streamp strm, const Bytef *dictionary, uInt dictLength)
int ZEXPORT deflateSetHeader(z_streamp strm, gz_headerp head)
int ZEXPORT inflateResetKeep(z_streamp strm)
int ZEXPORT gzputs(gzFile file, const char *str)
z_off64_t ZEXPORT gztell64(gzFile file)
int ZEXPORT inflateSyncPoint(z_streamp strm)
ZEXTERN int ZEXPORTVA gzprintf Z_ARG((gzFile file, const char *format,...))
int ZEXPORT deflateParams(z_streamp strm, int level, int strategy)
char *ZEXPORT gzgets(gzFile file, char *buf, int len)
uLong ZEXPORT compressBound(uLong sourceLen)
gzFile ZEXPORT gzopen(const char *path, const char *mode)
int ZEXPORT gzdirect(gzFile file)
int ZEXPORT uncompress(Bytef *dest, uLongf *destLen, const Bytef *source, uLong sourceLen)
uLong ZEXPORT crc32_combine(uLong crc1, uLong crc2, z_off_t len2)
int ZEXPORT gzrewind(gzFile file)
int ZEXPORT inflateSetDictionary(z_streamp strm, const Bytef *dictionary, uInt dictLength)
int ZEXPORT gzread(gzFile file, voidp buf, unsigned len)
uLong ZEXPORT crc32_combine64(uLong crc1, uLong crc2, z_off64_t len2)
int ZEXPORT gzputc(gzFile file, int c)
int ZEXPORT gzgetc_(gzFile file)
int ZEXPORT gzbuffer(gzFile file, unsigned size)
gzFile ZEXPORT gzdopen(int fd, const char *mode)
int ZEXPORT gzclose_w(gzFile file)
int ZEXPORT deflate(z_streamp strm, int flush)
int ZEXPORT inflateBackInit_(z_streamp strm, int windowBits, unsigned char FAR *window, const char *version, int stream_size)
int ZEXPORT compress(Bytef *dest, uLongf *destLen, const Bytef *source, uLong sourceLen)
const XML_Char int const XML_Char * value
int ZEXPORT gzwrite(gzFile file, voidpc buf, unsigned len)
const char *ZEXPORT zlibVersion()
int ZEXPORT inflatePrime(z_streamp strm, int bits, int value)
int ZEXPORT inflateEnd(z_streamp strm)
int ZEXPORT gzclose_r(gzFile file)
struct z_stream_s z_stream
int ZEXPORT inflateBackEnd(z_streamp strm)
int ZEXPORT inflateGetHeader(z_streamp strm, gz_headerp head)
uLong ZEXPORT adler32_combine(uLong adler1, uLong adler2, z_off_t len2)
uLong ZEXPORT adler32_combine64(uLong adler1, uLong adler2, z_off64_t len2)
uLong ZEXPORT deflateBound(z_streamp strm, uLong sourceLen)
int ZEXPORT inflate(z_streamp strm, int flush)
int ZEXPORT compress2(Bytef *dest, uLongf *destLen, const Bytef *source, uLong sourceLen, int level)
int ZEXPORT deflatePending(z_streamp strm, unsigned *pending, int *bits)
int ZEXPORT deflateInit_(z_streamp strm, int level, const char *version, int stream_size)
int ZEXPORT deflateReset(z_streamp strm)
long ZEXPORT inflateMark(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)
uLong ZEXPORT zlibCompileFlags()
voidpf alloc_func OF((voidpf opaque, uInt items, uInt size))
int ZEXPORT gzflush(gzFile file, int flush)
int ZEXPORT inflateReset(z_streamp strm)