package decompress
Implementation of Zlib and GZip in OCaml
Install
Dune Dependency
Authors
Maintainers
Sources
decompress-1.5.0.tbz
sha256=73183dc1186ab6cf1ca641146f6948f2fae6a69729ec0a1e62943385f9895077
sha512=31508b4ae16f6850fd86391f4bb3f950bba12ac45398c8ddb1b6e74f6a96f6a150b81377d6fd49146f1f0789c43a761d709d1d73a782d9c0df0d00a3c9663c89
doc/decompress.de/De/Inf/Ns/index.html
Module Inf.Ns
Source
A non-streamable implementation of the RFC 1951. It considers the input to be whole and is therefore able to save some time
Source
type error = [
| `Unexpected_end_of_input
| `Unexpected_end_of_output
| `Invalid_kind_of_block
| `Invalid_dictionary
| `Invalid_complement_of_length
| `Invalid_distance
| `Invalid_distance_code
]
The type for inflation errors.
Pretty-printer of error
.
inflate src dst w
inflates the content of src
into dst
.
In case of sucess, it returns the bytes read and the bytes writen in an Ok
result. In case of failure, it returns the error in an Error
result. We assume that src
is well formed and dst
is enough larger to store the result of the inflation. The usual worst case is when dst
must be equal (in size) or larger than src
. Such case appears for really small objects and in that case, we returns Error `Unexpected_end_of_output
.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>