diff options
author | Mark Adler <madler@alumni.caltech.edu> | 2014-04-26 08:12:37 -0700 |
---|---|---|
committer | Mark Adler <madler@alumni.caltech.edu> | 2014-04-26 08:12:37 -0700 |
commit | 9cbda797c10b16d7a369761ed6d5a68f26296ce6 (patch) | |
tree | 8a131a6e5389a750572660f8c09cb5fc459ed1bf | |
parent | 7d54c69413ed2275b9ea25b376627294ffac5ca8 (diff) | |
download | zlib-9cbda797c10b16d7a369761ed6d5a68f26296ce6.tar.gz zlib-9cbda797c10b16d7a369761ed6d5a68f26296ce6.tar.bz2 zlib-9cbda797c10b16d7a369761ed6d5a68f26296ce6.zip |
Note in zlib.h that compress() uses Z_DEFAULT_COMPRESSION.
-rw-r--r-- | zlib.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1164,7 +1164,8 @@ ZEXTERN int ZEXPORT compress OF((Bytef *dest, uLongf *destLen, | |||
1164 | the byte length of the source buffer. Upon entry, destLen is the total size | 1164 | the byte length of the source buffer. Upon entry, destLen is the total size |
1165 | of the destination buffer, which must be at least the value returned by | 1165 | of the destination buffer, which must be at least the value returned by |
1166 | compressBound(sourceLen). Upon exit, destLen is the actual size of the | 1166 | compressBound(sourceLen). Upon exit, destLen is the actual size of the |
1167 | compressed buffer. | 1167 | compressed buffer. compress() is equivalent to compress2() with a level |
1168 | parameter of Z_DEFAULT_COMPRESSION. | ||
1168 | 1169 | ||
1169 | compress returns Z_OK if success, Z_MEM_ERROR if there was not | 1170 | compress returns Z_OK if success, Z_MEM_ERROR if there was not |
1170 | enough memory, Z_BUF_ERROR if there was not enough room in the output | 1171 | enough memory, Z_BUF_ERROR if there was not enough room in the output |