Skip to content
GitLab
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Changes
Page history
Example stream for minimum compressible raw data
authored
Oct 29, 2019
by
Nico Bendlin
Show whitespace changes
Inline
Side-by-side
compression.md
View page @
142db65d
...
...
@@ -111,6 +111,19 @@ can be compressed (including header) to 19 bytes:
61 literal = 'a'
62 literal = 'b'
Since the header has 12 octets, the first code has to be a literal,
and at least one length-distance pair is required to encode more
raw data than required for the compression header and data stream,
the minimum compressible raw data are 17 identical bytes:
01 4C 4F 42 magic
06 method
00 00 11 rawSize = 17
00 00 00 04 cmpSize = 4
80 flags = 10______
__ literal = __
0D 01 len/off = 16/-1
Notes
=====
...
...
...
...