Global Variable

COMPRESSION_ZLIB

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

Declaration

var COMPRESSION_ZLIB: compression_algorithm { get }

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

var COMPRESSION_LZFSE: compression_algorithm

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

var COMPRESSION_LZ4: compression_algorithm

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

var COMPRESSION_LZ4_RAW: compression_algorithm

The LZ4 compression algorithm, without frame headers.

var COMPRESSION_LZMA: compression_algorithm

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