diff options
Diffstat (limited to 'zlib.h')
-rw-r--r-- | zlib.h | 20 |
1 files changed, 13 insertions, 7 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.0.3, July 19th, 2003 | 2 | version 1.2.0.4, August 10th, 2003 |
3 | 3 | ||
4 | Copyright (C) 1995-2003 Jean-loup Gailly and Mark Adler | 4 | Copyright (C) 1995-2003 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.0.3" | 40 | #define ZLIB_VERSION "1.2.0.4" |
41 | #define ZLIB_VERNUM 0x1203 | 41 | #define ZLIB_VERNUM 0x1204 |
42 | 42 | ||
43 | /* | 43 | /* |
44 | The 'zlib' compression library provides in-memory compression and | 44 | The 'zlib' compression library provides in-memory compression and |
@@ -446,15 +446,21 @@ ZEXTERN int ZEXPORT deflateInit2 OF((z_streamp strm, | |||
446 | this version of the library. | 446 | this version of the library. |
447 | 447 | ||
448 | The windowBits parameter is the base two logarithm of the window size | 448 | The windowBits parameter is the base two logarithm of the window size |
449 | (the size of the history buffer). It should be in the range 8..15 for this | 449 | (the size of the history buffer). It should be in the range 8..15 for this |
450 | version of the library. Larger values of this parameter result in better | 450 | version of the library. Larger values of this parameter result in better |
451 | compression at the expense of memory usage. The default value is 15 if | 451 | compression at the expense of memory usage. The default value is 15 if |
452 | deflateInit is used instead. | 452 | deflateInit is used instead. |
453 | 453 | ||
454 | windowBits can also be -8..-15 for raw deflate. In this case, -windowBits | 454 | windowBits can also be -8..-15 for raw deflate. In this case, -windowBits |
455 | determines the window size. deflate() will then generate raw deflate data | 455 | determines the window size. deflate() will then generate raw deflate data |
456 | with no zlib header or trailer, and will not compute an adler32 check value. | 456 | with no zlib header or trailer, and will not compute an adler32 check value. |
457 | 457 | ||
458 | windowBits can also be greater than 15 for optional gzip encoding. Add | ||
459 | 16 to windowBits to write a simple gzip header and trailer around the | ||
460 | compressed data instead of a zlib wrapper. The gzip header will have no | ||
461 | file name, no extra data, no comment, no modification time (set to zero), | ||
462 | no header crc, and the operating system will be set to 255 (unknown). | ||
463 | |||
458 | The memLevel parameter specifies how much memory should be allocated | 464 | The memLevel parameter specifies how much memory should be allocated |
459 | for the internal compression state. memLevel=1 uses minimum memory but | 465 | for the internal compression state. memLevel=1 uses minimum memory but |
460 | is slow and reduces compression ratio; memLevel=9 uses maximum memory | 466 | is slow and reduces compression ratio; memLevel=9 uses maximum memory |
@@ -801,8 +807,8 @@ ZEXTERN uLong ZEXPORT zlibCompileFlags OF((void)); | |||
801 | Library content (indicates missing functionality): | 807 | Library content (indicates missing functionality): |
802 | 16: NO_DEFLATE -- gz* functions cannot compress (to avoid linking deflate | 808 | 16: NO_DEFLATE -- gz* functions cannot compress (to avoid linking deflate |
803 | code when not needed) | 809 | code when not needed) |
804 | 17: NO_GUNZIP -- inflate can't detect and decode gzip streams, to avoid | 810 | 17: NO_GZIP -- deflate can't write gzip streams, and inflate can't detect |
805 | linking crc code | 811 | and decode gzip streams (to avoid linking crc code) |
806 | 18-19: 0 (reserved) | 812 | 18-19: 0 (reserved) |
807 | 813 | ||
808 | Operation variations (changes in library functionality): | 814 | Operation variations (changes in library functionality): |