Module Decompress_inflate.RFC1951Source
Sourceval reverse_bits : int -> int Sourcetype ('i, 'o, 'crc) 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, 'crc) state;window : ('o, 'crc) Window.t;wbits : int;wi : 'i Buffer.t;wo : 'o Buffer.t;
} Sourceand ('i, 'o, 'crc) state = | Last| Block| Flat of ('i, 'o, 'crc) k| Fixed| Dictionary of ('i, 'o, 'crc) k| Inffast of Lookup.t * Lookup.t * code| Inflate of ('i, 'o, 'crc) k| Switch| Finish of int| Exception of error
Sourceand ('i, 'o, 'crc) res = | Cont of ('i, 'o, 'crc) t| Wait of ('i, 'o, 'crc) t| Flush of ('i, 'o, 'crc) t| Ok of ('i, 'o, 'crc) t| Error of ('i, 'o, 'crc) t * error
Sourceand code = | Length| ExtLength of int| Dist of int| ExtDist of int * int| Write of int * int
Sourceval ok : ('a, 'b, 'c) t -> int -> ('a, 'b, 'c) res Sourceval get_byte :
ctor:
((([< `Rd | `Wr Rd ] as 'a, 'b) Safe.t ->
'c ->
('b, 'd, 'e) t ->
('b, 'd, 'e) res) ->
('b, 'd, 'e) state) ->
(int -> ('a, 'b) Safe.t -> 'c -> ('b, 'd, 'e) t -> ('b, 'd, 'e) res) ->
('a, 'b) Safe.t ->
'c ->
('b, 'd, 'e) t ->
('b, 'd, 'e) res Sourceval put_byte :
ctor:
(('a ->
([< `Rd | `Wr Wr ] as 'b, 'c) Safe.t ->
('d, 'c, 'e) t ->
('d, 'c, 'e) res) ->
('d, 'c, 'e) state) ->
int ->
('a -> ('b, 'c) Safe.t -> ('d, 'c, 'e) t -> ('d, 'c, 'e) res) ->
'a ->
('b, 'c) Safe.t ->
('d, 'c, 'e) t ->
('d, 'c, 'e) res Sourceval fill_byte :
ctor:
(('a ->
([< `Rd | `Wr Wr ] as 'b, 'c) Safe.t ->
('d, 'c, 'e) t ->
('d, 'c, 'e) res) ->
('d, 'c, 'e) state) ->
int ->
int ->
('a -> ('b, 'c) Safe.t -> ('d, 'c, 'e) t -> ('d, 'c, 'e) res) ->
'a ->
('b, 'c) Safe.t ->
('d, 'c, 'e) t ->
('d, 'c, 'e) res Sourceval peek_bits :
ctor:
((([< `Rd | `Wr Rd ] as 'a, 'b) Safe.t ->
'c ->
('b, 'd, 'e) t ->
('b, 'd, 'e) res) ->
('b, 'd, 'e) state) ->
int ->
(('a, 'b) Safe.t -> 'c -> ('b, 'd, 'e) t -> ('b, 'd, 'e) res) ->
('a, 'b) Safe.t ->
'c ->
('b, 'd, 'e) t ->
('b, 'd, 'e) res Sourceval drop_bits :
ctor:
((([< `Rd | `Wr Rd ] as 'a, 'b) Safe.t ->
'c ->
('b, 'd, 'e) t ->
('b, 'd, 'e) res) ->
('b, 'd, 'e) state) ->
int ->
(('a, 'b) Safe.t -> 'c -> ('b, 'd, 'e) t -> ('b, 'd, 'e) res) ->
('a, 'b) Safe.t ->
'c ->
('b, 'd, 'e) t ->
('b, 'd, 'e) res Sourceval get_bits :
ctor:
((([< `Rd | `Wr Rd ] as 'a, 'b) Safe.t ->
'c ->
('b, 'd, 'e) t ->
('b, 'd, 'e) res) ->
('b, 'd, 'e) state) ->
int ->
(int -> ('a, 'b) Safe.t -> 'c -> ('b, 'd, 'e) t -> ('b, 'd, 'e) res) ->
('a, 'b) Safe.t ->
'c ->
('b, 'd, 'e) t ->
('b, 'd, 'e) res Sourceval get_with_holding :
ctor:
((([< `Rd | `Wr Rd ] as 'a, 'b) Safe.t ->
'c ->
('b, 'd, 'e) t ->
('b, 'd, 'e) res) ->
('b, 'd, 'e) state) ->
(int -> ('a, 'b) Safe.t -> 'c -> ('b, 'd, 'e) t -> ('b, 'd, 'e) res) ->
('a, 'b) Safe.t ->
'c ->
('b, 'd, 'e) t ->
('b, 'd, 'e) res Sourceval get_int16 :
ctor:
((([< `Rd | `Wr Rd ] as 'a, 'b) Safe.t ->
'c ->
('b, 'd, 'e) t ->
('b, 'd, 'e) res) ->
('b, 'd, 'e) state) ->
(int -> ('a, 'b) Safe.t -> 'c -> ('b, 'd, 'e) t -> ('b, 'd, 'e) res) ->
('a, 'b) Safe.t ->
'c ->
('b, 'd, 'e) t ->
('b, 'd, 'e) res Sourceval fixed : 'a -> 'b -> ('c, 'd, 'e) t -> ('c, 'd, 'e) res Sourceval switch : 'a -> 'b -> ('c, 'd, 'e) t -> ('c, 'd, 'e) res Sourceexception Exn_invalid_distance of int * int Sourceval block :
([< `Rd | `Wr Rd ], 'a) Safe.t ->
'b ->
('a, 'a, 'c) t ->
('a, 'a, 'c) res Sourceval last :
([< `Rd | `Wr Rd ], 'a) Safe.t ->
'b ->
('a, 'c, 'd) t ->
('a, 'c, 'd) res Sourceval eval :
'a ->
'a ->
('a, 'a, 'b) t ->
[> `Await of ('a, 'a, 'b) t
| `End of ('a, 'a, 'b) t
| `Error of ('a, 'a, 'b) t * error
| `Flush of ('a, 'a, 'b) t ] Sourceval refill : int -> int -> ('a, 'b, 'c) t -> ('a, 'b, 'c) t Sourceval flush : int -> int -> ('a, 'b, 'c) t -> ('a, 'b, 'c) t Sourceval used_in : ('a, 'b, 'c) t -> int Sourceval used_out : ('a, 'b, 'c) t -> int Sourceval write : ('a, 'b, 'c) t -> int Sourceval bits_remaining : ('a, 'b, 'c) t -> int