Module Decompress_deflate.RFC1951Source
Sourcetype ('i, 'o) t = {hold : int;bits : int;temp : ([ Safe.ro | Safe.wo ], '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;read : int32;write : int;adler : Checkseum.Adler32.t;crc : Checkseum.Crc32.t;state : ('i, 'o) state;wi : 'i Buffer.t;wo : 'o Buffer.t;
} 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 -> ([< `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) res Sourceval 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) res Sourceval 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) res Sourceval put_bits :
ctor:
(('a -> ([< `Rd | `Wr Wr ] as 'b, 'c) Safe.t -> ('d, 'c) t -> ('d, 'c) res) ->
('d, 'c) state) ->
(int * int) ->
('a -> ('b, 'c) Safe.t -> ('d, 'c) t -> ('d, 'c) res) ->
'a ->
('b, 'c) Safe.t ->
('d, 'c) t ->
('d, 'c) res Sourceval put_bit :
ctor:
(('a -> ([< `Rd | `Wr Wr ] as 'b, 'c) Safe.t -> ('d, 'c) t -> ('d, 'c) res) ->
('d, 'c) state) ->
bool ->
('a -> ('b, 'c) Safe.t -> ('d, 'c) t -> ('d, 'c) res) ->
'a ->
('b, 'c) Safe.t ->
('d, 'c) t ->
('d, 'c) res Sourceval get_tree_symbols :
int ->
int array ->
int ->
int array ->
int array * int array Sourceval zip : 'a array -> 'b array -> ('a * 'b) array 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, 'a) t -> ('a, 'a) t Sourceval no_flush : int -> int -> ('a, 'b) t -> ('a, 'b) t Sourceval partial_flush : int -> int -> ('a, 'a) t -> ('a, 'a) t Sourceval sync_flush : int -> int -> ('a, 'a) t -> ('a, 'a) t Sourceval full_flush : int -> int -> ('a, 'a) t -> ('a, 'a) t Sourceval flush_of_meth : meth -> int -> int -> ('a, 'a) t -> ('a, 'a) t 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 used_in : ('a, 'b) t -> int Sourceval used_out : ('a, 'b) t -> int Sourceval read : ('a, 'b) t -> int32 Sourceval bits_remaining : ('a, 'b) t -> int include sig ... end
Sourceval to_result :
'a ->
'a ->
?meth:(meth * int) ->
('a -> int option -> int) ->
('a -> int -> int) ->
('a, 'a) t ->
(('a, 'a) t, error) result Sourceval bytes :
'a ->
'a ->
?meth:(meth * int) ->
('a -> int option -> int) ->
('a -> int -> int) ->
('a, 'a) t ->
(('a, 'a) t, error) result Sourceval bigstring :
'a ->
'a ->
?meth:(meth * int) ->
('a -> int option -> int) ->
('a -> int -> int) ->
('a, 'a) t ->
(('a, 'a) t, error) result