Module Zstandard.Output
type 'a tZstd exposes multiple API flavors which can be used to transform strings into strings. The
'a ttype encodes the various ways to return a string from Zstd's functions into the OCaml world.
val in_buffer : ?pos:int -> ?len:int -> Core_kernel.Bigstring.t -> int tPassing
in_buffer s ~pos ~lento Zstd functions will cause them to output their result in the buffers.(pos) ... s.(pos+len), and return the actual length that was used.
val allocate_string : size_limit:int option -> string tPassing
allocate_stringto Zstd functions will cause them to allocate an ocaml string to contain their result.
val allocate_bigstring : size_limit:int option -> Core_kernel.Bigstring.t tPassing
allocate_bigstringto Zstd functions will cause them to allocate an ocaml string to contain their result.