diff options
author | Yann Collet <yann.collet.73@gmail.com> | 2014-10-19 16:41:42 (GMT) |
---|---|---|
committer | Yann Collet <yann.collet.73@gmail.com> | 2014-10-19 16:41:42 (GMT) |
commit | e2a985f52444ad2e1438d2a71575185f31a08540 (patch) | |
tree | c552b84aca05cae5378fe4d4f2614d42e18730bb /lz4hc.h | |
parent | d6186730570999721eb8b6ae012e2b61265646e5 (diff) | |
download | lz4-e2a985f52444ad2e1438d2a71575185f31a08540.zip lz4-e2a985f52444ad2e1438d2a71575185f31a08540.tar.gz lz4-e2a985f52444ad2e1438d2a71575185f31a08540.tar.bz2 |
minor refactoring of LZ4 HC, to prepare for external dictionaries
Diffstat (limited to 'lz4hc.h')
-rw-r--r-- | lz4hc.h | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -95,18 +95,17 @@ int LZ4_sizeofStateHC(); Note that tables must be aligned for pointer (32 or 64 bits), otherwise compression will fail (return code 0). -The allocated memory can be provided to the compressions functions using 'void* state' parameter. +The allocated memory can be provided to the compression functions using 'void* state' parameter. LZ4_compress_withStateHC() and LZ4_compress_limitedOutput_withStateHC() are equivalent to previously described functions. -They just use the externally allocated memory area instead of allocating their own (on stack, or on heap). +They just use the externally allocated memory for state instead of allocating their own (on stack, or on heap). */ - /************************************** Experimental Streaming Functions **************************************/ -#define LZ4_STREAMHCSIZE_U32 65546 +#define LZ4_STREAMHCSIZE_U32 65548 #define LZ4_STREAMHCSIZE (LZ4_STREAMHCSIZE_U32 * sizeof(unsigned int)) typedef struct { unsigned int table[LZ4_STREAMHCSIZE_U32]; } LZ4_streamHC_t; |