summaryrefslogtreecommitdiff
path: root/zlib.h
diff options
context:
space:
mode:
Diffstat (limited to 'zlib.h')
-rw-r--r--zlib.h25
1 files changed, 14 insertions, 11 deletions
diff --git a/zlib.h b/zlib.h
index 6417650..b13ca6f 100644
--- a/zlib.h
+++ b/zlib.h
@@ -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.1, October 31st, 2004 2 version 1.2.2.2, December 30th, 2004
3 3
4 Copyright (C) 1995-2004 Jean-loup Gailly and Mark Adler 4 Copyright (C) 1995-2004 Jean-loup Gailly and Mark Adler
5 5
@@ -37,8 +37,8 @@
37extern "C" { 37extern "C" {
38#endif 38#endif
39 39
40#define ZLIB_VERSION "1.2.2.1" 40#define ZLIB_VERSION "1.2.2.2"
41#define ZLIB_VERNUM 0x1221 41#define ZLIB_VERNUM 0x1222
42 42
43/* 43/*
44 The 'zlib' compression library provides in-memory compression and 44 The 'zlib' compression library provides in-memory compression and
@@ -189,6 +189,7 @@ typedef gz_header FAR *gz_headerp;
189#define Z_FILTERED 1 189#define Z_FILTERED 1
190#define Z_HUFFMAN_ONLY 2 190#define Z_HUFFMAN_ONLY 2
191#define Z_RLE 3 191#define Z_RLE 3
192#define Z_FIXED 4
192#define Z_DEFAULT_STRATEGY 0 193#define Z_DEFAULT_STRATEGY 0
193/* compression strategy; see deflateInit2() below for details */ 194/* compression strategy; see deflateInit2() below for details */
194 195
@@ -391,11 +392,11 @@ ZEXTERN int ZEXPORT inflate OF((z_streamp strm, int flush));
391 The flush parameter of inflate() can be Z_NO_FLUSH, Z_SYNC_FLUSH, 392 The flush parameter of inflate() can be Z_NO_FLUSH, Z_SYNC_FLUSH,
392 Z_FINISH, or Z_BLOCK. Z_SYNC_FLUSH requests that inflate() flush as much 393 Z_FINISH, or Z_BLOCK. Z_SYNC_FLUSH requests that inflate() flush as much
393 output as possible to the output buffer. Z_BLOCK requests that inflate() stop 394 output as possible to the output buffer. Z_BLOCK requests that inflate() stop
394 if and when it get to the next deflate block boundary. When decoding the zlib 395 if and when it gets to the next deflate block boundary. When decoding the
395 or gzip format, this will cause inflate() to return immediately after the 396 zlib or gzip format, this will cause inflate() to return immediately after
396 header and before the first block. When doing a raw inflate, inflate() will 397 the header and before the first block. When doing a raw inflate, inflate()
397 go ahead and process the first block, and will return when it gets to the end 398 will go ahead and process the first block, and will return when it gets to
398 of that block, or when it runs out of data. 399 the end of that block, or when it runs out of data.
399 400
400 The Z_BLOCK option assists in appending to or combining deflate streams. 401 The Z_BLOCK option assists in appending to or combining deflate streams.
401 Also to assist in this, on return inflate() will set strm->data_type to the 402 Also to assist in this, on return inflate() will set strm->data_type to the
@@ -524,7 +525,9 @@ ZEXTERN int ZEXPORT deflateInit2 OF((z_streamp strm,
524 Z_DEFAULT and Z_HUFFMAN_ONLY. Z_RLE is designed to be almost as fast as 525 Z_DEFAULT and Z_HUFFMAN_ONLY. Z_RLE is designed to be almost as fast as
525 Z_HUFFMAN_ONLY, but give better compression for PNG image data. The strategy 526 Z_HUFFMAN_ONLY, but give better compression for PNG image data. The strategy
526 parameter only affects the compression ratio but not the correctness of the 527 parameter only affects the compression ratio but not the correctness of the
527 compressed output even if it is not set appropriately. 528 compressed output even if it is not set appropriately. Z_FIXED prevents the
529 use of dynamic Huffman codes, allowing for a simpler decoder for special
530 applications.
528 531
529 deflateInit2 returns Z_OK if success, Z_MEM_ERROR if there was not enough 532 deflateInit2 returns Z_OK if success, Z_MEM_ERROR if there was not enough
530 memory, Z_STREAM_ERROR if a parameter is invalid (such as an invalid 533 memory, Z_STREAM_ERROR if a parameter is invalid (such as an invalid
@@ -1230,7 +1233,7 @@ ZEXTERN uLong ZEXPORT adler32 OF((uLong adler, const Bytef *buf, uInt len));
1230*/ 1233*/
1231 1234
1232ZEXTERN uLong ZEXPORT adler32_combine OF((uLong adler1, uLong adler2, 1235ZEXTERN uLong ZEXPORT adler32_combine OF((uLong adler1, uLong adler2,
1233 uLong len2)); 1236 z_off_t len2));
1234/* 1237/*
1235 Combine two Adler-32 checksums into one. For two sequences of bytes, seq1 1238 Combine two Adler-32 checksums into one. For two sequences of bytes, seq1
1236 and seq2 with lengths len1 and len2, Adler-32 checksums were calculated for 1239 and seq2 with lengths len1 and len2, Adler-32 checksums were calculated for
@@ -1254,7 +1257,7 @@ ZEXTERN uLong ZEXPORT crc32 OF((uLong crc, const Bytef *buf, uInt len));
1254 if (crc != original_crc) error(); 1257 if (crc != original_crc) error();
1255*/ 1258*/
1256 1259
1257ZEXTERN uLong ZEXPORT crc32_combine OF((uLong crc1, uLong crc2, uLong len2)); 1260ZEXTERN uLong ZEXPORT crc32_combine OF((uLong crc1, uLong crc2, z_off_t len2));
1258 1261
1259/* 1262/*
1260 Combine two CRC-32 check values into one. For two sequences of bytes, 1263 Combine two CRC-32 check values into one. For two sequences of bytes,