package decompress

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

Install

Dune Dependency

Authors

Maintainers

Sources

decompress-v1.4.0.tbz
sha256=d1669e07446d73dd5e16f020d4a1682abcbb1b7a1e3bf19b805429636c26a19b
sha512=808e278640ab84b8ead7c5b7d22b70e3809255e37cc80a595cc58dd4974e5240f70307f048041ab1d8678826ce041da4f186179aa7ebbba5e7cfacaaf054f3e6

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.