40#define ZLIB_VERSION "1.2.11"
41#define ZLIB_VERNUM 0x12b0
42#define ZLIB_VER_MAJOR 1
43#define ZLIB_VER_MINOR 2
44#define ZLIB_VER_REVISION 11
45#define ZLIB_VER_SUBREVISION 0
81typedef voidpf (*alloc_func)
OF((voidpf opaque, uInt items, uInt size));
82typedef void (*free_func)
OF((voidpf opaque, voidpf address));
169#define Z_PARTIAL_FLUSH 1
170#define Z_SYNC_FLUSH 2
171#define Z_FULL_FLUSH 3
178#define Z_STREAM_END 1
181#define Z_STREAM_ERROR (-2)
182#define Z_DATA_ERROR (-3)
183#define Z_MEM_ERROR (-4)
184#define Z_BUF_ERROR (-5)
185#define Z_VERSION_ERROR (-6)
190#define Z_NO_COMPRESSION 0
191#define Z_BEST_SPEED 1
192#define Z_BEST_COMPRESSION 9
193#define Z_DEFAULT_COMPRESSION (-1)
197#define Z_HUFFMAN_ONLY 2
200#define Z_DEFAULT_STRATEGY 0
205#define Z_ASCII Z_TEXT
214#define zlib_version zlibVersion()
612 const Bytef *dictionary,
885 const Bytef *dictionary,
1092typedef unsigned (*in_func)
OF((
void FAR *,
1093 z_const
unsigned char FAR * FAR *));
1094typedef int (*out_func)
OF((
void FAR *,
unsigned char FAR *,
unsigned));
1097 in_func in,
void FAR *in_desc,
1098 out_func out,
void FAR *out_desc));
1228 const Bytef *source, uLong sourceLen));
1243 const Bytef *source, uLong sourceLen,
1265ZEXTERN
int ZEXPORT
uncompress OF((Bytef *dest, uLongf *destLen,
1266 const Bytef *source, uLong sourceLen));
1284 const Bytef *source, uLong *sourceLen));
1420ZEXTERN z_size_t ZEXPORT
gzfread OF((voidp buf, z_size_t size, z_size_t nitems,
1447 voidpc buf,
unsigned len));
1455 z_size_t nitems,
gzFile file));
1688ZEXTERN uLong ZEXPORT
adler32 OF((uLong adler,
const Bytef *buf, uInt len));
1725ZEXTERN uLong ZEXPORT
crc32 OF((uLong crc,
const Bytef *buf, uInt len));
1742ZEXTERN uLong ZEXPORT
crc32_z OF((uLong adler,
const Bytef *buf,
1765 const char *version,
int stream_size));
1767 const char *version,
int stream_size));
1769 int windowBits,
int memLevel,
1770 int strategy,
const char *version,
1773 const char *version,
int stream_size));
1775 unsigned char FAR *window,
1776 const char *version,
1779# define z_deflateInit(strm, level) \
1780 deflateInit_((strm), (level), ZLIB_VERSION, (int)sizeof(z_stream))
1781# define z_inflateInit(strm) \
1782 inflateInit_((strm), ZLIB_VERSION, (int)sizeof(z_stream))
1783# define z_deflateInit2(strm, level, method, windowBits, memLevel, strategy) \
1784 deflateInit2_((strm),(level),(method),(windowBits),(memLevel),\
1785 (strategy), ZLIB_VERSION, (int)sizeof(z_stream))
1786# define z_inflateInit2(strm, windowBits) \
1787 inflateInit2_((strm), (windowBits), ZLIB_VERSION, \
1788 (int)sizeof(z_stream))
1789# define z_inflateBackInit(strm, windowBits, window) \
1790 inflateBackInit_((strm), (windowBits), (window), \
1791 ZLIB_VERSION, (int)sizeof(z_stream))
1793# define deflateInit(strm, level) \
1794 deflateInit_((strm), (level), ZLIB_VERSION, (int)sizeof(z_stream))
1795# define inflateInit(strm) \
1796 inflateInit_((strm), ZLIB_VERSION, (int)sizeof(z_stream))
1797# define deflateInit2(strm, level, method, windowBits, memLevel, strategy) \
1798 deflateInit2_((strm),(level),(method),(windowBits),(memLevel),\
1799 (strategy), ZLIB_VERSION, (int)sizeof(z_stream))
1800# define inflateInit2(strm, windowBits) \
1801 inflateInit2_((strm), (windowBits), ZLIB_VERSION, \
1802 (int)sizeof(z_stream))
1803# define inflateBackInit(strm, windowBits, window) \
1804 inflateBackInit_((strm), (windowBits), (window), \
1805 ZLIB_VERSION, (int)sizeof(z_stream))
1825# define z_gzgetc(g) \
1826 ((g)->have ? ((g)->have--, (g)->pos++, *((g)->next)++) : (gzgetc)(g))
1829 ((g)->have ? ((g)->have--, (g)->pos++, *((g)->next)++) : (gzgetc)(g))
1847#if !defined(ZLIB_INTERNAL) && defined(Z_WANT64)
1849# define z_gzopen z_gzopen64
1850# define z_gzseek z_gzseek64
1851# define z_gztell z_gztell64
1852# define z_gzoffset z_gzoffset64
1853# define z_adler32_combine z_adler32_combine64
1854# define z_crc32_combine z_crc32_combine64
1856# define gzopen gzopen64
1857# define gzseek gzseek64
1858# define gztell gztell64
1859# define gzoffset gzoffset64
1860# define adler32_combine adler32_combine64
1861# define crc32_combine crc32_combine64
1896#if (defined(_WIN32) || defined(__CYGWIN__)) && !defined(Z_SOLO)
1897ZEXTERN
gzFile ZEXPORT gzopen_w
OF((
const wchar_t *path,
1900#if defined(STDC) || defined(Z_HAVE_STDARG_H)
1902ZEXTERN
int ZEXPORTVA gzvprintf
Z_ARG((
gzFile file,
uLong ZEXPORT adler32_combine64(uLong adler1, uLong adler2, z_off64_t len2)
uLong ZEXPORT adler32_z(uLong adler, const Bytef *buf, z_size_t len)
uLong ZEXPORT adler32(uLong adler, const Bytef *buf, uInt len)
uLong ZEXPORT adler32_combine(uLong adler1, uLong adler2, z_off_t len2)
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)
const z_crc_t FAR *ZEXPORT get_crc_table()
unsigned long ZEXPORT crc32_z(unsigned long crc, const unsigned char FAR *buf, z_size_t len)
uLong ZEXPORT crc32_combine(uLong crc1, uLong crc2, z_off_t len2)
uLong ZEXPORT crc32_combine64(uLong crc1, uLong crc2, z_off64_t len2)
unsigned long ZEXPORT crc32(unsigned long crc, const unsigned char FAR *buf, uInt len)
int ZEXPORT deflateSetHeader(z_streamp strm, gz_headerp head)
int ZEXPORT deflateInit_(z_streamp strm, int level, const char *version, int stream_size)
int ZEXPORT deflatePending(z_streamp strm, unsigned *pending, int *bits)
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 deflateTune(z_streamp strm, int good_length, int max_lazy, int nice_length, int max_chain)
int ZEXPORT deflatePrime(z_streamp strm, int bits, int value)
int ZEXPORT deflateGetDictionary(z_streamp strm, Bytef *dictionary, uInt *dictLength)
int ZEXPORT deflateResetKeep(z_streamp strm)
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)
int ZEXPORT gzclose(gzFile file)
void ZEXPORT gzclearerr(gzFile file)
z_off64_t ZEXPORT gzseek64(gzFile file, z_off64_t offset, int whence)
int ZEXPORT gzrewind(gzFile file)
z_off64_t ZEXPORT gztell64(gzFile file)
gzFile ZEXPORT gzopen64(char *path, const char *mode) const
z_off_t ZEXPORT gzseek(gzFile file, z_off_t offset, int whence)
gzFile ZEXPORT gzopen(char *path, const char *mode) const
int ZEXPORT gzeof(gzFile file)
gzFile ZEXPORT gzdopen(int fd, const char *mode)
z_off64_t ZEXPORT gzoffset64(gzFile file)
const char *ZEXPORT gzerror(gzFile file, int *errnum)
z_off_t ZEXPORT gzoffset(gzFile file)
z_off_t ZEXPORT gztell(gzFile file)
int ZEXPORT gzbuffer(gzFile file, unsigned size)
int ZEXPORT gzungetc(int c, gzFile file)
int ZEXPORT gzdirect(gzFile file)
int ZEXPORT gzread(gzFile file, voidp buf, unsigned len)
int ZEXPORT gzgetc_(gzFile file)
int ZEXPORT gzclose_r(gzFile file)
char *ZEXPORT gzgets(gzFile file, char *buf, int len)
z_size_t ZEXPORT gzfread(voidp buf, z_size_t size, z_size_t nitems, gzFile file)
int ZEXPORT gzsetparams(gzFile file, int level, int strategy)
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 gzputs(gzFile file, const char *str)
int ZEXPORT gzputc(gzFile file, int c)
int ZEXPORT gzflush(gzFile file, int flush)
int ZEXPORT gzclose_w(gzFile file)
int ZEXPORT gzwrite(gzFile file, voidpc buf, unsigned len)
z_size_t ZEXPORT gzfwrite(voidpc buf, z_size_t size, z_size_t nitems, gzFile file)
int ZEXPORT inflateBackInit_(z_streamp strm, int windowBits, unsigned char FAR *window, const char *version, int stream_size)
int ZEXPORT inflateBack(z_streamp strm, in_func in, void FAR *in_desc, out_func out, void FAR *out_desc)
int ZEXPORT inflateBackEnd(z_streamp strm)
unsigned long ZEXPORT inflateCodesUsed(z_streamp strm)
int ZEXPORT inflateSetDictionary(z_streamp strm, const Bytef *dictionary, uInt dictLength)
long ZEXPORT inflateMark(z_streamp strm)
int ZEXPORT inflateGetDictionary(z_streamp strm, Bytef *dictionary, uInt *dictLength)
int ZEXPORT inflateSyncPoint(z_streamp strm)
int ZEXPORT inflatePrime(z_streamp strm, int bits, int value)
int ZEXPORT inflateGetHeader(z_streamp strm, gz_headerp head)
int ZEXPORT inflateUndermine(z_streamp strm, int subvert)
int ZEXPORT inflateSync(z_streamp strm)
int ZEXPORT inflateResetKeep(z_streamp strm)
int ZEXPORT inflate(z_streamp strm, int flush)
int ZEXPORT inflateInit2_(z_streamp strm, int windowBits, const char *version, int stream_size)
int ZEXPORT inflateReset(z_streamp strm)
int ZEXPORT inflateInit_(z_streamp strm, const char *version, int stream_size)
int ZEXPORT inflateEnd(z_streamp strm)
int ZEXPORT inflateCopy(z_streamp dest, z_streamp source)
int ZEXPORT inflateValidate(z_streamp strm, int check)
int ZEXPORT inflateReset2(z_streamp strm, int windowBits)
struct internal_state FAR * state
int ZEXPORT uncompress(Bytef *dest, uLongf *destLen, const Bytef *source, uLong sourceLen)
int ZEXPORT uncompress2(Bytef *dest, uLongf *destLen, const Bytef *source, uLong *sourceLen)
gz_header FAR * gz_headerp
struct z_stream_s z_stream
voidpf alloc_func OF((voidpf opaque, uInt items, uInt size))
struct gz_header_s gz_header
ZEXTERN int ZEXPORTVA gzprintf Z_ARG((gzFile file, const char *format,...))
const char *ZEXPORT zlibVersion()
uLong ZEXPORT zlibCompileFlags()
const char *ZEXPORT zError(int err)