package rfc1951

  1. Overview
  2. Docs
type decoder = {
  1. i : bigstring;
  2. mutable i_pos : int;
  3. i_len : int;
  4. mutable hold : int;
  5. mutable bits : int;
  6. o : bigstring;
  7. mutable o_pos : int;
  8. o_len : int;
}
type error = [
  1. | `Unexpected_end_of_input
  2. | `Unexpected_end_of_output
  3. | `Invalid_kind_of_block
  4. | `Invalid_dictionary
  5. | `Invalid_complement_of_length
  6. | `Invalid_distance
  7. | `Invalid_distance_code
]
val pp_error : 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 ]) result
OCaml

Innovation. Community. Security.