summaryrefslogtreecommitdiffstats
path: root/lib/lz4.h
diff options
context:
space:
mode:
authorW. Felix Handte <w@felixhandte.com>2018-04-10 17:12:30 (GMT)
committerW. Felix Handte <w@felixhandte.com>2018-04-10 17:26:17 (GMT)
commit59c7d951213bf8593438ae811549655d5a78d2fc (patch)
tree695666fd41e601e488f2bfc214fdd87538a63cf4 /lib/lz4.h
parentf88dc900553b3a029e9cd114800016f9364ffc7b (diff)
downloadlz4-59c7d951213bf8593438ae811549655d5a78d2fc.zip
lz4-59c7d951213bf8593438ae811549655d5a78d2fc.tar.gz
lz4-59c7d951213bf8593438ae811549655d5a78d2fc.tar.bz2
Expose a Faster Stream Reset Function
Diffstat (limited to 'lib/lz4.h')
-rw-r--r--lib/lz4.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/lz4.h b/lib/lz4.h
index 80f040f..9c1b694 100644
--- a/lib/lz4.h
+++ b/lib/lz4.h
@@ -366,6 +366,14 @@ LZ4_compress_fast_extState_noReset() :
LZ4LIB_API int LZ4_compress_fast_extState_noReset (void* state, const char* src, char* dst, int srcSize, int dstCapacity, int acceleration);
+
+/*! LZ4_resetStream_fast() :
+ * An LZ4_stream_t structure can be allocated once and re-used multiple times.
+ * Use this function to start compressing a new stream.
+ */
+LZ4LIB_API void LZ4_resetStream_fast (LZ4_stream_t* streamPtr);
+
+
/*-************************************
* Private definitions
**************************************