Lines Matching refs:compressionContext
348 * The first thing to do is to create a compressionContext object, which will be used in all compression operations.
392 size_t LZ4F_compressBegin(LZ4F_compressionContext_t compressionContext, void* dstBuffer, size_t dstMaxSize, const LZ4F_preferences_t* preferencesPtr)
395 LZ4F_cctx_t* cctxPtr = (LZ4F_cctx_t*)compressionContext;
562 size_t LZ4F_compressUpdate(LZ4F_compressionContext_t compressionContext, void* dstBuffer, size_t dstMaxSize, const void* srcBuffer, size_t srcSize, const LZ4F_compressOptions_t* compressOptionsPtr)
565 LZ4F_cctx_t* cctxPtr = (LZ4F_cctx_t*)compressionContext;
667 * you can call LZ4_flush(), which will immediately compress any remaining data stored within compressionContext.
669 * (it can be zero, this means there was no data left within compressionContext)
673 size_t LZ4F_flush(LZ4F_compressionContext_t compressionContext, void* dstBuffer, size_t dstMaxSize, const LZ4F_compressOptions_t* compressOptionsPtr)
675 LZ4F_cctx_t* cctxPtr = (LZ4F_cctx_t*)compressionContext;
707 * It will flush whatever data remained within compressionContext (like LZ4_flush())
712 * compressionContext can then be used again, starting with LZ4F_compressBegin(). The preferences will remain the same.
714 size_t LZ4F_compressEnd(LZ4F_compressionContext_t compressionContext, void* dstBuffer, size_t dstMaxSize, const LZ4F_compressOptions_t* compressOptionsPtr)
716 LZ4F_cctx_t* cctxPtr = (LZ4F_cctx_t*)compressionContext;
721 errorCode = LZ4F_flush(compressionContext, dstBuffer, dstMaxSize, compressOptionsPtr);