Add ZSTD_compressionParameters to ZSTD_matchState_t
This commit is contained in:
@@ -1102,6 +1102,8 @@ ZSTD_reset_matchState(ZSTD_matchState_t* ms,
|
|||||||
ms->hashTable3 = ms->chainTable + chainSize;
|
ms->hashTable3 = ms->chainTable + chainSize;
|
||||||
ptr = ms->hashTable3 + h3Size;
|
ptr = ms->hashTable3 + h3Size;
|
||||||
|
|
||||||
|
ms->cParams = *cParams;
|
||||||
|
|
||||||
assert(((size_t)ptr & 3) == 0);
|
assert(((size_t)ptr & 3) == 0);
|
||||||
return ptr;
|
return ptr;
|
||||||
}
|
}
|
||||||
@@ -1376,6 +1378,7 @@ static size_t ZSTD_resetCCtx_usingCDict(ZSTD_CCtx* cctx,
|
|||||||
dstMatchState->nextToUpdate = srcMatchState->nextToUpdate;
|
dstMatchState->nextToUpdate = srcMatchState->nextToUpdate;
|
||||||
dstMatchState->nextToUpdate3= srcMatchState->nextToUpdate3;
|
dstMatchState->nextToUpdate3= srcMatchState->nextToUpdate3;
|
||||||
dstMatchState->loadedDictEnd= srcMatchState->loadedDictEnd;
|
dstMatchState->loadedDictEnd= srcMatchState->loadedDictEnd;
|
||||||
|
dstMatchState->cParams = srcMatchState->cParams;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -140,6 +140,7 @@ struct ZSTD_matchState_t {
|
|||||||
U32* chainTable;
|
U32* chainTable;
|
||||||
optState_t opt; /* optimal parser state */
|
optState_t opt; /* optimal parser state */
|
||||||
const ZSTD_matchState_t *dictMatchState;
|
const ZSTD_matchState_t *dictMatchState;
|
||||||
|
ZSTD_compressionParameters cParams;
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
|
|||||||
Reference in New Issue
Block a user