zstandard

OCaml bindings to Zstandard
type t
val create : dictionary:Input.t -> compression_level:int -> t
val free : t -> unit

free t deallocate the underlying datastructure. Subsequent uses of t will cause exceptions.

val compress : t -> context:Compression_context.t -> input:Input.t -> output:'a Output.t -> 'a