MCPcopy Create free account
hub / github.com/OpenRCT2/OpenRCT2 / zlibCompressBound

Function zlibCompressBound

src/openrct2/core/Compression.cpp:34–37  ·  view source on GitHub ↗

* 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, */

Source from the content-addressed store, hash-verified

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 {

Callers 1

zlibCompressFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected