Module Unzip

module Unzip: sig .. end
Decompression algorithm.

Unzip decompression algorithm is compliant with RFC 1950 and 1951 which are describing the "inflate" algorithm used in most popular file formats. This format is also the one used by the popular ZLib library.


type error_msg = 
| Invalid_huffman
| Invalid_data
| Invalid_crc
| Truncated_data
| Unsupported_dictionary
exception Error of error_msg
val inflate : ?header:bool -> IO.input -> IO.input
wrap an input using "inflate" decompression algorithm. raises Error if an error occurs (this can only be caused by malformed input data).
type t 
val inflate_init : ?header:bool -> IO.input -> t
val inflate_data : t -> string -> int -> int -> int