package zstandard

  1. Overview
  2. Docs
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