Module Decompress_impl.RFC1951_deflateSource
Sourcetype ('i, 'o) t = {hold : int;bits : int;temp : ([ Safe.read | Safe.write ], 'o) Safe.t;o_off : int;o_pos : int;o_len : int;i_off : int;i_pos : int;i_len : int;level : int;wbits : int;write : int;adler : Checkseum.Adler32.t;state : ('i, 'o) state;
} Sourceand ('i, 'o) state = | MakeBlock of ('i, 'o) block| WriteBlock of ('i, 'o) k| FastBlock of (int * int) array * (int * int) array * Hunk.t Q.t * code * flush| AlignBlock of F.t option * bool| FixedBlock of F.t| AlignF of ('i, 'o) k| 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 flush = | Sync of F.t| Partial of F.t| Full| Final
Sourceand code = | Length| ExtLength| Dist| ExtDist
Sourceand meth = | PARTIAL| SYNC| FULL
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 put_short_lsb :
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 align :
ctor:
(('a ->
([< `Read | `Write Write ] as 'b, 'c) Safe.t ->
('d, 'e) t ->
('f, 'e) res) ->
('f, 'e) state) ->
('a -> ('b, 'c) Safe.t -> ('d, 'e) t -> ('f, 'e) res) ->
'a ->
('b, 'c) Safe.t ->
('d, 'e) t ->
('f, 'e) res Sourceval put_bits :
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 put_bit :
ctor:
(('a ->
([< `Read | `Write Write ] as 'b, 'c) Safe.t ->
('d, 'e) t ->
('f, 'e) res) ->
('f, 'e) state) ->
bool ->
('a -> ('b, 'c) Safe.t -> ('d, 'e) t -> ('f, 'e) res) ->
'a ->
('b, 'c) Safe.t ->
('d, 'e) t ->
('f, 'e) res Sourceval get_tree_symbols :
int ->
int array ->
int ->
int array ->
int array * int array Sourceval block_of_level : wbits:int -> ?frequencies:F.t -> int -> ('a, 'b) block Sourceval zip : 'a array -> 'b array -> ('a * 'b) array Sourceval write_fast_block :
'a ->
([< `Read | `Write Write ], 'b) Safe.t ->
('c, 'd) t ->
(int * int) array ->
(int * int) array ->
Hunk.t Q.t ->
code ->
flush ->
('e, 'd) res Sourceval flush : int -> int -> ('a, 'b) t -> ('a, 'b) t Sourceval set_frequencies :
?paranoid:bool ->
(int array * int array) ->
('a, 'b) t ->
('a, 'b) t Sourceval finish : ('a, 'b) t -> ('b, 'b) t Sourceval no_flush : int -> int -> ('a, 'b) t -> ('a, 'b) t Sourceval partial_flush : int -> int -> ('a, 'b) t -> ('b, 'b) t Sourceval sync_flush : int -> int -> ('a, 'b) t -> ('b, 'b) t Sourceval full_flush : int -> int -> ('a, 'b) t -> ('b, 'b) t Sourceval flush_of_meth : meth -> int -> int -> ('a, 'b) t -> ('b, 'b) t 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 used_in : ('a, 'b) t -> int Sourceval used_out : ('a, 'b) t -> int Sourceval bits_remaining : ('a, 'b) t -> int Sourceval default : proof:'a B.t -> ?wbits:int -> int -> ('b, 'a) t