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));
87 z_const Bytef *next_in;
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() 220 ZEXTERN
const char * ZEXPORT zlibVersion OF((
void));
250 ZEXTERN
int ZEXPORT deflate OF((z_streamp strm,
int flush));
363 ZEXTERN
int ZEXPORT deflateEnd OF((z_streamp strm));
400 ZEXTERN
int ZEXPORT inflate OF((z_streamp strm,
int flush));
520 ZEXTERN
int ZEXPORT inflateEnd OF((z_streamp strm));
611 ZEXTERN
int ZEXPORT deflateSetDictionary OF((z_streamp strm,
612 const Bytef *dictionary,
655 ZEXTERN
int ZEXPORT deflateGetDictionary OF((z_streamp strm,
677 ZEXTERN
int ZEXPORT deflateCopy OF((z_streamp dest,
695 ZEXTERN
int ZEXPORT deflateReset OF((z_streamp strm));
706 ZEXTERN
int ZEXPORT deflateParams OF((z_streamp strm,
743 ZEXTERN
int ZEXPORT deflateTune OF((z_streamp strm,
760 ZEXTERN uLong ZEXPORT deflateBound OF((z_streamp strm,
775 ZEXTERN
int ZEXPORT deflatePending OF((z_streamp strm,
790 ZEXTERN
int ZEXPORT deflatePrime OF((z_streamp strm,
807 ZEXTERN
int ZEXPORT deflateSetHeader OF((z_streamp strm,
884 ZEXTERN
int ZEXPORT inflateSetDictionary OF((z_streamp strm,
885 const Bytef *dictionary,
907 ZEXTERN
int ZEXPORT inflateGetDictionary OF((z_streamp strm,
922 ZEXTERN
int ZEXPORT inflateSync OF((z_streamp strm));
941 ZEXTERN
int ZEXPORT inflateCopy OF((z_streamp dest,
957 ZEXTERN
int ZEXPORT inflateReset OF((z_streamp strm));
967 ZEXTERN
int ZEXPORT inflateReset2 OF((z_streamp strm,
981 ZEXTERN
int ZEXPORT inflatePrime OF((z_streamp strm,
1002 ZEXTERN
long ZEXPORT inflateMark OF((z_streamp strm));
1030 ZEXTERN
int ZEXPORT inflateGetHeader OF((z_streamp strm,
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));
1096 ZEXTERN
int ZEXPORT inflateBack OF((z_streamp strm,
1097 in_func in,
void FAR *in_desc,
1098 out_func out,
void FAR *out_desc));
1166 ZEXTERN
int ZEXPORT inflateBackEnd OF((z_streamp strm));
1174 ZEXTERN uLong ZEXPORT zlibCompileFlags OF((
void));
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,
1258 ZEXTERN uLong ZEXPORT compressBound OF((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));
1363 ZEXTERN
int ZEXPORT gzbuffer OF((gzFile file,
unsigned size));
1379 ZEXTERN
int ZEXPORT gzsetparams OF((gzFile file,
int level,
int strategy));
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,
1446 ZEXTERN
int ZEXPORT gzwrite OF((gzFile file,
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));
1468 ZEXTERN
int ZEXPORTVA gzprintf Z_ARG((gzFile file,
const char *format, ...));
1483 ZEXTERN
int ZEXPORT gzputs OF((gzFile file,
const char *s));
1491 ZEXTERN
char * ZEXPORT gzgets OF((gzFile file,
char *buf,
int len));
1504 ZEXTERN
int ZEXPORT gzputc OF((gzFile file,
int c));
1510 ZEXTERN
int ZEXPORT gzgetc OF((gzFile file));
1519 ZEXTERN
int ZEXPORT gzungetc OF((
int c, gzFile file));
1531 ZEXTERN
int ZEXPORT gzflush OF((gzFile file,
int flush));
1566 ZEXTERN
int ZEXPORT gzrewind OF((gzFile file));
1594 ZEXTERN
int ZEXPORT gzeof OF((gzFile file));
1609 ZEXTERN
int ZEXPORT gzdirect OF((gzFile file));
1630 ZEXTERN
int ZEXPORT gzclose OF((gzFile file));
1643 ZEXTERN
int ZEXPORT gzclose_r OF((gzFile file));
1644 ZEXTERN
int ZEXPORT gzclose_w OF((gzFile file));
1655 ZEXTERN
const char * ZEXPORT gzerror OF((gzFile file,
int *errnum));
1671 ZEXTERN
void ZEXPORT gzclearerr OF((gzFile file));
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,
1764 ZEXTERN
int ZEXPORT deflateInit_ OF((z_streamp strm,
int level,
1765 const char *version,
int stream_size));
1766 ZEXTERN
int ZEXPORT inflateInit_ OF((z_streamp strm,
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,
1772 ZEXTERN
int ZEXPORT inflateInit2_ OF((z_streamp strm,
int windowBits,
1773 const char *version,
int stream_size));
1774 ZEXTERN
int ZEXPORT inflateBackInit_ OF((z_streamp strm,
int windowBits,
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)) 1819 unsigned char *next;
1822 ZEXTERN
int ZEXPORT gzgetc_ OF((gzFile file));
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));
1842 ZEXTERN z_off64_t ZEXPORT gzoffset64 OF((gzFile));
1843 ZEXTERN uLong ZEXPORT adler32_combine64 OF((uLong, uLong, z_off64_t));
1844 ZEXTERN uLong ZEXPORT crc32_combine64 OF((uLong, uLong, z_off64_t));
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));
1867 ZEXTERN z_off_t ZEXPORT gzoffset64 OF((gzFile));
1868 ZEXTERN uLong ZEXPORT adler32_combine64 OF((uLong, uLong, z_off_t));
1869 ZEXTERN uLong ZEXPORT crc32_combine64 OF((uLong, uLong, z_off_t));
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));
1876 ZEXTERN uLong ZEXPORT adler32_combine OF((uLong, uLong, z_off_t));
1877 ZEXTERN uLong ZEXPORT crc32_combine OF((uLong, uLong, z_off_t));
1882 ZEXTERN uLong ZEXPORT adler32_combine OF((uLong, uLong, z_off_t));
1883 ZEXTERN uLong ZEXPORT crc32_combine OF((uLong, uLong, z_off_t));
1888 ZEXTERN
const char * ZEXPORT zError OF((
int));
1889 ZEXTERN
int ZEXPORT inflateSyncPoint OF((z_streamp));
1890 ZEXTERN
const z_crc_t FAR * ZEXPORT get_crc_table OF((
void));
1891 ZEXTERN
int ZEXPORT inflateUndermine OF((z_streamp,
int));
1892 ZEXTERN
int ZEXPORT inflateValidate OF((z_streamp,
int));
1893 ZEXTERN
unsigned long ZEXPORT inflateCodesUsed OF ((z_streamp));
1894 ZEXTERN
int ZEXPORT inflateResetKeep OF((z_streamp));
1895 ZEXTERN
int ZEXPORT deflateResetKeep OF((z_streamp));
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,
This file contains coefficients for finite difference computations.
Definition: fdCoefficient.h:16
Definition: deflate.h:100