mirror of
https://github.com/facebook/zstd.git
synced 2025-03-06 16:56:49 +02:00
Add ZSTD_compressionParameters to ZSTD_matchState_t
This commit is contained in:
parent
e06f91a169
commit
76ef87ed9d
@ -1102,6 +1102,8 @@ ZSTD_reset_matchState(ZSTD_matchState_t* ms,
|
||||
ms->hashTable3 = ms->chainTable + chainSize;
|
||||
ptr = ms->hashTable3 + h3Size;
|
||||
|
||||
ms->cParams = *cParams;
|
||||
|
||||
assert(((size_t)ptr & 3) == 0);
|
||||
return ptr;
|
||||
}
|
||||
@ -1376,6 +1378,7 @@ static size_t ZSTD_resetCCtx_usingCDict(ZSTD_CCtx* cctx,
|
||||
dstMatchState->nextToUpdate = srcMatchState->nextToUpdate;
|
||||
dstMatchState->nextToUpdate3= srcMatchState->nextToUpdate3;
|
||||
dstMatchState->loadedDictEnd= srcMatchState->loadedDictEnd;
|
||||
dstMatchState->cParams = srcMatchState->cParams;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -140,6 +140,7 @@ struct ZSTD_matchState_t {
|
||||
U32* chainTable;
|
||||
optState_t opt; /* optimal parser state */
|
||||
const ZSTD_matchState_t *dictMatchState;
|
||||
ZSTD_compressionParameters cParams;
|
||||
};
|
||||
|
||||
typedef struct {
|
||||
|
Loading…
x
Reference in New Issue
Block a user