package decompress
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
Implementation of Zlib and GZip in OCaml
Install
dune-project
Dependency
Authors
Maintainers
Sources
decompress-v1.4.0.tbz
sha256=d1669e07446d73dd5e16f020d4a1682abcbb1b7a1e3bf19b805429636c26a19b
sha512=808e278640ab84b8ead7c5b7d22b70e3809255e37cc80a595cc58dd4974e5240f70307f048041ab1d8678826ce041da4f186179aa7ebbba5e7cfacaaf054f3e6
doc/decompress.de/De/Def/Ns/index.html
Module Def.NsSource
The type for deflation errors.
Pretty-printer for error.
compress_bound len returns a clue about how many bytes we need to store the result of the deflation of len bytes. It's a pessimistic calculation.
deflate ~level src dst deflates the content of src into dst.
In case of sucess, it returns the bytes writen in an Ok result. In case of failure, it returns the error in an Error result. compress_bound can be used to determine how many bytes the user needs to allocate as the destination buffer when he wants to compress N bytes.
Here is an example of how to compress any inputs:
val input : bigstring
let len = De.Def.Ns.compress_bound (De.bigstring_length input) in
let dst = De.bigstring_create len in
De.Def.Ns.deflate ~level:4 input dst sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>