summaryrefslogtreecommitdiffstats
path: root/lz4hc.h
diff options
context:
space:
mode:
authorYann Collet <yann.collet.73@gmail.com>2014-10-19 16:41:42 (GMT)
committerYann Collet <yann.collet.73@gmail.com>2014-10-19 16:41:42 (GMT)
commite2a985f52444ad2e1438d2a71575185f31a08540 (patch)
treec552b84aca05cae5378fe4d4f2614d42e18730bb /lz4hc.h
parentd6186730570999721eb8b6ae012e2b61265646e5 (diff)
downloadlz4-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.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/lz4hc.h b/lz4hc.h
index 29a05f5..72979b5 100644
--- a/lz4hc.h
+++ b/lz4hc.h
@@ -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;