package lz4

  1. Overview
  2. Docs
Bindings to the LZ4 compression algorithm

Install

dune-project
 Dependency

Authors

Maintainers

Sources

lz4-1.3.0.tbz
sha256=3cbbd2003916442d8ec797e48f0c8433e1a50e98c549777ad0de2e0fb774248e
sha512=54859f27d4b7c9d60be056951f0dd8617fabe7400c0a35842bb65c7f795d1859dbfec678ceea82f9c3d3521f97e7b049d06553a21a70d50d8ba69c83d4031290

doc/lz4/LZ4/index.html

Module LZ4Source

LZ4 compression algorithm

Sourceexception Input_too_large
Sourceexception Corrupted
Sourceval compress_bound : int -> int

compress_bound sz returns the maximum size of the LZ4 output for sz bytes of input. It raises Input_too_large if sz > 0x7E000000 or if the result would be larger than Pervasives.max_int (the latter is only possible, if Sys.word_size = 32). Raises Invalid_argument "LZ4.compress_bound" if sz is negative.

Sourceval version_number : int

Version number of the LZ4 library

Sourcemodule type S = sig ... end
Sourcemodule Bytes : S with type storage = Bytes.t