summaryrefslogtreecommitdiffstats
path: root/lib/lz4frame_static.h
diff options
context:
space:
mode:
authorYann Collet <cyan@fb.com>2017-03-29 19:51:08 (GMT)
committerYann Collet <cyan@fb.com>2017-03-29 19:51:08 (GMT)
commitb88df6b1b058a1a4884e8c7c80ce8b7e0839eb30 (patch)
treef88a2088c9e6f148203f5b560a2e0915e8b23368 /lib/lz4frame_static.h
parentfc31257ab2efd2e2d4d1aab97dcde8622ab6e92a (diff)
downloadlz4-b88df6b1b058a1a4884e8c7c80ce8b7e0839eb30.zip
lz4-b88df6b1b058a1a4884e8c7c80ce8b7e0839eb30.tar.gz
lz4-b88df6b1b058a1a4884e8c7c80ce8b7e0839eb30.tar.bz2
Improved comments on LZ4F_getFrameInfo()
and added LZ4F_resetCompressionContext()
Diffstat (limited to 'lib/lz4frame_static.h')
-rw-r--r--lib/lz4frame_static.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/lz4frame_static.h b/lib/lz4frame_static.h
index d3bae82..8ea496d 100644
--- a/lib/lz4frame_static.h
+++ b/lib/lz4frame_static.h
@@ -50,6 +50,15 @@ extern "C" {
#include "lz4frame.h"
+/* --- Experimental functions --- */
+/* LZ4F_resetDecompressionContext() :
+ * LZ4F_decompress() does not guarantee to leave dctx in clean state in case of errors.
+ * In order to re-use a dctx after a decompression error,
+ * use LZ4F_resetDecompressionContext() first.
+ * dctx will be able to start decompression on a new frame */
+LZ4FLIB_API LZ4F_errorCode_t LZ4F_resetDecompressionContext(LZ4F_dctx* dctx);
+
+
/* --- Error List --- */
#define LZ4F_LIST_ERRORS(ITEM) \
ITEM(OK_NoError) \