type error = Lz77 error.
val pp_error : Stdlib.Format.formatter -> error -> unitPretty-printer of Lz77 error.
val pp : Stdlib.Format.formatter -> 'i t -> unitPretty-printer of Lz77 state.
val used_in : 'i t -> intused_in t returns n bytes(s) used by the algorithm in the current input.
default ~witness ~level ~on wbits produces a new state to compute the Lz77 algorithm in an input. level means the level of the compression (between 0 and 9), on is a function called when the algorithm produce one Hunk.t and wbits is the window size allowed.
Usually, wbits = 15 for a window of 32K. If wbits is lower, you constraint the distance of a Match produced by the Lz77 algorithm to the window size.
on is a function to interact fastly with your data-structure and keep frequencies of Literal and Match.