package decompress

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

Install

Dune Dependency

Authors

Maintainers

Sources

decompress-v1.4.2.tbz
sha256=822f125b46c87f4a902c334db8c86d4d5f33ebe978e93c40351a4d3269b95225
sha512=9cb82615923a5fffc5c8dce1d9361a467e35e91092c25c98f5afda8f4226059c59eb695c55e63adf92d766c7747e15df186386bcaeb399497dd1ae5b024c09fa

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.