package zstd

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module ZstdSource

Zstandard - fast lossless compression algorithm

Sourceexception Error of string
Sourceval version : unit -> int * int * int
Sourceval compress : level:int -> ?dict:string -> string -> string

dict optional pre-defined dictionary content (see dictBuilder)

Sourceval decompress : int -> ?dict:string -> string -> string

decompress orig_size ?dict s

orig_size specifies size of buffer for decompression (not less than original size of uncompressed s) dict must be identical to the one used during compression, otherwise uncompressed data will be corrupted.