Lines Matching refs:dstCCtx

2124  *  Duplicate an existing context `srcCCtx` into another one `dstCCtx`.
2130 static size_t ZSTD_copyCCtx_internal(ZSTD_CCtx* dstCCtx,
2139 ZSTD_memcpy(&dstCCtx->customMem, &srcCCtx->customMem, sizeof(ZSTD_customMem));
2140 { ZSTD_CCtx_params params = dstCCtx->requestedParams;
2150 ZSTD_resetCCtx_internal(dstCCtx, &params, pledgedSrcSize,
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);
2160 ZSTD_cwksp_mark_tables_dirty(&dstCCtx->workspace);
2172 ZSTD_memcpy(dstCCtx->blockState.matchState.hashTable,
2175 ZSTD_memcpy(dstCCtx->blockState.matchState.chainTable,
2178 ZSTD_memcpy(dstCCtx->blockState.matchState.hashTable3,
2183 ZSTD_cwksp_mark_tables_clean(&dstCCtx->workspace);
2188 ZSTD_matchState_t* dstMatchState = &dstCCtx->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)
2215 return ZSTD_copyCCtx_internal(dstCCtx, srcCCtx,