Module Decompress_impl.RFC1951_inflateSource
Sourceval reverse_bits : int -> int Sourcetype ('i, 'o) t = {last : bool;hold : int;bits : int;o_off : int;o_pos : int;o_len : int;i_off : int;i_pos : int;i_len : int;write : int;state : ('i, 'o) state;window : 'o Window.t;
} Sourceand ('i, 'o) state = | Last| Block| Flat of ('i, 'o) k| Fixed| Dictionary of ('i, 'o) k| Inffast of Lookup.t * Lookup.t * code| Inflate of ('i, 'o) k| Switch| Finish of int| 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
Sourceand code = | Length| ExtLength of int| Dist of int| ExtDist of int * int| Write of int * int
Sourceval get_byte :
ctor:
((([< `Read | `Write Read ] as 'a, 'b) Safe.t ->
'c ->
('d, 'e) t ->
('f, 'e) res) ->
('f, 'e) state) ->
(int -> ('a, 'b) Safe.t -> 'c -> ('d, 'e) t -> ('f, 'e) res) ->
('a, 'b) Safe.t ->
'c ->
('d, 'e) t ->
('f, 'e) res Sourceval put_byte :
ctor:
(('a ->
([< `Read | `Write Write ] as 'b, 'c) Safe.t ->
('d, 'e) t ->
('f, 'e) res) ->
('f, 'e) state) ->
int ->
('a -> ('b, 'c) Safe.t -> ('d, 'e) t -> ('f, 'e) res) ->
'a ->
('b, 'c) Safe.t ->
('d, 'e) t ->
('f, 'e) res Sourceval fill_byte :
ctor:
(('a ->
([< `Read | `Write Write ] as 'b, 'c) Safe.t ->
('d, 'e) t ->
('f, 'e) res) ->
('f, 'e) state) ->
int ->
int ->
('a -> ('b, 'c) Safe.t -> ('d, 'e) t -> ('f, 'e) res) ->
'a ->
('b, 'c) Safe.t ->
('d, 'e) t ->
('f, 'e) res Sourceval peek_bits :
ctor:
((([< `Read | `Write Read ] as 'a, 'b) Safe.t ->
'c ->
('d, 'e) t ->
('f, 'e) res) ->
('f, 'e) state) ->
int ->
(('a, 'b) Safe.t -> 'c -> ('d, 'e) t -> ('f, 'e) res) ->
('a, 'b) Safe.t ->
'c ->
('d, 'e) t ->
('f, 'e) res Sourceval drop_bits :
ctor:
((([< `Read | `Write Read ] as 'a, 'b) Safe.t ->
'c ->
('d, 'e) t ->
('f, 'e) res) ->
('f, 'e) state) ->
int ->
(('a, 'b) Safe.t -> 'c -> ('d, 'e) t -> ('f, 'e) res) ->
('a, 'b) Safe.t ->
'c ->
('d, 'e) t ->
('f, 'e) res Sourceval get_bits :
ctor:
((([< `Read | `Write Read ] as 'a, 'b) Safe.t ->
'c ->
('d, 'e) t ->
('f, 'e) res) ->
('f, 'e) state) ->
int ->
(int -> ('a, 'b) Safe.t -> 'c -> ('d, 'e) t -> ('f, 'e) res) ->
('a, 'b) Safe.t ->
'c ->
('d, 'e) t ->
('f, 'e) res Sourceval get_with_holding :
ctor:
((([< `Read | `Write Read ] as 'a, 'b) Safe.t ->
'c ->
('d, 'e) t ->
('f, 'e) res) ->
('f, 'e) state) ->
(int -> ('a, 'b) Safe.t -> 'c -> ('d, 'e) t -> ('f, 'e) res) ->
('a, 'b) Safe.t ->
'c ->
('d, 'e) t ->
('f, 'e) res Sourceval get_int16 :
ctor:
((([< `Read | `Write Read ] as 'a, 'b) Safe.t ->
'c ->
('d, 'e) t ->
('f, 'e) res) ->
('f, 'e) state) ->
(int -> ('a, 'b) Safe.t -> 'c -> ('d, 'e) t -> ('f, 'e) res) ->
('a, 'b) Safe.t ->
'c ->
('d, 'e) t ->
('f, 'e) res Sourceval fixed : 'a -> 'b -> ('c, 'd) t -> ('e, 'd) res Sourceval switch : 'a -> 'b -> ('c, 'd) t -> ('e, 'd) res Sourceval block :
([< `Read | `Write Read ], 'a) Safe.t ->
'b ->
('c, 'd) t ->
('d, 'd) res Sourceval last :
([< `Read | `Write Read ], 'a) Safe.t ->
'b ->
('c, 'd) t ->
('e, 'd) res Sourceval eval :
'a Decompress_impl__.Decompress_b.t ->
'a Decompress_impl__.Decompress_b.t ->
('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 Sourceval bits_remaining : ('a, 'b) t -> int