Module Decompress_inflate.Zlib

type ('i, 'o) t = {
d : ('i'ocrc) RFC1951.t;
z : ('i'o) state;
expected_wbits : int option;
}
and ('i, 'o) k = (Safe.ro'i) Safe.t -> (Safe.wo'o) Safe.t -> ('i'o) t -> ('i'o) res
and ('i, 'o) state =
| Header of ('i'o) k
| Inflate
| Adler32 of ('i'o) k
| Finish
| Exception of error
and ('i, 'o) res =
| Cont of ('i'o) t
| Wait of ('i'o) t
| Flush of ('i'o) t
| Ok of ('i'o) t
| Error of ('i'o) t * error
and error = error_z
and crc = Window.adler32
val pp_error : Stdlib.Format.formatter -> error_z -> unit
val pp_state : Stdlib.Format.formatter -> ('a'b) state -> unit
val pp : Stdlib.Format.formatter -> ('a'b) t -> unit
val error : ('a'b) t -> error -> ('a'b) res
val ok : ('a'b) t -> ('a'b) res
val get_byte : ctor:((([< `Rd | `Wr Rd ] as 'a, 'b) Safe.t -> 'c -> ('b'd) t -> ('b'd) res) -> ('b'd) state) -> (int -> ('a'b) Safe.t -> 'c -> ('b'd) t -> ('b'd) res) -> ('a'b) Safe.t -> 'c -> ('b'd) t -> ('b'd) res
val get_with_holding : ctor:((([< `Rd | `Wr Rd ] as 'a, 'b) Safe.t -> 'c -> ('b'd) t -> ('b'd) res) -> ('b'd) state) -> (int -> ('a'b) Safe.t -> 'c -> ('b'd) t -> ('b'd) res) -> ('a'b) Safe.t -> 'c -> ('b'd) t -> ('b'd) res
val peek_bits : ctor:((([< `Rd | `Wr Rd ] as 'a, 'b) Safe.t -> 'c -> ('b'd) t -> ('b'd) res) -> ('b'd) state) -> int -> (('a'b) Safe.t -> 'c -> ('b'd) t -> ('b'd) res) -> ('a'b) Safe.t -> 'c -> ('b'd) t -> ('b'd) res
val drop_bits : ctor:((([< `Rd | `Wr Rd ] as 'a, 'b) Safe.t -> 'c -> ('b'd) t -> ('b'd) res) -> ('b'd) state) -> int -> (('a'b) Safe.t -> 'c -> ('b'd) t -> ('b'd) res) -> ('a'b) Safe.t -> 'c -> ('b'd) t -> ('b'd) res
module KHeader : sig ... end
module KCrc : sig ... end
val adler32 : (Safe.ro'a) Safe.t -> (Safe.wo'b) Safe.t -> ('a'b) t -> ('a'b) res
val inflate : (Safe.ro'a) Safe.t -> (Safe.wo'a) Safe.t -> ('a'a) t -> ('a'a) res
val header : (Safe.ro'a) Safe.t -> (Safe.wo'b) Safe.t -> ('a'b) t -> ('a'b) res
val eval : 'a -> 'a -> ('a'a) t -> [> `Await of ('a'a) t | `End of ('a'a) t | `Error of ('a'a) t * error | `Flush of ('a'a) t ]
val default : witness:'a Buffer.t -> ?⁠wbits:int -> ('acrc) Window.t -> ('a'a) t
val refill : int -> int -> ('a'b) t -> ('a'b) t
val flush : int -> int -> ('a'b) t -> ('a'b) t
val used_in : ('a'b) t -> int
val used_out : ('a'b) t -> int
val write : ('a'b) t -> int
include sig ... end
val to_result : 'a -> 'a -> ('a -> int) -> ('a -> int -> int) -> ('a'a) t -> (('a'a) terror) Stdlib.result
val bytes : 'a -> 'a -> ('a -> int) -> ('a -> int -> int) -> ('a'a) t -> (('a'a) terror) Stdlib.result
val bigstring : 'a -> 'a -> ('a -> int) -> ('a -> int -> int) -> ('a'a) t -> (('a'a) terror) Stdlib.result