diff options
author | inikep <inikep@gmail.com> | 2016-09-02 20:59:18 (GMT) |
---|---|---|
committer | inikep <inikep@gmail.com> | 2016-09-02 20:59:18 (GMT) |
commit | 2cf32ef0f107d18c9779283b8bd1d56f0517dd39 (patch) | |
tree | 7a2845b5052b03ae73e04d4e21e4674bd6da27b9 /lib/lz4hc.h | |
parent | c1864f69e87d68fe79420c9303ecf97eb66bc7c7 (diff) | |
download | lz4-2cf32ef0f107d18c9779283b8bd1d56f0517dd39.zip lz4-2cf32ef0f107d18c9779283b8bd1d56f0517dd39.tar.gz lz4-2cf32ef0f107d18c9779283b8bd1d56f0517dd39.tar.bz2 |
-b# and -e# options from zstd
Diffstat (limited to 'lib/lz4hc.h')
-rw-r--r-- | lib/lz4hc.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/lz4hc.h b/lib/lz4hc.h index fce2213..75eed19 100644 --- a/lib/lz4hc.h +++ b/lib/lz4hc.h @@ -45,6 +45,10 @@ extern "C" { #include <stddef.h> /* size_t */ +#define LZ4HC_MIN_CLEVEL 3 +#define LZ4HC_DEFAULT_CLEVEL 9 +#define LZ4HC_MAX_CLEVEL 16 + /*-************************************ * Block Compression **************************************/ @@ -54,9 +58,9 @@ LZ4_compress_HC() : Compression success is guaranteed if `dst` buffer is sized to handle worst circumstances (data not compressible) Worst size evaluation is provided by function LZ4_compressBound() (see "lz4.h") `srcSize` : Max supported value is LZ4_MAX_INPUT_SIZE (see "lz4.h") - `compressionLevel` : Recommended values are between 4 and 9, although any value between 0 and 16 will work. + `compressionLevel` : Recommended values are between 4 and 9, although any value between 0 and LZ4HC_MAX_CLEVEL will work. 0 means "use default value" (see lz4hc.c). - Values >16 behave the same as 16. + Values >LZ4HC_MAX_CLEVEL behave the same as 16. @return : the number of bytes written into buffer 'dst' or 0 if compression fails. */ |