Module Inf.Ns

type decoder = {
i : bigstring;
mutable i_pos : int;
i_len : int;
mutable hold : int;
mutable bits : int;
o : bigstring;
mutable o_pos : int;
o_len : int;
}
type error = [
| `Unexpected_end_of_input
| `Unexpected_end_of_output
| `Invalid_kind_of_block
| `Invalid_dictionary
| `Invalid_complement_of_length
| `Invalid_distance
| `Invalid_distance_code
]
val pp_error : Stdlib.Format.formatter -> [< `Invalid_complement_of_length | `Invalid_dictionary | `Invalid_distance | `Invalid_distance_code | `Invalid_kind_of_block | `Unexpected_end_of_input | `Unexpected_end_of_output ] -> unit
exception Malformed of error
val err_unexpected_end_of_input : unit -> 'a
val err_unexpected_end_of_output : unit -> 'a
val err_invalid_kind_of_block : unit -> 'a
val err_invalid_dictionary : unit -> 'a
val err_invalid_complement_of_length : unit -> 'a
val err_invalid_distance : unit -> 'a
val err_invalid_distance_code : unit -> 'a
val i_rem : decoder -> int
val _slow_blit : bigstring -> int -> bigstring -> int -> int -> unit
val _blit : bigstring -> int -> bigstring -> int -> int -> unit
val flat : decoder -> unit
val _fill_bits : decoder -> int -> unit
val __fill_bits : decoder -> int -> unit
val pop_bits : decoder -> int -> int
exception End
exception Invalid_distance
exception Invalid_distance_code
val fixed : decoder -> unit
val make_table : int array -> int -> int -> decoder -> unit
val inflate_table : decoder -> int array -> int -> int array -> (int * int * 'a) -> unit
val table : decoder -> int -> int -> int -> unit
val dynamic : decoder -> unit
val decode : decoder -> unit
val inflate : bigstring -> bigstring -> ( int * int, [> error ] ) Stdlib.result