2016-02-17 16:47:29 +00: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
|
|
|
|
|
2016-04-25 09:31:28 +00:00
|
|
|
To build the zstd library the following files are required:
|
|
|
|
|
|
|
|
- [common/bitstream.h](common/bitstream.h)
|
|
|
|
- [common/error_private.h](common/error_private.h)
|
|
|
|
- [common/error_public.h](common/error_public.h)
|
|
|
|
- common/fse.h
|
2016-05-09 14:19:25 +00:00
|
|
|
- common/fse_decompress.c
|
2016-04-25 09:31:28 +00:00
|
|
|
- common/huf.h
|
|
|
|
- [common/mem.h](common/mem.h)
|
2016-04-25 09:36:44 +00:00
|
|
|
- [common/zstd.h]
|
2016-04-25 09:31:28 +00:00
|
|
|
- common/zstd_internal.h
|
|
|
|
- compress/fse_compress.c
|
|
|
|
- compress/huf_compress.c
|
|
|
|
- compress/zstd_compress.c
|
2016-06-04 23:38:10 +00:00
|
|
|
- compress/zstd_opt.h
|
2016-04-25 09:31:28 +00:00
|
|
|
- decompress/huf_decompress.c
|
|
|
|
- decompress/zstd_decompress.c
|
2016-02-17 16:47:29 +00:00
|
|
|
|
2016-04-25 09:36:44 +00:00
|
|
|
Stable API is exposed in [common/zstd.h].
|
2016-06-04 23:38:10 +00:00
|
|
|
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.
|
2016-03-10 00:09:41 +00:00
|
|
|
|
2016-04-25 09:36:44 +00:00
|
|
|
[common/zstd.h]: common/zstd.h
|
|
|
|
|
2016-04-25 09:31:28 +00:00
|
|
|
|
|
|
|
#### Separate compressor and decompressor
|
|
|
|
|
2016-04-25 09:36:44 +00:00
|
|
|
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.
|
2016-04-25 09:31:28 +00:00
|
|
|
|
2016-03-10 00:09:41 +00:00
|
|
|
|
2016-02-17 16:47:29 +00:00
|
|
|
#### Buffered streaming
|
|
|
|
|
|
|
|
This complementary API makes streaming integration easier.
|
2016-03-10 00:09:41 +00:00
|
|
|
It is used by `zstd` command line utility, and [7zip plugin](http://mcmilk.de/projects/7-Zip-ZStd) :
|
2016-02-17 16:47:29 +00:00
|
|
|
|
2016-04-25 09:31:28 +00:00
|
|
|
- common/zbuff.h
|
|
|
|
- compress/zbuff_compress.c
|
|
|
|
- decompress/zbuff_decompress.c
|
2016-02-17 16:47:29 +00:00
|
|
|
|
2016-07-08 08:42:59 +00:00
|
|
|
|
2016-02-17 16:47:29 +00:00
|
|
|
#### Dictionary builder
|
|
|
|
|
2016-07-08 08:42:59 +00:00
|
|
|
In order to create dictionaries from some training sets,
|
|
|
|
it's needed to include all files from [dictBuilder directory](dictBuilder/)
|
|
|
|
|
|
|
|
|
|
|
|
#### Legacy support
|
|
|
|
|
|
|
|
Zstandard can decode previous formats, starting from v0.1.
|
|
|
|
Support for these format is provided in [folder legacy](legacy/).
|
|
|
|
It's also required to compile the library with `ZSTD_LEGACY_SUPPORT = 1`.
|
2016-02-17 16:47:29 +00:00
|
|
|
|
|
|
|
|
|
|
|
#### 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)
|