- zlib gunzip data ?-headerVar varName?
This command, part of zlib, takes the gzip-format compressed bytearray data and returns its uncompressed version. The optionally specified -headerVar option gives the name of a variable in which to store a dict that contains the contents of the gzip header. The following keys are defined:
- comment
- The comment field.
- crc
- Whether a CRC of the header was computed.
- filename
- The name of the file that was compressed.
- os
- The originating operating system code, if not the unknown value. Codes are described in RFC 1952.
- size
- The size of the uncompressed data, in bytes modulo 2³².
- time
- The modification time of the file (as in file mtime) in seconds from the Unix epoch (as in clock seconds).
- type
- Either text or binary, giving the estimated type of the contained data.