Module Decompress_inflate.ZlibSource
Sourceand ('i, 'o) state = | Inflate| Adler32 of ('i, 'o) k| Finish| Exception of error
Sourceand ('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
Sourceval 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 Sourceval 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 Sourceval 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 Sourceval 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 Sourceval 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 ] Sourceval refill : int -> int -> ('a, 'b) t -> ('a, 'b) t Sourceval flush : int -> int -> ('a, 'b) t -> ('a, 'b) t Sourceval used_in : ('a, 'b) t -> int Sourceval used_out : ('a, 'b) t -> int Sourceval write : ('a, 'b) t -> int include sig ... end
Sourceval to_result :
'a ->
'a ->
('a -> int) ->
('a -> int -> int) ->
('a, 'a) t ->
(('a, 'a) t, error) result Sourceval bytes :
'a ->
'a ->
('a -> int) ->
('a -> int -> int) ->
('a, 'a) t ->
(('a, 'a) t, error) result Sourceval bigstring :
'a ->
'a ->
('a -> int) ->
('a -> int -> int) ->
('a, 'a) t ->
(('a, 'a) t, error) result