Enumeration Case

COMPRESSION_ZLIB

The zlib compression algorithm, that is recommended for cross-platform compression.

Declaration

COMPRESSION_ZLIB = 0x205

Discussion

The Compression library implements the zlib encoder at level 5 only. This compression level provides a good balance between compression speed and compression ratio. The zlib decoder supports decoding data compressed with any compression level.

The encoded format is the raw DEFLATE format as described in IETF RFC 1951, the following obtains the equivalent configuration of the encoder:

deflateInit2(zstream,5,Z_DEFLATED,-15,8,Z_DEFAULT_STRATEGY)

See Also

Algorithm Constants

COMPRESSION_LZFSE

The LZFSE compression algorithm, that is recommended for use on Apple platforms.

COMPRESSION_LZ4

The LZ4 compression algorithm, that is recommended for fast compression.

COMPRESSION_LZ4_RAW

The LZ4 compression algorithm, without frame headers.

COMPRESSION_LZMA

The LZMA compression algorithm, that is recommended for high-compression ratio.