package decompress

  1. Overview
  2. Docs
Pure OCaml implementation of Zlib

Install

Dune Dependency

Authors

Maintainers

Sources

decompress-0.7.tbz
sha256=fefe8289bf5b2d8a94f4867d45ec6aa81a708cc5024939061be1d30c17c126e1
md5=2e4a75f3ca15d0bcad6701d374db1a4d

Description

Build Status

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_FLUSH
  • PARTIAL_FLUSH
  • FULL_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 decompress

Sample 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.native

Another 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.native

But 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.02.0
  • base-bytes meta-package
  • Bigarray module (provided by the standard library of OCaml)
  • topkg, ocamlfind and ocamlbuild to build the project

If you want to compile the test program, you need:

  • camlzip to compare decompress with zlib
  • re
  • alcotest

Published: 19 Oct 2017

README

Decompress - 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_FLUSH

  • PARTIAL_FLUSH

  • FULL_FLUSH

The 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>

Installation

Decompress can be installed with opam:

opam install decompress

Sample 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.native

Another 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.native

But 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.02.0

  • base-bytes meta-package

  • Bigarray module (provided by the standard library of OCaml)

  • topkg, ocamlfind and ocamlbuild to build the project

If you want to compile the test program, you need:

  • camlzip to compare decompress with zlib

  • re

  • alcotest

Dependencies (5)

  1. base-bytes
  2. topkg build
  3. ocamlfind build
  4. ocamlbuild build
  5. ocaml >= "4.03.0" & < "4.08.0"

Dev Dependencies

None

Used by (2)

  1. git >= "1.11.0" & < "2.0.0" | >= "3.0.0" & < "3.3.1"
  2. imagelib >= "20171028" & < "20200929"

Conflicts

None

OCaml

Innovation. Community. Security.