The zlib compression library provides in-memory compression and decompression functions, including integrity checks of the uncompressed data.
This version of the library supports only one compression method (deflation), but other algorithms may be added later, which will have the same stream interface.
The zlib library is used by many different system programs.