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
169 #define Z_PARTIAL_FLUSH 1
170 #define Z_SYNC_FLUSH 2
171 #define Z_FULL_FLUSH 3
178 #define Z_STREAM_END 1
179 #define Z_NEED_DICT 2
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 *);
1102 in_func in,
void FAR *in_desc,
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))
1848 # define gzgetc(g) \
1849 ((g)->have ? ((g)->have--, (g)->pos++, *((g)->next)++) : (gzgetc)(g))
1868 #if !defined(ZLIB_INTERNAL) && defined(Z_WANT64)
1869 # ifdef Z_PREFIX_SET
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
1922 #if defined(_WIN32) && !defined(Z_SOLO)
1926 #if defined(STDC) || defined(Z_HAVE_STDARG_H)
ZEXTERN int ZEXPORT deflateInit_(z_streamp strm, int level, const char *version, int stream_size)
ZEXTERN int ZEXPORT deflatePrime(z_streamp strm, int bits, int value)
ZEXTERN int ZEXPORT deflateResetKeep(z_streamp)
ZEXTERN int ZEXPORT gzdirect(gzFile file)
ZEXTERN int ZEXPORT inflateSync(z_streamp strm)
ZEXTERN z_size_t ZEXPORT gzfwrite(voidpc buf, z_size_t size, z_size_t nitems, gzFile file)
ZEXTERN int ZEXPORT inflateEnd(z_streamp strm)
ZEXTERN int ZEXPORT inflate(z_streamp strm, int flush)
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 deflateCopy(z_streamp dest, z_streamp source)
ZEXTERN int ZEXPORT inflateCopy(z_streamp dest, z_streamp source)
ZEXTERN int ZEXPORT uncompress(Bytef *dest, uLongf *destLen, const Bytef *source, uLong sourceLen)
ZEXTERN const char *ZEXPORT zlibVersion(void)
ZEXTERN const char *ZEXPORT gzerror(gzFile file, int *errnum)
ZEXTERN int ZEXPORT gzputs(gzFile file, const char *s)
voidpf(* alloc_func)(voidpf opaque, uInt items, uInt size)
ZEXTERN char *ZEXPORT gzgets(gzFile file, char *buf, int len)
ZEXTERN int ZEXPORT inflateValidate(z_streamp, int)
uLong ZEXPORT crc32_combine_gen64(z_off64_t len2)
ZEXTERN z_off_t ZEXPORT gztell(gzFile)
ZEXTERN int ZEXPORT inflateReset(z_streamp strm)
unsigned(* in_func)(void FAR *, z_const unsigned char FAR *FAR *)
typedef int(ZCALLBACK *close_file_func) OF((voidpf opaque
ZEXTERN int ZEXPORT deflatePending(z_streamp strm, unsigned *pending, int *bits)
ZEXTERN gzFile ZEXPORT gzdopen(int fd, const char *mode)
struct gz_header_s gz_header
gz_header FAR * gz_headerp
ZEXTERN uLong ZEXPORT crc32_combine(uLong, uLong, z_off_t)
ZEXTERN int ZEXPORT gzclose(gzFile file)
ZEXTERN int ZEXPORT deflateTune(z_streamp strm, int good_length, int max_lazy, int nice_length, int max_chain)
ZEXTERN int ZEXPORT gzread(gzFile file, voidp buf, unsigned len)
ZEXTERN uLong ZEXPORT crc32(uLong crc, const Bytef *buf, uInt len)
struct internal_state FAR * state
ZEXTERN int ZEXPORT inflateSyncPoint(z_streamp)
ZEXTERN int ZEXPORT uncompress2(Bytef *dest, uLongf *destLen, const Bytef *source, uLong *sourceLen)
ZEXTERN int ZEXPORTVA gzprintf(gzFile file, const char *format,...)
ZEXTERN int ZEXPORT gzflush(gzFile file, int flush)
ZEXTERN uLong ZEXPORT crc32_combine_gen(z_off_t)
ZEXTERN gzFile ZEXPORT gzopen(const char *, const char *)
ZEXTERN int ZEXPORT gzeof(gzFile file)
ZEXTERN int ZEXPORT inflateGetDictionary(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 inflateGetHeader(z_streamp strm, gz_headerp head)
ZEXTERN unsigned long ZEXPORT inflateCodesUsed(z_streamp)
ZEXTERN uLong ZEXPORT crc32_z(uLong crc, const Bytef *buf, z_size_t len)
ZEXTERN uLong ZEXPORT adler32_combine(uLong, uLong, z_off_t)
int(* out_func)(void FAR *, unsigned char FAR *, unsigned)
ZEXTERN int ZEXPORT gzungetc(int c, gzFile file)
ZEXTERN z_off_t ZEXPORT gzoffset(gzFile)
ZEXTERN int ZEXPORT gzclose_r(gzFile file)
ZEXTERN uLong ZEXPORT compressBound(uLong sourceLen)
ZEXTERN int ZEXPORT compress2(Bytef *dest, uLongf *destLen, const Bytef *source, uLong sourceLen, int level)
ZEXTERN const char *ZEXPORT zError(int)
ZEXTERN int ZEXPORT deflateGetDictionary(z_streamp strm, Bytef *dictionary, uInt *dictLength)
ZEXTERN uLong ZEXPORT adler32(uLong adler, const Bytef *buf, uInt len)
uLong ZEXPORT adler32_combine64(uLong adler1, uLong adler2, z_off64_t len2)
ZEXTERN int ZEXPORT inflateBackInit_(z_streamp strm, int windowBits, unsigned char FAR *window, const char *version, int stream_size)
ZEXTERN int ZEXPORT deflateEnd(z_streamp strm)
ZEXTERN int ZEXPORT inflateInit_(z_streamp strm, const char *version, int stream_size)
ZEXTERN int ZEXPORT compress(Bytef *dest, uLongf *destLen, const Bytef *source, uLong sourceLen)
ZEXTERN int ZEXPORT inflateResetKeep(z_streamp)
uLong ZEXPORT crc32_combine64(uLong crc1, uLong crc2, z_off64_t len2)
ZEXTERN int ZEXPORT gzwrite(gzFile file, voidpc buf, unsigned len)
ZEXTERN int ZEXPORT deflateParams(z_streamp strm, int level, int strategy)
ZEXTERN z_off64_t ZEXPORT gztell64(gzFile)
ZEXTERN int ZEXPORT gzgetc_(gzFile file)
ZEXTERN int ZEXPORT inflateBack(z_streamp strm, in_func in, void FAR *in_desc, out_func out, void FAR *out_desc)
ZEXTERN uLong ZEXPORT crc32_combine_op(uLong crc1, uLong crc2, uLong op)
ZEXTERN int ZEXPORT deflate(z_streamp strm, int flush)
ZEXTERN z_off64_t ZEXPORT gzseek64(gzFile, z_off64_t, int)
ZEXTERN int ZEXPORT inflateUndermine(z_streamp, int)
ZEXTERN int ZEXPORT gzclose_w(gzFile file)
ZEXTERN int ZEXPORT gzputc(gzFile file, int c)
ZEXTERN uLong ZEXPORT deflateBound(z_streamp strm, uLong sourceLen)
ZEXTERN int ZEXPORT gzrewind(gzFile file)
ZEXTERN int ZEXPORT gzsetparams(gzFile file, int level, int strategy)
ZEXTERN int ZEXPORT inflatePrime(z_streamp strm, int bits, int value)
ZEXTERN z_off_t ZEXPORT gzseek(gzFile, z_off_t, int)
ZEXTERN long ZEXPORT inflateMark(z_streamp strm)
struct z_stream_s z_stream
ZEXTERN z_off64_t ZEXPORT gzoffset64(gzFile)
ZEXTERN void ZEXPORT gzclearerr(gzFile file)
ZEXTERN int ZEXPORT inflateBackEnd(z_streamp strm)
void(* free_func)(voidpf opaque, voidpf address)
ZEXTERN int ZEXPORT deflateSetDictionary(z_streamp strm, const Bytef *dictionary, uInt dictLength)
ZEXTERN int ZEXPORT deflateReset(z_streamp strm)
ZEXTERN int ZEXPORT inflateInit2_(z_streamp strm, int windowBits, const char *version, int stream_size)
ZEXTERN int ZEXPORT gzbuffer(gzFile file, unsigned size)
ZEXTERN const z_crc_t FAR *ZEXPORT get_crc_table(void)
ZEXTERN int ZEXPORT inflateReset2(z_streamp strm, int windowBits)
ZEXTERN uLong ZEXPORT zlibCompileFlags(void)
ZEXTERN uLong ZEXPORT adler32_z(uLong adler, const Bytef *buf, z_size_t len)
ZEXTERN int ZEXPORT inflateSetDictionary(z_streamp strm, const Bytef *dictionary, uInt dictLength)
ZEXTERN int ZEXPORT deflateSetHeader(z_streamp strm, gz_headerp head)
ZEXTERN gzFile ZEXPORT gzopen64(const char *, const char *)