package decompress
Implementation of Zlib and GZip in OCaml
Install
Dune Dependency
Authors
Maintainers
Sources
decompress-v1.4.1.tbz
sha256=0130ea6acb61b0a25393fa23148e116d7a17c77558196f7abddaee9e05a1d7a8
sha512=1668df538fba7c96574146a18fcbeef5200ea0e36110ec94c9b9924e368f465447702029fdb00d2749ca55081169b0e7c74e2f0887e4367ec580633e1e2a1c6c
doc/decompress.de/De/Lz77/index.html
Module De.Lz77
Source
The type for input sources. With a `Manual
source the client must provide input with src
. With `String
or `Channel
source the client can safely discard `Await
case (with assert false
).
The type for states.
literals s
is frequencies of lengths and literals emitted by s
since it was created.
distances s
is frequencies of distances emitted by s
since it was created.
src s i j l
provides s
with l
bytes to read, starting at j
in i
. This byte range is read by calls to compress
with s
until `Await
is returned. To signal the end of input call the function with l = 0
.
compress s
is:
`Await
ifs
has a`Manual
input source and awits for more input. The client must usesrc
to provide it.`Flush
ifs
filled completely the shared-queueq
(given instate
).Queue.junk_exn
orQueue.pop_exn
can be used to give some free cells tocompress
.`End
ifs
compressed all input. Given shared-queueq
is possibly not empty.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>