40#define ZLIB_VERSION "1.3.1"
41#define ZLIB_VERNUM 0x1310
42#define ZLIB_VER_MAJOR 1
43#define ZLIB_VER_MINOR 3
44#define ZLIB_VER_REVISION 1
45#define ZLIB_VER_SUBREVISION 0
81typedef voidpf (*
alloc_func)(voidpf opaque, uInt items, uInt size);
82typedef void (*
free_func)(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,
889 const Bytef *dictionary,
1098 z_const
unsigned char FAR * FAR *);
1099typedef int (*
out_func)(
void FAR *,
unsigned char FAR *, unsigned);
1102 in_func in,
void FAR *in_desc,
1232ZEXTERN
int ZEXPORT
compress(Bytef *dest, uLongf *destLen,
1233 const Bytef *source, uLong sourceLen);
1247ZEXTERN
int ZEXPORT
compress2(Bytef *dest, uLongf *destLen,
1248 const Bytef *source, uLong sourceLen,
1270ZEXTERN
int ZEXPORT
uncompress(Bytef *dest, uLongf *destLen,
1271 const Bytef *source, uLong sourceLen);
1288ZEXTERN
int ZEXPORT
uncompress2(Bytef *dest, uLongf *destLen,
1289 const Bytef *source, uLong *sourceLen);
1395ZEXTERN
int ZEXPORT
gzread(
gzFile file, voidp buf,
unsigned len);
1425ZEXTERN z_size_t ZEXPORT
gzfread(voidp buf, z_size_t size, z_size_t nitems,
1451ZEXTERN
int ZEXPORT
gzwrite(
gzFile file, voidpc buf,
unsigned len);
1457ZEXTERN z_size_t ZEXPORT
gzfwrite(voidpc buf, z_size_t size,
1458 z_size_t nitems,
gzFile file);
1494ZEXTERN
char * ZEXPORT
gzgets(
gzFile file,
char *buf,
int len);
1659ZEXTERN
const char * ZEXPORT
gzerror(
gzFile file,
int *errnum);
1692ZEXTERN uLong ZEXPORT
adler32(uLong adler,
const Bytef *buf, uInt len);
1712ZEXTERN uLong ZEXPORT
adler32_z(uLong adler,
const Bytef *buf,
1730ZEXTERN uLong ZEXPORT
crc32(uLong crc,
const Bytef *buf, uInt len);
1748ZEXTERN uLong ZEXPORT
crc32_z(uLong crc,
const Bytef *buf,
1785 const char *version,
int stream_size);
1787 const char *version,
int stream_size);
1789 int windowBits,
int memLevel,
1790 int strategy,
const char *version,
1793 const char *version,
int stream_size);
1795 unsigned char FAR *window,
1796 const char *version,
1799# define z_deflateInit(strm, level) \
1800 deflateInit_((strm), (level), ZLIB_VERSION, (int)sizeof(z_stream))
1801# define z_inflateInit(strm) \
1802 inflateInit_((strm), ZLIB_VERSION, (int)sizeof(z_stream))
1803# define z_deflateInit2(strm, level, method, windowBits, memLevel, strategy) \
1804 deflateInit2_((strm),(level),(method),(windowBits),(memLevel),\
1805 (strategy), ZLIB_VERSION, (int)sizeof(z_stream))
1806# define z_inflateInit2(strm, windowBits) \
1807 inflateInit2_((strm), (windowBits), ZLIB_VERSION, \
1808 (int)sizeof(z_stream))
1809# define z_inflateBackInit(strm, windowBits, window) \
1810 inflateBackInit_((strm), (windowBits), (window), \
1811 ZLIB_VERSION, (int)sizeof(z_stream))
1813# define deflateInit(strm, level) \
1814 deflateInit_((strm), (level), ZLIB_VERSION, (int)sizeof(z_stream))
1815# define inflateInit(strm) \
1816 inflateInit_((strm), ZLIB_VERSION, (int)sizeof(z_stream))
1817# define deflateInit2(strm, level, method, windowBits, memLevel, strategy) \
1818 deflateInit2_((strm),(level),(method),(windowBits),(memLevel),\
1819 (strategy), ZLIB_VERSION, (int)sizeof(z_stream))
1820# define inflateInit2(strm, windowBits) \
1821 inflateInit2_((strm), (windowBits), ZLIB_VERSION, \
1822 (int)sizeof(z_stream))
1823# define inflateBackInit(strm, windowBits, window) \
1824 inflateBackInit_((strm), (windowBits), (window), \
1825 ZLIB_VERSION, (int)sizeof(z_stream))
1845# define z_gzgetc(g) \
1846 ((g)->have ? ((g)->have--, (g)->pos++, *((g)->next)++) : (gzgetc)(g))
1849 ((g)->have ? ((g)->have--, (g)->pos++, *((g)->next)++) : (gzgetc)(g))
1868#if !defined(ZLIB_INTERNAL) && defined(Z_WANT64)
1870# define z_gzopen z_gzopen64
1871# define z_gzseek z_gzseek64
1872# define z_gztell z_gztell64
1873# define z_gzoffset z_gzoffset64
1874# define z_adler32_combine z_adler32_combine64
1875# define z_crc32_combine z_crc32_combine64
1876# define z_crc32_combine_gen z_crc32_combine_gen64
1878# define gzopen gzopen64
1879# define gzseek gzseek64
1880# define gztell gztell64
1881# define gzoffset gzoffset64
1882# define adler32_combine adler32_combine64
1883# define crc32_combine crc32_combine64
1884# define crc32_combine_gen crc32_combine_gen64
1896 ZEXTERN
gzFile ZEXPORT
gzopen(
const char *,
const char *);
1914ZEXTERN
const char * ZEXPORT
zError(
int);
1922#if defined(_WIN32) && !defined(Z_SOLO)
1923ZEXTERN
gzFile ZEXPORT gzopen_w(
const wchar_t *path,
1926#if defined(STDC) || defined(Z_HAVE_STDARG_H)
1928ZEXTERN
int ZEXPORTVA gzvprintf(
gzFile file,
ZEXTERN z_off64_t ZEXPORT gztell64(gzFile)
ZEXTERN z_off64_t ZEXPORT gzoffset64(gzFile)
ZEXTERN z_off64_t ZEXPORT gzseek64(gzFile, z_off64_t, int)
ZEXTERN gzFile ZEXPORT gzopen64(const char *, const char *)
struct internal_state FAR * state
void(* free_func)(voidpf opaque, voidpf address)
ZEXTERN uLong ZEXPORT zlibCompileFlags(void)
ZEXTERN int ZEXPORT uncompress2(Bytef *dest, uLongf *destLen, const Bytef *source, uLong *sourceLen)
ZEXTERN int ZEXPORT gzsetparams(gzFile file, int level, int strategy)
ZEXTERN unsigned long ZEXPORT inflateCodesUsed(z_streamp)
ZEXTERN int ZEXPORTVA gzprintf(gzFile file, const char *format,...)
ZEXTERN int ZEXPORT inflateCopy(z_streamp dest, z_streamp source)
ZEXTERN int ZEXPORT inflateValidate(z_streamp, int)
ZEXTERN uLong ZEXPORT crc32_combine(uLong, uLong, z_off_t)
ZEXTERN z_off_t ZEXPORT gztell(gzFile)
ZEXTERN int ZEXPORT gzdirect(gzFile file)
ZEXTERN int ZEXPORT inflatePrime(z_streamp strm, int bits, int value)
ZEXTERN gzFile ZEXPORT gzopen(const char *, const char *)
ZEXTERN int ZEXPORT gzflush(gzFile file, int flush)
ZEXTERN int ZEXPORT deflateInit_(z_streamp strm, int level, const char *version, int stream_size)
ZEXTERN const char *ZEXPORT gzerror(gzFile file, int *errnum)
ZEXTERN int ZEXPORT deflateSetHeader(z_streamp strm, gz_headerp head)
ZEXTERN int ZEXPORT inflateReset2(z_streamp strm, int windowBits)
ZEXTERN int ZEXPORT inflateReset(z_streamp strm)
ZEXTERN int ZEXPORT gzread(gzFile file, voidp buf, unsigned len)
ZEXTERN uLong ZEXPORT adler32(uLong adler, const Bytef *buf, uInt len)
ZEXTERN int ZEXPORT gzclose_r(gzFile file)
ZEXTERN uLong ZEXPORT crc32_combine_gen(z_off_t)
ZEXTERN uLong ZEXPORT compressBound(uLong sourceLen)
gz_header FAR * gz_headerp
unsigned(* in_func)(void FAR *, z_const unsigned char FAR *FAR *)
ZEXTERN int ZEXPORT gzclose(gzFile file)
ZEXTERN int ZEXPORT inflateUndermine(z_streamp, int)
ZEXTERN int ZEXPORT gzputs(gzFile file, const char *s)
ZEXTERN int ZEXPORT deflateParams(z_streamp strm, int level, int strategy)
ZEXTERN long ZEXPORT inflateMark(z_streamp strm)
voidpf(* alloc_func)(voidpf opaque, uInt items, uInt size)
ZEXTERN int ZEXPORT gzwrite(gzFile file, voidpc buf, unsigned len)
ZEXTERN z_off_t ZEXPORT gzseek(gzFile, z_off_t, int)
ZEXTERN char *ZEXPORT gzgets(gzFile file, char *buf, int len)
ZEXTERN int ZEXPORT gzbuffer(gzFile file, unsigned size)
ZEXTERN uLong ZEXPORT adler32_z(uLong adler, const Bytef *buf, z_size_t len)
ZEXTERN const z_crc_t FAR *ZEXPORT get_crc_table(void)
ZEXTERN int ZEXPORT deflateResetKeep(z_streamp)
ZEXTERN int ZEXPORT deflateInit2_(z_streamp strm, int level, int method, int windowBits, int memLevel, int strategy, const char *version, int stream_size)
ZEXTERN int ZEXPORT inflateInit2_(z_streamp strm, int windowBits, const char *version, int stream_size)
ZEXTERN int ZEXPORT inflateBackEnd(z_streamp strm)
ZEXTERN int ZEXPORT inflateGetDictionary(z_streamp strm, Bytef *dictionary, uInt *dictLength)
ZEXTERN int ZEXPORT deflateReset(z_streamp strm)
ZEXTERN int ZEXPORT inflate(z_streamp strm, int flush)
ZEXTERN uLong ZEXPORT crc32_z(uLong crc, const Bytef *buf, z_size_t len)
ZEXTERN int ZEXPORT inflateEnd(z_streamp strm)
ZEXTERN int ZEXPORT inflateSync(z_streamp strm)
ZEXTERN int ZEXPORT deflateEnd(z_streamp strm)
ZEXTERN int ZEXPORT gzgetc_(gzFile file)
ZEXTERN int ZEXPORT inflateInit_(z_streamp strm, const char *version, int stream_size)
ZEXTERN int ZEXPORT inflateBackInit_(z_streamp strm, int windowBits, unsigned char FAR *window, const char *version, int stream_size)
ZEXTERN int ZEXPORT gzeof(gzFile file)
ZEXTERN void ZEXPORT gzclearerr(gzFile file)
ZEXTERN int ZEXPORT gzclose_w(gzFile file)
ZEXTERN int ZEXPORT compress2(Bytef *dest, uLongf *destLen, const Bytef *source, uLong sourceLen, int level)
ZEXTERN int ZEXPORT inflateGetHeader(z_streamp strm, gz_headerp head)
ZEXTERN const char *ZEXPORT zlibVersion(void)
ZEXTERN uLong ZEXPORT deflateBound(z_streamp strm, uLong sourceLen)
ZEXTERN int ZEXPORT inflateSetDictionary(z_streamp strm, const Bytef *dictionary, uInt dictLength)
ZEXTERN uLong ZEXPORT crc32(uLong crc, const Bytef *buf, uInt len)
int(* out_func)(void FAR *, unsigned char FAR *, unsigned)
ZEXTERN int ZEXPORT uncompress(Bytef *dest, uLongf *destLen, const Bytef *source, uLong sourceLen)
struct z_stream_s z_stream
struct gz_header_s gz_header
ZEXTERN int ZEXPORT inflateResetKeep(z_streamp)
ZEXTERN int ZEXPORT gzungetc(int c, gzFile file)
ZEXTERN uLong ZEXPORT crc32_combine_op(uLong crc1, uLong crc2, uLong op)
ZEXTERN gzFile ZEXPORT gzdopen(int fd, const char *mode)
ZEXTERN z_off_t ZEXPORT gzoffset(gzFile)
ZEXTERN int ZEXPORT deflateCopy(z_streamp dest, z_streamp source)
ZEXTERN int ZEXPORT gzrewind(gzFile file)
ZEXTERN int ZEXPORT inflateBack(z_streamp strm, in_func in, void FAR *in_desc, out_func out, void FAR *out_desc)
ZEXTERN z_size_t ZEXPORT gzfwrite(voidpc buf, z_size_t size, z_size_t nitems, gzFile file)
ZEXTERN int ZEXPORT deflateTune(z_streamp strm, int good_length, int max_lazy, int nice_length, int max_chain)
ZEXTERN int ZEXPORT deflatePrime(z_streamp strm, int bits, int value)
ZEXTERN int ZEXPORT deflatePending(z_streamp strm, unsigned *pending, int *bits)
ZEXTERN int ZEXPORT deflate(z_streamp strm, int flush)
ZEXTERN uLong ZEXPORT adler32_combine(uLong, uLong, z_off_t)
ZEXTERN int ZEXPORT compress(Bytef *dest, uLongf *destLen, const Bytef *source, uLong sourceLen)
ZEXTERN int ZEXPORT deflateSetDictionary(z_streamp strm, const Bytef *dictionary, uInt dictLength)
ZEXTERN int ZEXPORT gzputc(gzFile file, int c)
ZEXTERN const char *ZEXPORT zError(int)
ZEXTERN int ZEXPORT deflateGetDictionary(z_streamp strm, Bytef *dictionary, uInt *dictLength)
ZEXTERN z_size_t ZEXPORT gzfread(voidp buf, z_size_t size, z_size_t nitems, gzFile file)
ZEXTERN int ZEXPORT inflateSyncPoint(z_streamp)
ZEXTERN uLong ZEXPORT crc32_combine64(uLong, uLong, z_off_t)
ZEXTERN uLong ZEXPORT crc32_combine_gen64(z_off_t)
ZEXTERN uLong ZEXPORT adler32_combine64(uLong, uLong, z_off_t)