summaryrefslogtreecommitdiffstats
path: root/lib/lz4frame.h
diff options
context:
space:
mode:
authorYann Collet <cyan@fb.com>2017-05-10 19:25:05 (GMT)
committerYann Collet <cyan@fb.com>2017-05-10 19:25:05 (GMT)
commitfe932c4527aabd1c642b67fddf90e9be8ea380f8 (patch)
tree1557e92e8030488ff1c9ffca608c9acc40cd23bc /lib/lz4frame.h
parent1efa48831e4e2422711262e5d3c3cbf613189d3b (diff)
downloadlz4-fe932c4527aabd1c642b67fddf90e9be8ea380f8.zip
lz4-fe932c4527aabd1c642b67fddf90e9be8ea380f8.tar.gz
lz4-fe932c4527aabd1c642b67fddf90e9be8ea380f8.tar.bz2
expose LZ4F_resetDecompressionContext()
Diffstat (limited to 'lib/lz4frame.h')
-rw-r--r--lib/lz4frame.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/lz4frame.h b/lib/lz4frame.h
index 2e79a17..b61fe7f 100644
--- a/lib/lz4frame.h
+++ b/lib/lz4frame.h
@@ -363,6 +363,17 @@ LZ4FLIB_API size_t LZ4F_decompress(LZ4F_dctx* dctx,
const LZ4F_decompressOptions_t* dOptPtr);
+/*! LZ4F_resetDecompressionContext() :
+ * When decompression ends successfully,
+ * it's possible to start a new decompression immediately
+ * re-using the same context.
+ * However, in case of an error, the context is left in "undefined" state.
+ * In which case, it's necessary to reset it, before re-using it.
+ * This method can also be used to abruptly stop an unfinished decompression,
+ * and start a new on the same context. */
+LZ4FLIB_API LZ4F_errorCode_t LZ4F_resetDecompressionContext(LZ4F_dctx* dctx);
+
+
#if defined (__cplusplus)
}