package decompress

  1. Overview
  2. Docs
type error = error_g
module F = RFC1951.F
type ('i, 'o) t = {
  1. d : ('i, 'o) RFC1951.t;
  2. z : ('i, 'o) state;
  3. text : bool;
  4. crc16 : Optint.t option;
  5. extra : string option;
  6. name : string option;
  7. comment : string option;
  8. mtime : int;
  9. os : OS.t;
}
and ('i, 'o) k = (Safe.ro, 'i) Safe.t -> (Safe.wo, 'o) Safe.t -> ('i, 'o) t -> ('i, 'o) res
and ('i, 'o) state =
  1. | Header of ('i, 'o) k
  2. | Deflate
  3. | Crc32 of ('i, 'o) k
  4. | Size of ('i, 'o) k
  5. | Finish
  6. | Exception of error
and ('i, 'o) res =
  1. | Cont of ('i, 'o) t
  2. | Wait of ('i, 'o) t
  3. | Flush of ('i, 'o) t
  4. | Ok of ('i, 'o) t
  5. | Error of ('i, 'o) t * error
and meth = RFC1951.meth =
  1. | PARTIAL
  2. | SYNC
  3. | FULL
val pp_error : Stdlib.Format.formatter -> error_g -> unit
val pp_state : Stdlib.Format.formatter -> ('a, 'b) state -> unit
val pp : Stdlib.Format.formatter -> ('a, 'b) t -> unit
val ok : ('i, 'o) t -> ('i0, 'o0) res
val error : ('i, 'o) t -> error -> ('i0, 'o0) res
val put_byte : ctor: (('a -> ([< `Rd | `Wr Wr ] as 'b, 'c) Safe.t -> ('d, 'e) t -> ('f, 'g) res) -> ('h, 'i) state) -> int -> ('j -> ('b, 'c) Safe.t -> ('k, 'l) t -> ('f, 'g) res) -> 'm -> ('b, 'c) Safe.t -> ('d, 'e) t -> ('f, 'g) res
val 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) -> 'e -> ('b, 'c) Safe.t -> ('d, 'c) t -> ('d, 'c) res
val put_string : ctor: (('a -> ([< `Rd | `Wr Wr ] as 'b, 'c) Safe.t -> ('d, 'e) t -> ('f, 'g) res) -> ('h, 'i) state) -> string -> ('j -> ('b, 'c) Safe.t -> ('k, 'l) t -> ('f, 'g) res) -> 'm -> ('b, 'c) Safe.t -> ('d, 'e) t -> ('f, 'g) res
val align : ctor: (('a -> ([< `Rd | `Wr Wr ] as 'b, 'c) Safe.t -> ('d, 'e) t -> ('f, 'c) res) -> ('f, 'c) state) -> ('g -> ('h, 'i) Safe.t -> ('j, 'k) t -> ('f, 'c) res) -> 'l -> ('h, 'i) Safe.t -> ('d, 'e) t -> ('f, 'c) res
val put_short_msb : 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) -> 'e -> ('b, 'c) Safe.t -> ('d, 'c) t -> ('d, 'c) res
val digest_crc16_byte : int -> Checkseum.Crc32.t -> Checkseum.Crc32.t
val digest_crc16_string : Stdlib.String.t -> Checkseum.Crc32.t -> Checkseum.Crc32.t
module KHeader : sig ... end
module KSize : sig ... end
module KCrc32 : sig ... end
val size : (Safe.ro, 'a) Safe.t -> (Safe.wo, 'b) Safe.t -> ('a, 'b) t -> ('a, 'b) res
val crc32 : (Safe.ro, 'a) Safe.t -> (Safe.wo, 'b) Safe.t -> ('a, 'b) t -> ('a, 'b) res
val deflate : (Lz77.Safe.ro, 'a) Lz77.Safe.t -> (Safe.wo, 'a) Safe.t -> ('b, 'c) t -> ('d, 'e) res
val nop : ('a -> 'b -> 'c -> 'd) -> 'e -> 'f -> 'g -> 'h
val fextra : Stdlib.String.t -> ((Safe.ro, 'a) Safe.t -> (Safe.wo, 'b) Safe.t -> ('a, 'b) t -> ('c, 'd) res) -> (Safe.ro, 'c) Safe.t -> (Safe.wo, 'd) Safe.t -> ('c, 'd) t -> ('c, 'd) res
val fname : Stdlib.String.t -> ((Safe.ro, 'a) Safe.t -> (Safe.wo, 'b) Safe.t -> ('a, 'b) t -> ('c, 'd) res) -> (Safe.ro, 'c) Safe.t -> (Safe.wo, 'd) Safe.t -> ('c, 'd) t -> ('c, 'd) res
val fcomment : Stdlib.String.t -> ((Safe.ro, 'a) Safe.t -> (Safe.wo, 'b) Safe.t -> ('a, 'b) t -> ('c, 'd) res) -> (Safe.ro, 'c) Safe.t -> (Safe.wo, 'd) Safe.t -> ('c, 'd) t -> ('c, 'd) res
val fcrc16 : Optint.t -> ((Safe.ro, 'a) Safe.t -> (Safe.wo, 'b) Safe.t -> ('a, 'b) t -> ('a, 'b) res) -> (Safe.ro, 'a) Safe.t -> (Safe.wo, 'b) Safe.t -> ('a, 'b) t -> ('a, 'b) res
val header : (Safe.ro, 'a) Safe.t -> (Safe.wo, 'b) Safe.t -> ('a, 'b) t -> ('a, 'b) res
val eval : 'a -> 'b -> ('c, 'd) t -> [> `Await of ('e, 'f) t | `End of ('g, 'h) t | `Error of ('i, 'j) t * error | `Flush of ('k, 'l) t ]
val default : witness:'a Safe.Buffer.t -> ?text:bool -> ?header_crc:bool -> ?extra:string -> ?name:string -> ?comment:string -> ?mtime:int -> ?os:OS.t -> int -> ('b, 'c) t
val get_frequencies : ('a, 'b) t -> RFC1951.F.t
val set_frequencies : ?paranoid:bool -> (int array * int array) -> ('a, 'b) t -> ('c, 'd) t
val finish : ('a, 'b) t -> ('c, 'd) t
val no_flush : int -> int -> ('a, 'b) t -> ('c, 'd) t
val partial_flush : int -> int -> ('a, 'b) t -> ('c, 'd) t
val sync_flush : int -> int -> ('a, 'b) t -> ('c, 'd) t
val full_flush : int -> int -> ('a, 'b) t -> ('c, 'd) t
val flush_of_meth : RFC1951.meth -> int -> int -> ('a, 'b) t -> ('c, 'd) t
val flush : int -> int -> ('a, 'b) t -> ('c, 'd) t
val used_in : ('a, 'b) t -> int
val used_out : ('a, 'b) t -> int
include sig ... end
val to_result : 'a -> 'b -> ?meth:(meth * int) -> ('c -> int option -> int) -> ('d -> int -> int) -> ('e, 'f) t -> (('g, 'h) t, error) Stdlib.result
val bytes : 'a -> 'b -> ?meth:(meth * int) -> ('c -> int option -> int) -> ('c -> int -> int) -> ('d, 'e) t -> (('f, 'g) t, error) Stdlib.result
val bigstring : 'a -> 'b -> ?meth:(meth * int) -> ('c -> int option -> int) -> ('c -> int -> int) -> ('d, 'e) t -> (('f, 'g) t, error) Stdlib.result