summaryrefslogtreecommitdiff
path: root/zlib.h
diff options
context:
space:
mode:
Diffstat (limited to 'zlib.h')
-rw-r--r--zlib.h37
1 files changed, 31 insertions, 6 deletions
diff --git a/zlib.h b/zlib.h
index b13ca6f..9bb6931 100644
--- a/zlib.h
+++ b/zlib.h
@@ -1,7 +1,7 @@
1/* zlib.h -- interface of the 'zlib' general purpose compression library 1/* zlib.h -- interface of the 'zlib' general purpose compression library
2 version 1.2.2.2, December 30th, 2004 2 version 1.2.2.3, May 27th, 2005
3 3
4 Copyright (C) 1995-2004 Jean-loup Gailly and Mark Adler 4 Copyright (C) 1995-2005 Jean-loup Gailly and Mark Adler
5 5
6 This software is provided 'as-is', without any express or implied 6 This software is provided 'as-is', without any express or implied
7 warranty. In no event will the authors be held liable for any damages 7 warranty. In no event will the authors be held liable for any damages
@@ -37,8 +37,8 @@
37extern "C" { 37extern "C" {
38#endif 38#endif
39 39
40#define ZLIB_VERSION "1.2.2.2" 40#define ZLIB_VERSION "1.2.2.3"
41#define ZLIB_VERNUM 0x1222 41#define ZLIB_VERNUM 0x1223
42 42
43/* 43/*
44 The 'zlib' compression library provides in-memory compression and 44 The 'zlib' compression library provides in-memory compression and
@@ -556,7 +556,9 @@ ZEXTERN int ZEXPORT deflateSetDictionary OF((z_streamp strm,
556 deflateInit or deflateInit2, a part of the dictionary may in effect be 556 deflateInit or deflateInit2, a part of the dictionary may in effect be
557 discarded, for example if the dictionary is larger than the window size in 557 discarded, for example if the dictionary is larger than the window size in
558 deflate or deflate2. Thus the strings most likely to be useful should be 558 deflate or deflate2. Thus the strings most likely to be useful should be
559 put at the end of the dictionary, not at the front. 559 put at the end of the dictionary, not at the front. In addition, the
560 current implementation of deflate will use at most the window size minus
561 262 bytes of the provided dictionary.
560 562
561 Upon return of this function, strm->adler is set to the adler32 value 563 Upon return of this function, strm->adler is set to the adler32 value
562 of the dictionary; the decompressor may later use this value to determine 564 of the dictionary; the decompressor may later use this value to determine
@@ -622,6 +624,23 @@ ZEXTERN int ZEXPORT deflateParams OF((z_streamp strm,
622 if strm->avail_out was zero. 624 if strm->avail_out was zero.
623*/ 625*/
624 626
627ZEXTERN int ZEXPORT deflateTune OF((z_streamp strm,
628 int good_length,
629 int max_lazy,
630 int nice_length,
631 int max_chain));
632/*
633 Fine tune deflate's internal compression parameters. This should only be
634 used by someone who understands the algorithm used by zlib's deflate for
635 searching for the best matching string, and even then only by the most
636 fanatic optimizer trying to squeeze out the last compressed bit for their
637 specific input data. Read the deflate.c source code for the meaning of the
638 max_lazy, good_length, nice_length, and max_chain parameters.
639
640 deflateTune() can be called after deflateInit() or deflateInit2(), and
641 returns Z_OK on success, or Z_STREAM_ERROR for an invalid deflate stream.
642 */
643
625ZEXTERN uLong ZEXPORT deflateBound OF((z_streamp strm, 644ZEXTERN uLong ZEXPORT deflateBound OF((z_streamp strm,
626 uLong sourceLen)); 645 uLong sourceLen));
627/* 646/*
@@ -703,7 +722,7 @@ ZEXTERN int ZEXPORT inflateInit2 OF((z_streamp strm,
703 windowBits can also be greater than 15 for optional gzip decoding. Add 722 windowBits can also be greater than 15 for optional gzip decoding. Add
704 32 to windowBits to enable zlib and gzip decoding with automatic header 723 32 to windowBits to enable zlib and gzip decoding with automatic header
705 detection, or add 16 to decode only the gzip format (the zlib format will 724 detection, or add 16 to decode only the gzip format (the zlib format will
706 return a Z_DATA_ERROR. If a gzip stream is being decoded, strm->adler is 725 return a Z_DATA_ERROR). If a gzip stream is being decoded, strm->adler is
707 a crc32 instead of an adler32. 726 a crc32 instead of an adler32.
708 727
709 inflateInit2 returns Z_OK if success, Z_MEM_ERROR if there was not enough 728 inflateInit2 returns Z_OK if success, Z_MEM_ERROR if there was not enough
@@ -1185,6 +1204,12 @@ ZEXTERN int ZEXPORT gzeof OF((gzFile file));
1185 input stream, otherwise zero. 1204 input stream, otherwise zero.
1186*/ 1205*/
1187 1206
1207ZEXTERN int ZEXPORT gzdirect OF((gzFile file));
1208/*
1209 Returns 1 if file is being read directly without decompression, otherwise
1210 zero.
1211*/
1212
1188ZEXTERN int ZEXPORT gzclose OF((gzFile file)); 1213ZEXTERN int ZEXPORT gzclose OF((gzFile file));
1189/* 1214/*
1190 Flushes all pending output if necessary, closes the compressed file 1215 Flushes all pending output if necessary, closes the compressed file