summaryrefslogtreecommitdiffstats
path: root/lib/lz4hc.c
diff options
context:
space:
mode:
authorW. Felix Handte <w@felixhandte.com>2018-04-20 18:52:13 (GMT)
committerW. Felix Handte <w@felixhandte.com>2018-04-20 18:59:34 (GMT)
commitd7347f9eeaffe5351886b6174f9974bd541b9b7d (patch)
tree32aeb9a6efdd431fdaa9a6f4c9967aaf1be9b7d6 /lib/lz4hc.c
parentca833f928f64d0b88fbfd2a8a8bc11b8333e487d (diff)
downloadlz4-d7347f9eeaffe5351886b6174f9974bd541b9b7d.zip
lz4-d7347f9eeaffe5351886b6174f9974bd541b9b7d.tar.gz
lz4-d7347f9eeaffe5351886b6174f9974bd541b9b7d.tar.bz2
Add API for Attaching Dictionaries
Diffstat (limited to 'lib/lz4hc.c')
-rw-r--r--lib/lz4hc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/lz4hc.c b/lib/lz4hc.c
index 124da86..690015f 100644
--- a/lib/lz4hc.c
+++ b/lib/lz4hc.c
@@ -887,6 +887,9 @@ int LZ4_loadDictHC (LZ4_streamHC_t* LZ4_streamHCPtr, const char* dictionary, int
return dictSize;
}
+void LZ4_attach_HC_dictionary(LZ4_streamHC_t *working_stream, const LZ4_streamHC_t *dictionary_stream) {
+ working_stream->internal_donotuse.dictCtx = dictionary_stream != NULL ? &(dictionary_stream->internal_donotuse) : NULL;
+}
/* compression */