48 #define ZLIB_VERSION "1.2.5"
49 #define ZLIB_VERNUM 0x1250
50 #define ZLIB_VER_MAJOR 1
51 #define ZLIB_VER_MINOR 2
52 #define ZLIB_VER_REVISION 5
53 #define ZLIB_VER_SUBREVISION 0
173 #define Z_PARTIAL_FLUSH 1
174 #define Z_SYNC_FLUSH 2
175 #define Z_FULL_FLUSH 3
182 #define Z_STREAM_END 1
183 #define Z_NEED_DICT 2
185 #define Z_STREAM_ERROR (-2)
186 #define Z_DATA_ERROR (-3)
187 #define Z_MEM_ERROR (-4)
188 #define Z_BUF_ERROR (-5)
189 #define Z_VERSION_ERROR (-6)
194 #define Z_NO_COMPRESSION 0
195 #define Z_BEST_SPEED 1
196 #define Z_BEST_COMPRESSION 9
197 #define Z_DEFAULT_COMPRESSION (-1)
201 #define Z_HUFFMAN_ONLY 2
204 #define Z_DEFAULT_STRATEGY 0
209 #define Z_ASCII Z_TEXT
218 #define zlib_version zlibVersion()
587 const Bytef *dictionary,
793 const Bytef *dictionary,
978 typedef unsigned (*in_func)
OF((
void FAR *,
unsigned char FAR * FAR *));
979 typedef
int (*out_func)
OF((
void FAR *,
unsigned char FAR *,
unsigned));
982 in_func in,
void FAR *in_desc,
983 out_func out,
void FAR *out_desc));
1260 voidpc buf,
unsigned len));
1543 const char *version,
int stream_size));
1545 int windowBits,
int memLevel,
1546 int strategy,
const char *version,
1549 const char *version,
int stream_size));
1551 unsigned char FAR *window,
1552 const char *version,
1554 #define deflateInit(strm, level) \
1555 deflateInit_((strm), (level), ZLIB_VERSION, sizeof(z_stream))
1556 #define inflateInit(strm) \
1557 inflateInit_((strm), ZLIB_VERSION, sizeof(z_stream))
1558 #define deflateInit2(strm, level, method, windowBits, memLevel, strategy) \
1559 deflateInit2_((strm),(level),(method),(windowBits),(memLevel),\
1560 (strategy), ZLIB_VERSION, sizeof(z_stream))
1561 #define inflateInit2(strm, windowBits) \
1562 inflateInit2_((strm), (windowBits), ZLIB_VERSION, sizeof(z_stream))
1563 #define inflateBackInit(strm, windowBits, window) \
1564 inflateBackInit_((strm), (windowBits), (window), \
1565 ZLIB_VERSION, sizeof(z_stream))
1573 #if defined(_LARGEFILE64_SOURCE) && _LFS64_LARGEFILE-0
1582 #if !defined(ZLIB_INTERNAL) && _FILE_OFFSET_BITS-0 == 64 && _LFS64_LARGEFILE-0
1583 # define gzopen gzopen64
1584 # define gzseek gzseek64
1585 # define gztell gztell64
1586 # define gzoffset gzoffset64
1587 # define adler32_combine adler32_combine64
1588 # define crc32_combine crc32_combine64
1589 # ifdef _LARGEFILE64_SOURCE
1607 #if !defined(ZUTIL_H) && !defined(NO_DUMMY_DECL)
int ZEXPORT gzdirect(gzFile file)
int ZEXPORT deflateParams(z_streamp strm, int level, int strategy)
ABC_NAMESPACE_IMPL_END ABC_NAMESPACE_IMPL_START const unsigned long FAR *ZEXPORT get_crc_table()
int ZEXPORT inflateReset(z_streamp strm)
int ZEXPORT inflateBack(z_streamp strm, in_func in, void FAR *in_desc, out_func out, void FAR *out_desc)
int ZEXPORT gzeof(gzFile file)
z_off64_t ZEXPORT gzoffset64(gzFile file)
int ZEXPORT gzsetparams(gzFile file, int level, int strategy)
int ZEXPORT inflateInit_(z_streamp strm, const char *version, int stream_size)
z_off_t ZEXPORT gztell(gzFile file)
const char *ZEXPORT zlibVersion()
int ZEXPORT deflateInit2_(z_streamp strm, int level, int method, int windowBits, int memLevel, int strategy, const char *version, int stream_size)
uLong ZEXPORT deflateBound(z_streamp strm, uLong sourceLen)
int ZEXPORT deflateEnd(z_streamp strm)
struct gz_header_s gz_header
ABC_NAMESPACE_IMPL_START int ZEXPORT gzclose(gzFile file)
int ZEXPORT deflatePrime(z_streamp strm, int bits, int value)
gz_header FAR * gz_headerp
int ZEXPORT inflateBackInit_(z_streamp strm, int windowBits, unsigned char FAR *window, const char *version, int stream_size)
int ZEXPORT gzwrite(gzFile file, voidpc buf, unsigned len)
int ZEXPORT inflateReset2(z_streamp strm, int windowBits)
struct internal_state FAR * state
int ZEXPORT inflateSetDictionary(z_streamp strm, const Bytef *dictionary, uInt dictLength)
int ZEXPORT gzputc(gzFile file, int c)
int ZEXPORT inflateSyncPoint(z_streamp strm)
int ZEXPORT gzrewind(gzFile file)
z_off64_t ZEXPORT gztell64(gzFile file)
int ZEXPORT gzungetc(int c, gzFile file)
z_off_t ZEXPORT gzseek(gzFile file, z_off_t offset, int whence)
uLong ZEXPORT crc32_combine(uLong crc1, uLong crc2, z_off_t len2)
int ZEXPORT deflateCopy(z_streamp dest, z_streamp source)
int ZEXPORT deflateTune(z_streamp strm, int good_length, int max_lazy, int nice_length, int max_chain)
int ZEXPORT gzbuffer(gzFile file, unsigned size)
uLong ZEXPORT zlibCompileFlags()
int ZEXPORT gzclose_r(gzFile file)
gzFile ZEXPORT gzdopen(int fd, const char *mode)
uLong ZEXPORT compressBound(uLong sourceLen)
unsigned long ZEXPORT crc32(unsigned long crc, const unsigned char FAR *buf, uInt len)
int ZEXPORT inflateBackEnd(z_streamp strm)
int ZEXPORT gzclose_w(gzFile file)
#define ABC_NAMESPACE_HEADER_START
NAMESPACES ///.
int ZEXPORT gzputs(gzFile file, const char *str)
int ZEXPORT inflateSync(z_streamp strm)
uLong ZEXPORT adler32_combine64(uLong adler1, uLong adler2, z_off64_t len2)
int ZEXPORT inflateUndermine(z_streamp strm, int subvert)
int ZEXPORT compress(Bytef *dest, uLongf *destLen, const Bytef *source, uLong sourceLen)
#define ABC_NAMESPACE_HEADER_END
int ZEXPORT deflate(z_streamp strm, int flush)
int ZEXPORT inflateGetHeader(z_streamp strm, gz_headerp head)
char *ZEXPORT gzgets(gzFile file, char *buf, int len)
ABC_NAMESPACE_IMPL_START int ZEXPORT compress2(Bytef *dest, uLongf *destLen, const Bytef *source, uLong sourceLen, int level)
uLong ZEXPORT crc32_combine64(uLong crc1, uLong crc2, z_off64_t len2)
int ZEXPORTVA gzprintf(gzFile file, const char *format, int a1, int a2, int a3, int a4, int a5, int a6, int a7, int a8, int a9, int a10, int a11, int a12, int a13, int a14, int a15, int a16, int a17, int a18, int a19, int a20)
z_off_t ZEXPORT gzoffset(gzFile file)
int ZEXPORT gzgetc(gzFile file)
gzFile ZEXPORT gzopen(const char *path, const char *mode)
uLong ZEXPORT adler32(uLong adler, const Bytef *buf, uInt len)
int ZEXPORT inflateInit2_(z_streamp strm, int windowBits, const char *version, int stream_size)
const char *ZEXPORT gzerror(gzFile file, int *errnum)
void ZEXPORT gzclearerr(gzFile file)
int ZEXPORT gzflush(gzFile file, int flush)
int ZEXPORT inflatePrime(z_streamp strm, int bits, int value)
long ZEXPORT inflateMark(z_streamp strm)
int ZEXPORT deflateSetDictionary(z_streamp strm, const Bytef *dictionary, uInt dictLength)
int ZEXPORT deflateSetHeader(z_streamp strm, gz_headerp head)
int ZEXPORT deflateInit_(z_streamp strm, int level, const char *version, int stream_size)
ABC_NAMESPACE_IMPL_START int ZEXPORT uncompress(Bytef *dest, uLongf *destLen, const Bytef *source, uLong sourceLen)
int ZEXPORT inflate(z_streamp strm, int flush)
const char *ZEXPORT zError(int err)
int ZEXPORT inflateCopy(z_streamp dest, z_streamp source)
struct z_stream_s z_stream
int ZEXPORT deflateReset(z_streamp strm)
static char * bits(int n)
gzFile ZEXPORT gzopen64(const char *path, const char *mode)
int ZEXPORT gzread(gzFile file, voidp buf, unsigned len)
z_off64_t ZEXPORT gzseek64(gzFile file, z_off64_t offset, int whence)
uLong ZEXPORT adler32_combine(uLong adler1, uLong adler2, z_off_t len2)
voidpf alloc_func OF((voidpf opaque, uInt items, uInt size))
int ZEXPORT inflateEnd(z_streamp strm)