zstd/lib
2016-07-12 13:42:10 +02:00
..
common first version of doubleFast 2016-07-12 09:47:31 +02:00
compress updated paramgrill 2016-07-12 13:42:10 +02:00
decompress added ZSTD_estimateDCtxSize() 2016-07-11 13:46:25 +02:00
dictBuilder sample set limitation closer to 2 GB 2016-07-06 16:25:46 +02:00
legacy simplified legacy functions, no longer need magic number 2016-07-07 14:40:13 +02:00
.gitignore Added "dictionary decompression" example 2016-07-07 14:08:00 +02:00
libzstd.pc.in Initial release 2015-01-24 01:58:16 +01: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 doc 2016-07-08 11:45:08 +02:00

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

In order to create dictionaries from some training sets, it's needed to include all files from dictBuilder directory

Legacy support

Zstandard can decode previous formats, starting from v0.1. Support for these format is provided in folder legacy. It's also required to compile the library with ZSTD_LEGACY_SUPPORT = 1.

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)