The zlib compression algorithm, that is recommended for cross-platform compression.
- iOS 9.0+
- macOS 10.11+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
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: