zstd/lib
inikep ed9a08538c Merge remote-tracking branch 'refs/remotes/Cyan4973/dev' into dev
# Conflicts:
#	lib/common/util.h
#	programs/paramgrill.c
#	visual/2013/fullbench/fullbench.vcxproj.filters
#	visual/2013/fuzzer/fuzzer.vcxproj.filters
2016-05-10 13:20:01 +02:00
..
common Merge remote-tracking branch 'refs/remotes/Cyan4973/dev' into dev 2016-05-10 13:20:01 +02:00
compress Added gnu90 test 2016-05-05 03:01:13 +02:00
decompress Merge remote-tracking branch 'refs/remotes/Cyan4973/dev' into dev 2016-05-10 13:20:01 +02:00
dictBuilder ordering of #include 2016-04-28 14:40:45 +02:00
legacy Reduced console display on loading lots of files with zstd --train. Reported by @KrzysFR, see #177 2016-05-09 04:44:45 +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 fixed Linux compilation 2016-05-09 18:04:07 +02:00
README.md common/util.h moved to programs/util.h 2016-05-09 16:19:25 +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 is exposed in common/zstd_static.h. API elements of common/zstd_static.h should be used with static linking only, as their definition may change in future version of the library.

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
  • common/zbuff_static.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
  • dictBuilder/zdict_static.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)