package decompress

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

Install

dune-project
 Dependency

Authors

Maintainers

Sources

decompress-1.6.1.tbz
sha256=c9898cbc98535d5dd1d4d75492ec27c1105b8f6cce5f79da5d34053fda40c585
sha512=1312f2b47ac7a1842a37d62811d252a467b6eff17bbdff168af9198ef8e344a74aeceddbbf2b43fb2053e114057cc625b416b03b03347087054e3e2e529c9ad1

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.