Template:Zlib Header: Difference between revisions
Jump to navigation
Jump to search
m (Sandungas moved page Template:Zlib to Template:Zlib Header without leaving a redirect: more specific name) |
mNo edit summary |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{| class="wikitable" style="text-align: center;" | {| class="wikitable" style="text-align: center;" | ||
|+Zlib Header ([http://tools.ietf.org/html/rfc1950#section-2.2 | |+Zlib Header (more info [http://tools.ietf.org/html/rfc1950#section-2.2 here] and [http://mattmahoney.net/dc/dce.html here]) {{ed right|Zlib Header}} | ||
!width="100"|byte index | !width="100"|byte index | ||
!width="60"|bit 7 | !width="60"|bit 7 | ||
Line 38: | Line 38: | ||
|- | |- | ||
|} | |} | ||
<noinclude>[[Category:Templates]]</noinclude> | <noinclude>[[Category:Templates]]</noinclude> |
Latest revision as of 14:20, 7 February 2015
byte index | bit 7 | bit 6 | bit 5 | bit 4 | bit 3 | bit 2 | bit 1 | bit 0 |
---|---|---|---|---|---|---|---|---|
[0] CMF | Compression info
|
Compression method
| ||||||
[1] FLG | FLEVEL
|
FDICT
(Preset dictionary) If set, a DICT dictionary identifier is present immediately after the FLG byte. The dictionary is a sequence of bytes which are initially fed to the compressor without producing any compressed output. DICT is the Adler-32 checksum of this sequence of bytes (see the definition of ADLER32 below). The decompressor can use this identifier to determine which dictionary has been used by the compressor. |
FCHECK
value must be such that CMF and FLG, when viewed as a 16-bit unsigned integer stored in MSB order (CMF *256 + FLG), is a multiple of 31. |