Lines Matching refs:srcCCtx
2124 * Duplicate an existing context `srcCCtx` into another one `dstCCtx`.
2128 * `windowLog` value is enforced if != 0, otherwise value is copied from srcCCtx.
2131 const ZSTD_CCtx* srcCCtx,
2136 RETURN_ERROR_IF(srcCCtx->stage!=ZSTDcs_init, stage_wrong,
2139 ZSTD_memcpy(&dstCCtx->customMem, &srcCCtx->customMem, sizeof(ZSTD_customMem));
2142 params.cParams = srcCCtx->appliedParams.cParams;
2143 assert(srcCCtx->appliedParams.useRowMatchFinder != ZSTD_ps_auto);
2144 assert(srcCCtx->appliedParams.useBlockSplitter != ZSTD_ps_auto);
2145 assert(srcCCtx->appliedParams.ldmParams.enableLdm != ZSTD_ps_auto);
2146 params.useRowMatchFinder = srcCCtx->appliedParams.useRowMatchFinder;
2147 params.useBlockSplitter = srcCCtx->appliedParams.useBlockSplitter;
2148 params.ldmParams = srcCCtx->appliedParams.ldmParams;
2153 assert(dstCCtx->appliedParams.cParams.windowLog == srcCCtx->appliedParams.cParams.windowLog);
2154 assert(dstCCtx->appliedParams.cParams.strategy == srcCCtx->appliedParams.cParams.strategy);
2155 assert(dstCCtx->appliedParams.cParams.hashLog == srcCCtx->appliedParams.cParams.hashLog);
2156 assert(dstCCtx->appliedParams.cParams.chainLog == srcCCtx->appliedParams.cParams.chainLog);
2157 assert(dstCCtx->blockState.matchState.hashLog3 == srcCCtx->blockState.matchState.hashLog3);
2163 { size_t const chainSize = ZSTD_allocateChainTable(srcCCtx->appliedParams.cParams.strategy,
2164 srcCCtx->appliedParams.useRowMatchFinder,
2166 ? ((size_t)1 << srcCCtx->appliedParams.cParams.chainLog)
2168 size_t const hSize = (size_t)1 << srcCCtx->appliedParams.cParams.hashLog;
2169 int const h3log = srcCCtx->blockState.matchState.hashLog3;
2173 srcCCtx->blockState.matchState.hashTable,
2176 srcCCtx->blockState.matchState.chainTable,
2179 srcCCtx->blockState.matchState.hashTable3,
2187 const ZSTD_matchState_t* srcMatchState = &srcCCtx->blockState.matchState;
2193 dstCCtx->dictID = srcCCtx->dictID;
2194 dstCCtx->dictContentSize = srcCCtx->dictContentSize;
2197 ZSTD_memcpy(dstCCtx->blockState.prevCBlock, srcCCtx->blockState.prevCBlock, sizeof(*srcCCtx->blockState.prevCBlock));
2203 * Duplicate an existing context `srcCCtx` into another one `dstCCtx`.
2207 size_t ZSTD_copyCCtx(ZSTD_CCtx* dstCCtx, const ZSTD_CCtx* srcCCtx, unsigned long long pledgedSrcSize)
2210 ZSTD_buffered_policy_e const zbuff = srcCCtx->bufferedPolicy;
2215 return ZSTD_copyCCtx_internal(dstCCtx, srcCCtx,