package decompress

  1. Overview
  2. Docs
Implementation of Zlib and GZip in OCaml

Install

Dune Dependency

Authors

Maintainers

Sources

decompress-v1.4.1.tbz
sha256=0130ea6acb61b0a25393fa23148e116d7a17c77558196f7abddaee9e05a1d7a8
sha512=1668df538fba7c96574146a18fcbeef5200ea0e36110ec94c9b9924e368f465447702029fdb00d2749ca55081169b0e7c74e2f0887e4367ec580633e1e2a1c6c

doc/decompress.zl/Zl/Inf/Ns/index.html

Module Inf.NsSource

A non-streamable implementation of the RFC 1950. It considers the input to be whole and is therefore able to save some time

Sourcetype error = [
  1. | `Invalid_header
  2. | `Invalid_checksum
  3. | De.Inf.Ns.error
]

The type for inflation errors.

Sourceval pp_error : Format.formatter -> error -> unit

Pretty-printer of error.

Sourceval inflate : bigstring -> bigstring -> (int * int, [> error ]) result

inflate src dst inflates the content of src into dst.

In case of success, it returns the bytes read and bytes writen in an Ok result. In case of failure, it returns the error in a Error result.

OCaml

Innovation. Community. Security.