diff options
author | W. Felix Handte <w@felixhandte.com> | 2018-01-26 16:29:00 (GMT) |
---|---|---|
committer | W. Felix Handte <w@felixhandte.com> | 2018-03-12 18:58:43 (GMT) |
commit | 9dcd9abc14a33b6ac6c91dd727235db1daabe066 (patch) | |
tree | 47a7244a9af9ae81e2a0fcb2547eb50f1f4349e5 /lib/lz4frame_static.h | |
parent | 14ce912b705db03bd1d723456dd1a3242b7f7ea7 (diff) | |
download | lz4-9dcd9abc14a33b6ac6c91dd727235db1daabe066.zip lz4-9dcd9abc14a33b6ac6c91dd727235db1daabe066.tar.gz lz4-9dcd9abc14a33b6ac6c91dd727235db1daabe066.tar.bz2 |
Make LZ4F_compressFrame_usingCDict Take a Compression Context
Diffstat (limited to 'lib/lz4frame_static.h')
-rw-r--r-- | lib/lz4frame_static.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/lz4frame_static.h b/lib/lz4frame_static.h index a59b94b..be587e6 100644 --- a/lib/lz4frame_static.h +++ b/lib/lz4frame_static.h @@ -107,6 +107,7 @@ LZ4FLIB_STATIC_API void LZ4F_freeCDict(LZ4F_CDict* CDict); /*! LZ4_compressFrame_usingCDict() : * Compress an entire srcBuffer into a valid LZ4 frame using a digested Dictionary. + * cctx must point to a context created by LZ4F_createCompressionContext(). * If cdict==NULL, compress without a dictionary. * dstBuffer MUST be >= LZ4F_compressFrameBound(srcSize, preferencesPtr). * If this condition is not respected, function will fail (@return an errorCode). @@ -115,6 +116,7 @@ LZ4FLIB_STATIC_API void LZ4F_freeCDict(LZ4F_CDict* CDict); * @return : number of bytes written into dstBuffer. * or an error code if it fails (can be tested using LZ4F_isError()) */ LZ4FLIB_STATIC_API size_t LZ4F_compressFrame_usingCDict( + LZ4F_cctx* cctx, void* dst, size_t dstCapacity, const void* src, size_t srcSize, const LZ4F_CDict* cdict, |