adding enableDedicatedDictSearch to matchState_t

dev
Bimba Shrestha 2020-06-11 18:34:14 -07:00 committed by W. Felix Handte
parent 50550a14ad
commit 31e581bf65
2 changed files with 4 additions and 1 deletions

View File

@ -3491,8 +3491,10 @@ ZSTDLIB_API ZSTD_CDict* ZSTD_createCDict_advanced2(const void* dict, size_t dict
{
ZSTD_compressionParameters const cParams = ZSTD_dedicatedDictSearch_getCParams(
cctxParams.compressionLevel, dictSize);
return ZSTD_createCDict_advanced(dict, dictSize,
ZSTD_CDict* const cdict = ZSTD_createCDict_advanced(dict, dictSize,
dictLoadMethod, dictContentType, cParams, customMem);
cdict->matchState.enableDedicatedDictSearch = enableDedicatedDictSearch;
return cdict;
}
}

View File

@ -153,6 +153,7 @@ struct ZSTD_matchState_t {
U32* hashTable;
U32* hashTable3;
U32* chainTable;
int enableDedicatedDictSearch;
optState_t opt; /* optimal parser state */
const ZSTD_matchState_t* dictMatchState;
ZSTD_compressionParameters cParams;