ezgzip

AuthorHezekiah M. Carty <hez@0ok.org>
LicenseMIT
Homepagehttps://github.com/hcarty/ezgzip
Issue Trackerhttps://github.com/hcarty/ezgzip/issues
MaintainerHezekiah M. Carty <hez@0ok.org>
Dependencies
&alcotest>= 0.8.1
astring
benchmark>= 1.4
camlzip
jbuilder>= 1.0+beta13
ocplib-endian
odoc>= 1.1.1
qcheck>= 0.7
rresult
Availableocaml-version >= "4.03.0"
PublishedMar 2, 2018
Source [http] https://github.com/hcarty/ezgzip/archive/v0.2.1.tar.gz
6a0f8aa64541a32691f9884f0ef8737f
StatisticsInstalled 10 times last month.
Edithttps://github.com/ocaml/opam-repository/tree/master/packages/ezgzip/ezgzip.0.2.1/opam

# ezgzip - Simple gzip (de)compression library

ezgzip is a simple interface focused on string -> string zlib and gzip (de)compression.

Documentation is available here.

An example illustrating how to gzip compress and then decompress a string:

open Rresult

let () =
  let original = "Hello world" in
  let compressed = Ezgzip.compress original in
  let decompressed = R.get_ok (Ezgzip.decompress compressed) in
  assert (original = decompressed)

This library currently uses the zlib bindings provided by camlzip. The gzip header/footer code is based on the upstream specification.

No package is dependent