diff options
author | Mark Adler <madler@alumni.caltech.edu> | 2011-09-09 23:21:47 -0700 |
---|---|---|
committer | Mark Adler <madler@alumni.caltech.edu> | 2011-09-09 23:21:47 -0700 |
commit | 7c2a874e50b871d04fbd19501f7b42cff55e5abc (patch) | |
tree | 1879cd29182ababb17cde77cee5ce74505db4006 /compress.c | |
parent | a383133c4e7b93113cee912f213cf9502d785fa7 (diff) | |
download | zlib-7c2a874e50b871d04fbd19501f7b42cff55e5abc.tar.gz zlib-7c2a874e50b871d04fbd19501f7b42cff55e5abc.tar.bz2 zlib-7c2a874e50b871d04fbd19501f7b42cff55e5abc.zip |
zlib 1.2.0v1.2.0
Diffstat (limited to 'compress.c')
-rw-r--r-- | compress.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -66,3 +66,13 @@ int ZEXPORT compress (dest, destLen, source, sourceLen) | |||
66 | { | 66 | { |
67 | return compress2(dest, destLen, source, sourceLen, Z_DEFAULT_COMPRESSION); | 67 | return compress2(dest, destLen, source, sourceLen, Z_DEFAULT_COMPRESSION); |
68 | } | 68 | } |
69 | |||
70 | /* =========================================================================== | ||
71 | If the default memLevel or windowBits for deflateInit() is changed, then | ||
72 | this function needs to be updated. | ||
73 | */ | ||
74 | uLong ZEXPORT compressBound (sourceLen) | ||
75 | uLong sourceLen; | ||
76 | { | ||
77 | return sourceLen + (sourceLen >> 12) + (sourceLen >> 14) + 11; | ||
78 | } | ||