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.2.0.tbz
sha256=51983d4497ccb27c253e7464b03d38544aad51e0e7d537e405f4df6954c27ab0
sha512=17c7e3dc79b7cedaf649c208874a50a810002c71d061c133239b9813a9dfe424ba303a968ba68c728862bb20ceaa23465097334bc16b819317390d01c2f91f89
doc/decompress.zl/Zl/Higher/index.html
Module Zl.HigherSource
Source
val compress :
?level:int ->
w:window ->
q:De.Queue.t ->
i:bigstring ->
o:bigstring ->
refill:(bigstring -> int) ->
flush:(bigstring -> int -> unit) ->
unitcompress ?level ~w ~q ~i ~o ~refill ~flush is Zlib.compress (with ~header:true) provided by camlzip package.
wis the window used by LZ77 compression algorithm.qis shared-queue between compression algorithm and DEFLATE encoder.iis input buffer.ois output buffer.
When compress wants more input, it calls refill with i. The client returns how many bytes he wrote into i. If he returns 0, he signals end of input.
When compress has written output buffer, it calls flush with o and how many bytes it wrote.
Source
val uncompress :
allocate:(int -> window) ->
i:bigstring ->
o:bigstring ->
refill:(bigstring -> int) ->
flush:(bigstring -> int -> unit) ->
(unit, [> `Msg of string ]) resultuncompress ~allocate ~i ~o ~refill ~flush is Zlib.uncompress (with ~header:true) provided by camlzip package.
allocateis the allocator of window used by LZ77 uncompression algorithmiis input buffer.ois output buffer.
When compress wants more input, it calls refill with i. The client returns how many bytes he wrote into i. If he returns 0, he signals end of input.
When compress has written output buffer, it calls flush with o and how many bytes it wrote.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>