zstd/lib
Yann Collet efd0b4993a fixed fuzzer error (inter-block repeated offsets) 2016-06-16 00:53:56 +02:00
..
common fixed corruption with inter-blocks repeated offsets 2016-06-14 13:46:11 +02:00
compress fixed fuzzer error (inter-block repeated offsets) 2016-06-16 00:53:56 +02:00
decompress Fixed decompression of literals in dictionary mode 2016-06-15 23:11:20 +02:00
dictBuilder merged `huf_static.h` into `huf.h` . Requires `HUF_STATIC_LINKING_ONLY` macro. 2016-06-05 00:42:28 +02:00
legacy Updated huff0 2016-06-11 01:31:54 +02:00
LICENSE Initial release 2015-01-24 01:58:16 +01:00
Makefile Added `-Wdeclaration-after-statement` compilation flag 2016-06-02 17:56:00 +02:00
README.md updated README following merging of `*_static.h` 2016-06-05 01:38:10 +02:00
libzstd.pc.in Initial release 2015-01-24 01:58:16 +01:00

README.md

zstd - library files

The lib directory contains several files, but depending on target use case, some of them may not be necessary.

Minimal library files

To build the zstd library the following files are required:

Stable API is exposed in common/zstd.h. Advanced and experimental API can be enabled by defining ZSTD_STATIC_LINKING_ONLY. Never use them with a dynamic library, as their definition may change in future versions.

Separate compressor and decompressor

To build a separate zstd compressor all files from common/ and compressor/ directories are required. In a similar way to build a separate zstd decompressor all files from common/ and decompressor/ directories are needed.

Buffered streaming

This complementary API makes streaming integration easier. It is used by zstd command line utility, and 7zip plugin :

  • common/zbuff.h
  • compress/zbuff_compress.c
  • decompress/zbuff_decompress.c

Dictionary builder

To create dictionaries from training sets :

  • dictBuilder/divsufsort.c
  • dictBuilder/divsufsort.h
  • dictBuilder/zdict.c
  • dictBuilder/zdict.h

Miscellaneous

The other files are not source code. There are :

  • LICENSE : contains the BSD license text
  • Makefile : script to compile or install zstd library (static or dynamic)
  • libzstd.pc.in : for pkg-config (make install)