package rfc1951

  1. Overview
  2. Docs

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 =
  1. | 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.

    *)
  2. | Literal of char
    (*

    Literal chr means a character.

    *)