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
81 typedef voidpf (*alloc_func)
OF((voidpf opaque, uInt items, uInt size));
82 typedef
void (*free_func)
OF((voidpf opaque, voidpf address));
96 struct internal_state FAR *
state;
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()
250 ZEXTERN
int ZEXPORT
deflate OF((z_streamp strm,
int flush));
400 ZEXTERN
int ZEXPORT
inflate OF((z_streamp strm,
int flush));
612 const Bytef *dictionary,
885 const Bytef *dictionary,
1092 typedef unsigned (*in_func)
OF((
void FAR *,
1093 z_const
unsigned char FAR * FAR *));
1094 typedef
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));
1227 ZEXTERN
int ZEXPORT
compress OF((Bytef *dest, uLongf *destLen,
1228 const Bytef *source, uLong sourceLen));
1242 ZEXTERN
int ZEXPORT
compress2 OF((Bytef *dest, uLongf *destLen,
1243 const Bytef *source, uLong sourceLen,
1265 ZEXTERN
int ZEXPORT
uncompress OF((Bytef *dest, uLongf *destLen,
1266 const Bytef *source, uLong sourceLen));
1283 ZEXTERN
int ZEXPORT
uncompress2 OF((Bytef *dest, uLongf *destLen,
1284 const Bytef *source, uLong *sourceLen));
1340 ZEXTERN gzFile ZEXPORT
gzdopen OF((
int fd,
const char *mode));
1390 ZEXTERN
int ZEXPORT
gzread OF((gzFile
file, voidp buf,
unsigned len));
1420 ZEXTERN z_size_t ZEXPORT
gzfread OF((voidp buf, z_size_t size, z_size_t nitems,
1447 voidpc buf,
unsigned len));
1454 ZEXTERN z_size_t ZEXPORT
gzfwrite OF((voidpc buf, z_size_t size,
1455 z_size_t nitems, gzFile
file));
1483 ZEXTERN
int ZEXPORT
gzputs OF((gzFile
file,
const char *
s));
1655 ZEXTERN
const char * ZEXPORT
gzerror OF((gzFile
file,
int *errnum));
1688 ZEXTERN uLong ZEXPORT
adler32 OF((uLong adler,
const Bytef *buf, uInt
len));
1707 ZEXTERN uLong ZEXPORT
adler32_z OF((uLong adler,
const Bytef *buf,
1725 ZEXTERN uLong ZEXPORT
crc32 OF((uLong crc,
const Bytef *buf, uInt
len));
1742 ZEXTERN uLong ZEXPORT
crc32_z OF((uLong adler,
const Bytef *buf,
1765 const char *
version,
int stream_size));
1767 const char *
version,
int stream_size));
1768 ZEXTERN
int ZEXPORT
deflateInit2_ OF((z_streamp strm,
int level,
int method,
1769 int windowBits,
int memLevel,
1770 int strategy,
const char *
version,
1773 const char *
version,
int stream_size));
1775 unsigned char FAR *window,
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))
1828 # define gzgetc(g) \
1829 ((g)->have ? ((g)->have--, (g)->pos++, *((g)->next)++) : (gzgetc)(g))
1839 ZEXTERN gzFile ZEXPORT
gzopen64 OF((
const char *,
const char *));
1840 ZEXTERN z_off64_t ZEXPORT
gzseek64 OF((gzFile, z_off64_t,
int));
1841 ZEXTERN z_off64_t ZEXPORT
gztell64 OF((gzFile));
1847 #if !defined(ZLIB_INTERNAL) && defined(Z_WANT64)
1848 # ifdef Z_PREFIX_SET
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
1864 ZEXTERN gzFile ZEXPORT
gzopen64 OF((
const char *,
const char *));
1865 ZEXTERN z_off_t ZEXPORT
gzseek64 OF((gzFile, z_off_t,
int));
1866 ZEXTERN z_off_t ZEXPORT
gztell64 OF((gzFile));
1872 ZEXTERN gzFile ZEXPORT
gzopen OF((
const char *,
const char *));
1873 ZEXTERN z_off_t ZEXPORT
gzseek OF((gzFile, z_off_t,
int));
1874 ZEXTERN z_off_t ZEXPORT
gztell OF((gzFile));
1875 ZEXTERN z_off_t ZEXPORT
gzoffset OF((gzFile));
1888 ZEXTERN
const char * ZEXPORT
zError OF((
int));
1896 #if (defined(_WIN32) || defined(__CYGWIN__)) && !defined(Z_SOLO)
1897 ZEXTERN gzFile ZEXPORT gzopen_w
OF((
const wchar_t *path,
1900 #if defined(STDC) || defined(Z_HAVE_STDARG_H)
1902 ZEXTERN
int ZEXPORTVA gzvprintf
Z_ARG((gzFile
file,