Introduction
The zlib format, defined in RFC 1950, is a small wrapper around data compressed with
DEFLATE. The compressor pigz writes it to files ending in .zz when run with
its -z option. zlib is also the name of a C
compression library.
Structure
0CMF and FLG method, window size and flags; read as a 16-bit number the pair is a multiple of 312 bytes2DICTID identifies a preset dictionary; present only when the flag is set0 or 4 bytes…Compressed data a DEFLATE streamvariable…Adler-32 checksum of the uncompressed data, big-endian4 bytes
Not described
This page is a first outline. The details of the layout are not yet described here.
Known, not yet covered
- Reference: the header bit fields and preset dictionaries, which RFC 1950 specifies, and the DEFLATE data (RFC 1951).
- Viewer: the site has no viewer for this format.
Links
Software
- pigz – compressor with a zlib output option (source code)
Developers
- zlib – the general-purpose compression library (C)