Decompress is a pure implementation of zlib. The goal is to create an available package for Mirage OS for zlib in OCaml (instead a C code).
We respect the interface of zlib and all flush mode is available (experimental):
SYNC_FLUSHPARTIAL_FLUSHFULL_FLUSHThe interface proposed is a non-blocking interface.
Home page: http://din.osau.re/
Documentation: https://mirage.github.io/decompress/api.docdir/
Contact: Romain Calascibetta <romain.calascibet ta@gmail.com>
Decompress can be installed with opam:
opam install decompressSample program are located in the bin directory of the distribution. It can be built with (dependancy with Unix module, the cmdliner package and a C code):
ocamlbuild -use-ocamlfind bin/dpipe.nativeAnother good example is provided in bin/easy.ml with the signature:
val compress : ?level:int -> string -> string
val uncompress : string -> stringAnd you can compile this program with:
ocamlbuild -use-ocamlfind bin/easy.nativeBut keep in your mind, it's an easy example and it's not optimized for a productive environment - so, don't copy/paste and think.
The documentation is available online to understand how to use Decompress.
base-bytes meta-packagetopkg, ocamlfind and ocamlbuild to build the projectIf you want to compile the test program, you need:
camlzip to compare decompress with zlibre.1.7.1alcotest