diff options
Diffstat (limited to 'zlib.h')
-rw-r--r-- | zlib.h | 32 |
1 files changed, 24 insertions, 8 deletions
@@ -1,5 +1,5 @@ | |||
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.3, May 27th, 2005 | 2 | version 1.2.2.4, July 11th, 2005 |
3 | 3 | ||
4 | Copyright (C) 1995-2005 Jean-loup Gailly and Mark Adler | 4 | Copyright (C) 1995-2005 Jean-loup Gailly and Mark Adler |
5 | 5 | ||
@@ -37,8 +37,8 @@ | |||
37 | extern "C" { | 37 | extern "C" { |
38 | #endif | 38 | #endif |
39 | 39 | ||
40 | #define ZLIB_VERSION "1.2.2.3" | 40 | #define ZLIB_VERSION "1.2.2.4" |
41 | #define ZLIB_VERNUM 0x1223 | 41 | #define ZLIB_VERNUM 0x1224 |
42 | 42 | ||
43 | /* | 43 | /* |
44 | The 'zlib' compression library provides in-memory compression and | 44 | The 'zlib' compression library provides in-memory compression and |
@@ -726,11 +726,11 @@ ZEXTERN int ZEXPORT inflateInit2 OF((z_streamp strm, | |||
726 | a crc32 instead of an adler32. | 726 | a crc32 instead of an adler32. |
727 | 727 | ||
728 | 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 |
729 | memory, Z_STREAM_ERROR if a parameter is invalid (such as a negative | 729 | memory, Z_STREAM_ERROR if a parameter is invalid (such as a null strm). msg |
730 | memLevel). msg is set to null if there is no error message. inflateInit2 | 730 | is set to null if there is no error message. inflateInit2 does not perform |
731 | does not perform any decompression apart from reading the zlib header if | 731 | any decompression apart from reading the zlib header if present: this will |
732 | present: this will be done by inflate(). (So next_in and avail_in may be | 732 | be done by inflate(). (So next_in and avail_in may be modified, but next_out |
733 | modified, but next_out and avail_out are unchanged.) | 733 | and avail_out are unchanged.) |
734 | */ | 734 | */ |
735 | 735 | ||
736 | ZEXTERN int ZEXPORT inflateSetDictionary OF((z_streamp strm, | 736 | ZEXTERN int ZEXPORT inflateSetDictionary OF((z_streamp strm, |
@@ -796,6 +796,22 @@ ZEXTERN int ZEXPORT inflateReset OF((z_streamp strm)); | |||
796 | stream state was inconsistent (such as zalloc or state being NULL). | 796 | stream state was inconsistent (such as zalloc or state being NULL). |
797 | */ | 797 | */ |
798 | 798 | ||
799 | ZEXTERN int ZEXPORT inflatePrime OF((z_streamp strm, | ||
800 | int bits, | ||
801 | int value)); | ||
802 | /* | ||
803 | This function inserts bits in the inflate input stream. The intent is | ||
804 | that this function is used to start inflating at a bit position in the | ||
805 | middle of a byte. The provided bits will be used before any bytes are used | ||
806 | from next_in. This function should only be used with raw inflate, and | ||
807 | should be used before the first inflate() call after inflateInit2() or | ||
808 | inflateReset(). bits must be less than or equal to 16, and that many of the | ||
809 | least significant bits of value will be inserted in the input. | ||
810 | |||
811 | inflatePrime returns Z_OK if success, or Z_STREAM_ERROR if the source | ||
812 | stream state was inconsistent. | ||
813 | */ | ||
814 | |||
799 | ZEXTERN int ZEXPORT inflateGetHeader OF((z_streamp strm, | 815 | ZEXTERN int ZEXPORT inflateGetHeader OF((z_streamp strm, |
800 | gz_headerp head)); | 816 | gz_headerp head)); |
801 | /* | 817 | /* |