

Larger values produceīetter compression at the expense of greater memory usage. +9 to +15: The base-two logarithm of the window size, which “window size”) used when compressing data, and whether a header and The wbits argument controls the size of the history buffer (or the Z_DEFAULT_COMPRESSION represents a default compromise between speed and compression The default value is -1 (Z_DEFAULT_COMPRESSION). While a value of 9 (Z_BEST_COMPRESSION) is slowest and produces the most.Ġ (Z_NO_COMPRESSION) is no compression. Level is the compression level – an integer from 0 to 9 or -1.Ī value of 1 (Z_BEST_SPEED) is fastest and produces the least compression, Returns a compression object, to be used for compressing data streams that won’t compressobj ( level=-1, method=DEFLATED, wbits=MAX_WBITS, memLevel=DEF_MEM_LEVEL, strategy=Z_DEFAULT_STRATEGY ) ¶ The algorithm is designed for use as a checksum algorithm, it is not suitableĬhanged in version 3.6: level can now be used as a keyword parameter.

Strong, and should not be used for authentication or digital signatures. Passing in value allows computing a running checksum over theĬoncatenation of several inputs. The starting value of the checksum otherwise, a default value of 1 Reliable as a CRC32 but can be computed much more quickly.) The result adler32 ( data ) ¶Ĭomputes an Adler-32 checksum of data.

error ¶Įxception raised on compression and decompression errors. The available exception and functions in this module are: exception zlib.
#Just cause 3 recompress all manual
This documentation doesn’t attempt to cover all of the permutations Ĭonsult the zlib manual at for authoritativeįor reading and writing. Zlib’s functions have many options and often need to be used in a particular Incompatibilities between the Python module and versions of the zlib libraryĮarlier than 1.1.3 1.1.3 has a security vulnerability, so we recommend using Zlib - Compression compatible with gzip ¶įor applications that require data compression, the functions in this moduleĪllow compression and decompression, using the zlib library.
