From: Mark Adler Date: Sat, 26 Apr 2014 15:12:37 +0000 (-0700) Subject: Note in zlib.h that compress() uses Z_DEFAULT_COMPRESSION. X-Git-Tag: 1.9.9-b1~793^2~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3c7b16a1e3878e79b99004c526152fef8e02bce8;p=thirdparty%2Fzlib-ng.git Note in zlib.h that compress() uses Z_DEFAULT_COMPRESSION. --- diff --git a/zlib.h b/zlib.h index e06cbaad2..56bfbba08 100644 --- a/zlib.h +++ b/zlib.h @@ -1154,7 +1154,8 @@ ZEXTERN int ZEXPORT compress(unsigned char *dest, uLong *destLen, const unsigned the byte length of the source buffer. Upon entry, destLen is the total size of the destination buffer, which must be at least the value returned by compressBound(sourceLen). Upon exit, destLen is the actual size of the - compressed buffer. + compressed buffer. compress() is equivalent to compress2() with a level + parameter of Z_DEFAULT_COMPRESSION. compress returns Z_OK if success, Z_MEM_ERROR if there was not enough memory, Z_BUF_ERROR if there was not enough room in the output