decompressversion Documentation on ocaml.org
Pure OCaml implementation of Zlib
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_FLUSH
The interface proposed is a non-blocking interface.
Documentation: https://mirage.github.io/decompress/api.docdir/
Installation
Decompress can be installed with opam:
opam install decompressSample programs
Sample 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 -> string
And 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.
Build Requirements
- OCaml >= 4.03.0
base-bytesmeta-package- Bigarray module (provided by the standard library of OCaml)
topkg,ocamlfindandocamlbuildto build the project
If you want to compile the test program, you need:
camlzipto comparedecompresswithzlibre.1.7.1alcotest
| Author | Romain Calascibetta <romain.calascibetta@gmail.com> |
|---|---|
| License | MIT |
| Published | |
| Homepage | https://github.com/mirage/decompress |
| Issue Tracker | https://github.com/mirage/decompress/issues |
| Maintainer | Romain Calascibetta <romain.calascibetta@gmail.com> |
| Available | arch != "s390x" |
| Dependencies | |
| Source [http] | https://github.com/mirage/decompress/releases/download/v0.8/decompress-0.8.tbz sha256=ea6987f72816044ccf3edb586e3b64668d53c5ef1b0a735119e5c9d740504240 md5=547eaf0803af3ed01ff7801facfe27e6 |
| Edit | https://github.com/ocaml/opam-repository/tree/master/packages/decompress/decompress.0.8/opam |


