diff options
author | Mark Adler <madler@alumni.caltech.edu> | 2011-09-09 23:18:57 -0700 |
---|---|---|
committer | Mark Adler <madler@alumni.caltech.edu> | 2011-09-09 23:18:57 -0700 |
commit | 6759211ad8a5006689216a86c3267bb503bfccc1 (patch) | |
tree | dc0f61f4c4a44828ad7d30e376ef21840b137f44 /zlib.h | |
parent | 7850e4e406dce1f7a819297eeb151d1ca18e7cd9 (diff) | |
download | zlib-1.0.8.tar.gz zlib-1.0.8.tar.bz2 zlib-1.0.8.zip |
zlib 1.0.8v1.0.8
Diffstat (limited to '')
-rw-r--r-- | zlib.h | 25 |
1 files changed, 20 insertions, 5 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.0.7, Jan 20th, 1998 | 2 | version 1.0.8, Jan 27th, 1998 |
3 | 3 | ||
4 | Copyright (C) 1995-1998 Jean-loup Gailly and Mark Adler | 4 | Copyright (C) 1995-1998 Jean-loup Gailly and Mark Adler |
5 | 5 | ||
@@ -37,7 +37,7 @@ extern "C" { | |||
37 | 37 | ||
38 | #include "zconf.h" | 38 | #include "zconf.h" |
39 | 39 | ||
40 | #define ZLIB_VERSION "1.0.7" | 40 | #define ZLIB_VERSION "1.0.8" |
41 | 41 | ||
42 | /* | 42 | /* |
43 | The 'zlib' compression library provides in-memory compression and | 43 | The 'zlib' compression library provides in-memory compression and |
@@ -614,6 +614,21 @@ extern int EXPORT compress OF((Bytef *dest, uLongf *destLen, | |||
614 | buffer. | 614 | buffer. |
615 | */ | 615 | */ |
616 | 616 | ||
617 | extern int EXPORT compress2 OF((Bytef *dest, uLongf *destLen, | ||
618 | const Bytef *source, uLong sourceLen, | ||
619 | int level)); | ||
620 | /* | ||
621 | Compresses the source buffer into the destination buffer. The level | ||
622 | parameter has the same meaning as in deflateInit. sourceLen is the byte | ||
623 | length of the source buffer. Upon entry, destLen is the total size of the | ||
624 | destination buffer, which must be at least 0.1% larger than sourceLen plus | ||
625 | 12 bytes. Upon exit, destLen is the actual size of the compressed buffer. | ||
626 | |||
627 | compress2 returns Z_OK if success, Z_MEM_ERROR if there was not enough | ||
628 | memory, Z_BUF_ERROR if there was not enough room in the output buffer, | ||
629 | Z_STREAM_ERROR if the level parameter is invalid. | ||
630 | */ | ||
631 | |||
617 | extern int EXPORT uncompress OF((Bytef *dest, uLongf *destLen, | 632 | extern int EXPORT uncompress OF((Bytef *dest, uLongf *destLen, |
618 | const Bytef *source, uLong sourceLen)); | 633 | const Bytef *source, uLong sourceLen)); |
619 | /* | 634 | /* |
@@ -842,9 +857,9 @@ extern int EXPORT inflateInit2_ OF((z_streamp strm, int windowBits, | |||
842 | struct internal_state {int dummy;}; /* hack for buggy compilers */ | 857 | struct internal_state {int dummy;}; /* hack for buggy compilers */ |
843 | #endif | 858 | #endif |
844 | 859 | ||
845 | extern const char * EXPORT zError OF((int err)); | 860 | extern const char * EXPORT zError OF((int err)); |
846 | extern int EXPORT inflateSyncPoint OF((z_streamp z)); | 861 | extern int EXPORT inflateSyncPoint OF((z_streamp z)); |
847 | extern uLongf * EXPORT get_crc_table OF((void)); | 862 | extern const uLongf * EXPORT get_crc_table OF((void)); |
848 | 863 | ||
849 | #ifdef __cplusplus | 864 | #ifdef __cplusplus |
850 | } | 865 | } |