Module Decompress_inflate.GzipSource
Sourcetype ('i, 'o) t = {d : ('i, 'o, crc) RFC1951.t;z : ('i, 'o) state;mtime : Optint.t;xfl : int;os : OS.t;name : string option;crc16 : Optint.t;hcrc16 : int option;
} Sourceand ('i, 'o) state = | Inflate| Crc32 of ('i, 'o) k| Size 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 get_int16 :
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_string :
ctor:
((([< `Rd | `Wr Rd ] as 'a, 'b) Safe.t -> 'c -> ('b, 'd) t -> ('b, 'd) res) ->
('b, 'd) state) ->
int ->
(string -> ('a, 'b) Safe.t -> 'c -> ('b, 'd) t -> ('b, 'd) res) ->
('a, 'b) Safe.t ->
'c ->
('b, 'd) t ->
('b, 'd) res Sourceval get_zero_term_string :
ctor:
((([< `Rd | `Wr Rd ] as 'a, 'b) Safe.t -> 'c -> ('b, 'd) t -> ('b, 'd) res) ->
('b, 'd) state) ->
(string -> ('a, 'b) Safe.t -> 'c -> ('b, 'd) t -> ('b, 'd) res) ->
('a, 'b) Safe.t ->
'c ->
('b, 'd) t ->
('b, 'd) res Sourceval digest_crc16_byte :
(int -> 'a -> 'b -> ('c, 'd) t -> 'e) ->
int ->
'a ->
'b ->
('c, 'd) t ->
'e Sourceval digest_crc16_int16 :
(int -> 'a -> 'b -> ('c, 'd) t -> 'e) ->
int ->
'a ->
'b ->
('c, 'd) t ->
'e Sourceval digest_crc16_z_string :
(String.t -> 'a -> 'b -> ('c, 'd) t -> 'e) ->
String.t ->
'a ->
'b ->
('c, 'd) t ->
'e Sourceval digest_crc16_n_string :
(String.t -> 'a -> 'b -> ('c, 'd) t -> 'e) ->
int ->
String.t ->
'a ->
'b ->
('c, 'd) t ->
'e Sourceval nop : ('a -> 'b -> 'c -> 'd) -> 'a -> 'b -> 'c -> 'd 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 Sourceval mtime : ('a, 'b) t -> Optint.t Sourceval name : ('a, 'b) t -> string option 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