* Modified copy of compressBound() from zlib 1.3.1, with the argument type changed from ULong * (which may be only 32 bits) to uint64_t, and adds space for the default gzip header, */
| 32 | * (which may be only 32 bits) to uint64_t, and adds space for the default gzip header, |
| 33 | */ |
| 34 | static uint64_t zlibCompressBound(uint64_t length) |
| 35 | { |
| 36 | return length + (length >> 12) + (length >> 14) + (length >> 25) + 13uLL + (18uLL - 6uLL); |
| 37 | } |
| 38 | |
| 39 | bool zlibCompress(IStream& source, uint64_t sourceLength, IStream& dest, ZlibHeaderType header, int16_t level) |
| 40 | { |