40 #define ZLIB_VERSION "1.1.4"
63 typedef voidpf (*alloc_func) OF((voidpf opaque, uInt items, uInt size));
64 typedef
void (*free_func) OF((voidpf opaque, voidpf address));
78 struct internal_state FAR *state;
126 #define Z_PARTIAL_FLUSH 1
127 #define Z_SYNC_FLUSH 2
128 #define Z_FULL_FLUSH 3
133 #define Z_STREAM_END 1
134 #define Z_NEED_DICT 2
136 #define Z_STREAM_ERROR (-2)
137 #define Z_DATA_ERROR (-3)
138 #define Z_MEM_ERROR (-4)
139 #define Z_BUF_ERROR (-5)
140 #define Z_VERSION_ERROR (-6)
145 #define Z_NO_COMPRESSION 0
146 #define Z_BEST_SPEED 1
147 #define Z_BEST_COMPRESSION 9
148 #define Z_DEFAULT_COMPRESSION (-1)
152 #define Z_HUFFMAN_ONLY 2
153 #define Z_DEFAULT_STRATEGY 0
166 #define zlib_version zlibVersion()
171 ZEXTERN
const char * ZEXPORT zlibVersion OF((
void));
201 ZEXTERN
int ZEXPORT deflate OF((z_streamp strm,
int flush));
279 ZEXTERN
int ZEXPORT deflateEnd OF((z_streamp strm));
314 ZEXTERN
int ZEXPORT inflate OF((z_streamp strm,
int flush));
383 ZEXTERN
int ZEXPORT inflateEnd OF((z_streamp strm));
444 ZEXTERN
int ZEXPORT deflateSetDictionary OF((z_streamp strm,
445 const Bytef *dictionary,
480 ZEXTERN
int ZEXPORT deflateCopy OF((z_streamp dest,
498 ZEXTERN
int ZEXPORT deflateReset OF((z_streamp strm));
509 ZEXTERN
int ZEXPORT deflateParams OF((z_streamp strm,
553 ZEXTERN
int ZEXPORT inflateSetDictionary OF((z_streamp strm,
554 const Bytef *dictionary,
572 ZEXTERN
int ZEXPORT inflateSync OF((z_streamp strm));
587 ZEXTERN
int ZEXPORT inflateReset OF((z_streamp strm));
608 ZEXTERN
int ZEXPORT compress OF((Bytef *dest, uLongf *destLen,
609 const Bytef *source, uLong sourceLen));
623 ZEXTERN
int ZEXPORT compress2 OF((Bytef *dest, uLongf *destLen,
624 const Bytef *source, uLong sourceLen,
638 ZEXTERN
int ZEXPORT uncompress OF((Bytef *dest, uLongf *destLen,
639 const Bytef *source, uLong sourceLen));
657 typedef voidp gzFile;
659 ZEXTERN gzFile ZEXPORT zlib_gzopen OF((
const char *path,
const char *mode));
675 ZEXTERN gzFile ZEXPORT zlib_gzdopen OF((
int fd,
const char *mode));
688 ZEXTERN
int ZEXPORT zlib_gzsetparams OF((gzFile file,
int level,
int strategy));
696 ZEXTERN
int ZEXPORT zlib_gzread OF((gzFile file, voidp buf,
unsigned len));
704 ZEXTERN
int ZEXPORT zlib_gzwrite OF((gzFile file,
705 const voidp buf,
unsigned len));
712 ZEXTERN
int ZEXPORTVA zlib_gzprintf OF((gzFile file,
const char *format, ...));
719 ZEXTERN
int ZEXPORT zlib_gzputs OF((gzFile file,
const char *s));
726 ZEXTERN
char * ZEXPORT zlib_gzgets OF((gzFile file,
char *buf,
int len));
735 ZEXTERN
int ZEXPORT zlib_gzputc OF((gzFile file,
int c));
741 ZEXTERN
int ZEXPORT zlib_gzgetc OF((gzFile file));
747 ZEXTERN
int ZEXPORT zlib_gzflush OF((gzFile file,
int flush));
757 ZEXTERN z_off_t ZEXPORT zlib_gzseek OF((gzFile file,
758 z_off_t offset,
int whence));
775 ZEXTERN
int ZEXPORT zlib_gzrewind OF((gzFile file));
782 ZEXTERN z_off_t ZEXPORT zlib_gztell OF((gzFile file));
791 ZEXTERN
int ZEXPORT zlib_gzeof OF((gzFile file));
797 ZEXTERN
int ZEXPORT zlib_gzclose OF((gzFile file));
804 ZEXTERN
const char * ZEXPORT zlib_gzerror OF((gzFile file,
int *errnum));
821 ZEXTERN uLong ZEXPORT adler32 OF((uLong adler,
const Bytef *buf, uInt len));
838 ZEXTERN uLong ZEXPORT crc32 OF((uLong crc,
const Bytef *buf, uInt len));
860 ZEXTERN
int ZEXPORT deflateInit_ OF((z_streamp strm,
int level,
861 const char *version,
int stream_size));
862 ZEXTERN
int ZEXPORT inflateInit_ OF((z_streamp strm,
863 const char *version,
int stream_size));
864 ZEXTERN
int ZEXPORT deflateInit2_ OF((z_streamp strm,
int level,
int method,
865 int windowBits,
int memLevel,
866 int strategy,
const char *version,
868 ZEXTERN
int ZEXPORT inflateInit2_ OF((z_streamp strm,
int windowBits,
869 const char *version,
int stream_size));
870 #define deflateInit(strm, level) \
871 deflateInit_((strm), (level), ZLIB_VERSION, sizeof(z_stream))
872 #define inflateInit(strm) \
873 inflateInit_((strm), ZLIB_VERSION, sizeof(z_stream))
874 #define deflateInit2(strm, level, method, windowBits, memLevel, strategy) \
875 deflateInit2_((strm),(level),(method),(windowBits),(memLevel),\
876 (strategy), ZLIB_VERSION, sizeof(z_stream))
877 #define inflateInit2(strm, windowBits) \
878 inflateInit2_((strm), (windowBits), ZLIB_VERSION, sizeof(z_stream))
881 #if !defined(_Z_UTIL_H) && !defined(NO_DUMMY_DECL)
885 ZEXTERN
const char * ZEXPORT zlib_zError OF((
int err));
886 ZEXTERN
int ZEXPORT inflateSyncPoint OF((z_streamp z));
887 ZEXTERN
const uLongf * ZEXPORT get_crc_table OF((
void));