package decompress
Implementation of Zlib and GZip in OCaml
Install
Dune Dependency
Authors
Maintainers
Sources
decompress-1.5.2.tbz
sha256=a8c9a6ba132514d56ad3626fbd5e79124844836010350ee161d43bb29bf5762e
sha512=1a5a935ff55ebad83682cffb9792b1b5e3a189d2df483f77856ea683706219f7c50ff14b7ab1de0c5ce90e0d779bd06ab86afb29d39461192fbbf4b3fbaf600c
doc/decompress.lzo/Lzo/index.html
Module Lzo
Source
uncompress input output
returns a sub-layout of output
which is the inflated contents of input
. Otherwise, it returns:
`Malformed
if theinput
is not recognized as a LZO contents.`Invalid_argument
ifoutput
is not large enough to contain inflated contents.`Invalid_dictionary
if an op-code ofinput
refers to an unbound location.
uncompress ?chunk input
returns a fresh-allocated string
which is the inflated contents of input
. An internal Buffer.t
is used and it can be initialized with chunk
(default to 0x1000
). Otherwise, it returns same errors as uncompress
.
compress input output wrkmem
deflates input
and produces a LZO contents into output
. It uses wrkmem
to do the deflation. It returns the number of bytes wrotes into output
such as:
let len = compress input output wrkmem in
Bigarray.Array1.sub output 0 len
is the deflated contents of input
.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>