package lz4

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

Install

Dune Dependency

Authors

Maintainers

Sources

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

doc/src/lz4.bindings/LZ4_bindings.ml.html

Source file LZ4_bindings.ml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
open Ctypes

module C(F: Cstubs.FOREIGN) = struct
  let compressBound = F.(foreign "LZ4_compressBound" (int @-> returning int))
  let b_compress    = F.(foreign "LZ4_compress_default"
                                (ocaml_bytes @-> ocaml_bytes @-> int @-> int @-> returning int))
  let ba_compress   = F.(foreign "LZ4_compress_default"
                                (ptr char @-> ptr char @-> int @-> int @-> returning int))
  let b_decompress  = F.(foreign "LZ4_decompress_safe"
                                (ocaml_bytes @-> ocaml_bytes @-> int @-> int @-> returning int))
  let ba_decompress = F.(foreign "LZ4_decompress_safe"
                                (ptr char @-> ptr char @-> int @-> int @-> returning int))
  let version_number = F.(foreign "LZ4_versionNumber" (void @-> returning int))
end
OCaml

Innovation. Community. Security.