32 lines
1.1 KiB
Markdown
32 lines
1.1 KiB
Markdown
Zstandard library : usage examples
|
|
==================================
|
|
|
|
- [Simple compression](simple_compression.c) :
|
|
Compress a single file.
|
|
Introduces usage of : `ZSTD_compress()`
|
|
|
|
- [Simple decompression](simple_decompression.c) :
|
|
Decompress a single file.
|
|
Only compatible with simple compression.
|
|
Result remains in memory.
|
|
Introduces usage of : `ZSTD_decompress()`
|
|
|
|
- [Streaming compression](streaming_compression.c) :
|
|
Compress a single file.
|
|
Introduces usage of : `ZSTD_compressStream()`
|
|
|
|
- [Streaming decompression](streaming_decompression.c) :
|
|
Decompress a single file compressed by zstd.
|
|
Compatible with both simple and streaming compression.
|
|
Result is sent to stdout.
|
|
Introduces usage of : `ZSTD_decompressStream()`
|
|
|
|
- [Dictionary compression](dictionary_compression.c) :
|
|
Compress multiple files using the same dictionary.
|
|
Introduces usage of : `ZSTD_createCDict()` and `ZSTD_compress_usingCDict()`
|
|
|
|
- [Dictionary decompression](dictionary_decompression.c) :
|
|
Decompress multiple files using the same dictionary.
|
|
Result remains in memory.
|
|
Introduces usage of : `ZSTD_createDDict()` and `ZSTD_decompress_usingDDict()`
|