Zlib
From Just Solve the File Format Problem
(Difference between revisions)
Line 11: | Line 11: | ||
== See also == | == See also == | ||
* [[Adler-32]] | * [[Adler-32]] | ||
+ | |||
+ | == Identification == | ||
+ | The first byte of a zlib datastream has eight possible values: 0x08, 0x18, 0x28, ..., 0x78. | ||
+ | |||
+ | If the first two bytes are interpreted as a big-endian integer, it is always a multiple of 31. | ||
== Software == | == Software == |
Revision as of 17:07, 21 November 2013
zlib is a data compression library, and a general-purpose data compression format.
The data format uses DEFLATE compression. It is used in many other file formats, and sometimes on its own as a file format. It is defined in RFC 1950.
The zlib format is not the same as gzip format, but they are fairly similar, and both are supported by the zlib library.
Contents[hide] |
See also
Identification
The first byte of a zlib datastream has eight possible values: 0x08, 0x18, 0x28, ..., 0x78.
If the first two bytes are interpreted as a big-endian integer, it is always a multiple of 31.