Share via


4.2.1.1.5 Example 5

Uncompressed input consists of 1,002 random bytes, beginning as in Example 4 (section 4.2.1.1.4).

Uncompressed input:

 54 68 65 20 71 75 69 63 6B 20 62 72 6F 77 6E 20  The quick brown 
 66 6F 78 20 6A 75 6D 70 73 20 6F 76 65 72 20 74  fox jumps over t
 68 65 20 6C 61 7A 79 20 64 6F 67 BA AD C0 DE F1  he lazy dog.....
 (954 bytes omitted)

Compressed output:

This is a contrived example of an unencoded sequence.

 E0 24 88 01 F4 00 54 68 65 20 71 75 69 63 6B 20  ......The quick
 62 72 6F 77 6E 20 66 6F 78 20 6A 75 6D 70 73 20  brown fox jumps
 6F 76 65 72 20 74 68 65 20 6C 61 7A 79 20 64 6F  over the lazy do
 (960 bytes omitted)
 00                                               .
  
 E0 = DEBLOCK_SINGLE
  
 24 = PACKET_COMPRESSED + type 4
  
 88 = binary 10001 000
 01 = binary 00 000001
 F4 = binary 11110100
 00 = binary 0 0000000
  
 54 = first unencoded byte "T"
 (1001 bytes omitted)
 00 = no bits unused

Decoded binary stream:

 10001 00000 = match, distance = 0 (unencoded)
 0000011111010000 (15 bits) = 1,000 bytes follow
 0000000 = reserved (pad to byte boundary)
  
 01010100 = first unencoded byte "T"
 (1001 bytes omitted)
 00000000 = no bits unused