Module Decompress.Hunk

Hunk definition.

Match (len, dist) means a repeating previous pattern of len + 3 bytes at dist + 1 before the current cursor. Literal chr means a character.

type t =
| Match of int * int

Match (len, dist) where len and dist are biased. The really len is len + 3 and the really dist is dist + 1.

A Match means a repeating previous pattern of len + 3 byte(s) at dist + 1 before the current cursor.

| Literal of char

Literal chr means a character.