summaryrefslogtreecommitdiffstats
path: root/lib/lz4frame.c
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.c
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.c')
-rw-r--r--lib/lz4frame.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/lz4frame.c b/lib/lz4frame.c
index 518194d..1184a0f 100644
--- a/lib/lz4frame.c
+++ b/lib/lz4frame.c
@@ -792,6 +792,12 @@ typedef enum {
dstage_skipSkippable
} dStage_t;
+LZ4F_errorCode_t LZ4F_resetDecompressionContext(LZ4F_dctx* dctx)
+{
+ dctx->dStage = dstage_getHeader;
+ return 0;
+}
+
/*! LZ4F_headerSize() :
* @return : size of frame header