package lz4

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

Install

Dune Dependency

Authors

Maintainers

Sources

v1.2.0.tar.gz
md5=d2e3d607dbc2961a94312164c309f0fa
sha512=9b817e5446c156abb00acdc3da2925bbe725600bfb2f0761079252d9aabd2abd36ea84b69bdb252cc26419009465bc629f8cc677fb68e0518a844f5c5deed00d

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
open Ctypes

module C(F: Cstubs.FOREIGN) = struct
  let compressBound = F.(foreign "LZ4_compressBound" (int @-> returning int))
  let b_compress    = F.(foreign "LZ4_compress_limitedOutput"
                                (ocaml_bytes @-> ocaml_bytes @-> int @-> int @-> returning int))
  let ba_compress   = F.(foreign "LZ4_compress_limitedOutput"
                                (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))
end
OCaml

Innovation. Community. Security.