Module Decompress_impl.Zlib_deflate
and ('i, 'o) state = | Deflate| 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
val ok : ('i, 'o) t -> ('i, 'o) resval error : ('i, 'o) t -> error -> ('i, 'o) resval put_byte :
ctor:
(('a -> ([< `Rd | `Wr Wr ] as 'b, 'c) Safe.t -> ('d, 'c) t -> ('d, 'c) res) ->
('d, 'c) state) ->
int ->
('a -> ('b, 'c) Safe.t -> ('d, 'c) t -> ('d, 'c) res) ->
'a ->
('b, 'c) Safe.t ->
('d, 'c) t ->
('d, 'c) resval put_short_lsb :
ctor:
(('a -> ([< `Rd | `Wr Wr ] as 'b, 'c) Safe.t -> ('d, 'c) t -> ('d, 'c) res) ->
('d, 'c) state) ->
int ->
('a -> ('b, 'c) Safe.t -> ('d, 'c) t -> ('d, 'c) res) ->
'a ->
('b, 'c) Safe.t ->
('d, 'c) t ->
('d, 'c) resval align :
ctor:
(('a -> ([< `Rd | `Wr Wr ] as 'b, 'c) Safe.t -> ('d, 'c) t -> ('d, 'c) res) ->
('d, 'c) state) ->
('a -> ('b, 'c) Safe.t -> ('d, 'c) t -> ('d, 'c) res) ->
'a ->
('b, 'c) Safe.t ->
('d, 'c) t ->
('d, 'c) resval put_short_msb :
ctor:
(('a -> ([< `Rd | `Wr Wr ] as 'b, 'c) Safe.t -> ('d, 'c) t -> ('d, 'c) res) ->
('d, 'c) state) ->
int ->
('a -> ('b, 'c) Safe.t -> ('d, 'c) t -> ('d, 'c) res) ->
'a ->
('b, 'c) Safe.t ->
('d, 'c) t ->
('d, 'c) resval 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 Safe.B.t -> ?wbits:int -> int -> ('a, 'a) tval set_frequencies :
?paranoid:bool ->
(int array * int array) ->
('a, 'b) t ->
('a, 'b) tval finish : ('a, 'a) t -> ('a, 'a) tval no_flush : int -> int -> ('a, 'b) t -> ('a, 'b) tval partial_flush : int -> int -> ('a, 'a) t -> ('a, 'a) tval sync_flush : int -> int -> ('a, 'a) t -> ('a, 'a) tval full_flush : int -> int -> ('a, 'a) t -> ('a, 'a) tval flush : int -> int -> ('a, 'b) t -> ('a, 'b) tval used_in : ('a, 'b) t -> intval used_out : ('a, 'b) t -> intinclude sig ... end
val to_result :
'a ->
'a ->
?meth:(meth * int) ->
('a -> int option -> int) ->
('a -> int -> int) ->
('a, 'a) t ->
(('a, 'a) t, error) resultval bytes :
'a ->
'a ->
?meth:(meth * int) ->
('a -> int option -> int) ->
('a -> int -> int) ->
('a, 'a) t ->
(('a, 'a) t, error) resultval bigstring :
'a ->
'a ->
?meth:(meth * int) ->
('a -> int option -> int) ->
('a -> int -> int) ->
('a, 'a) t ->
(('a, 'a) t, error) result