Add new sequence format as an experimental CCtx param

This commit is contained in:
senhuang42
2020-11-16 10:49:17 -05:00
parent 347824ad73
commit 7f563b0519
3 changed files with 39 additions and 16 deletions
+3 -4
View File
@@ -242,6 +242,9 @@ struct ZSTD_CCtx_params_s {
ZSTD_bufferMode_e inBufferMode;
ZSTD_bufferMode_e outBufferMode;
/* Sequence compression API */
ZSTD_sequenceFormat_e blockDelimiters;
/* Internal use, for createCCtxParams() and freeCCtxParams() only */
ZSTD_customMem customMem;
}; /* typedef'd to ZSTD_CCtx_params within "zstd.h" */
@@ -313,10 +316,6 @@ struct ZSTD_CCtx_s {
const ZSTD_CDict* cdict;
ZSTD_prefixDict prefixDict; /* single-usage dictionary */
/* Sequence compression API */
ZSTD_sequenceFormat_blockBoundaries_e blockDelimiters;
ZSTD_sequenceFormat_repcodes_e calculateRepcodes;
/* Multi-threading */
#ifdef ZSTD_MULTITHREAD
ZSTDMT_CCtx* mtctx;