Lines Matching refs:srcCCtx
348 size_t ZSTD_copyCCtx(ZSTD_CCtx *dstCCtx, const ZSTD_CCtx *srcCCtx, unsigned long long pledgedSrcSiz… in ZSTD_copyCCtx() argument
350 if (srcCCtx->stage != ZSTDcs_init) in ZSTD_copyCCtx()
353 memcpy(&dstCCtx->customMem, &srcCCtx->customMem, sizeof(ZSTD_customMem)); in ZSTD_copyCCtx()
355 ZSTD_parameters params = srcCCtx->params; in ZSTD_copyCCtx()
362 …size_t const chainSize = (srcCCtx->params.cParams.strategy == ZSTD_fast) ? 0 : (1 << srcCCtx->para… in ZSTD_copyCCtx()
363 size_t const hSize = ((size_t)1) << srcCCtx->params.cParams.hashLog; in ZSTD_copyCCtx()
364 size_t const h3Size = (size_t)1 << srcCCtx->hashLog3; in ZSTD_copyCCtx()
366 memcpy(dstCCtx->workSpace, srcCCtx->workSpace, tableSpace); in ZSTD_copyCCtx()
370 dstCCtx->nextToUpdate = srcCCtx->nextToUpdate; in ZSTD_copyCCtx()
371 dstCCtx->nextToUpdate3 = srcCCtx->nextToUpdate3; in ZSTD_copyCCtx()
372 dstCCtx->nextSrc = srcCCtx->nextSrc; in ZSTD_copyCCtx()
373 dstCCtx->base = srcCCtx->base; in ZSTD_copyCCtx()
374 dstCCtx->dictBase = srcCCtx->dictBase; in ZSTD_copyCCtx()
375 dstCCtx->dictLimit = srcCCtx->dictLimit; in ZSTD_copyCCtx()
376 dstCCtx->lowLimit = srcCCtx->lowLimit; in ZSTD_copyCCtx()
377 dstCCtx->loadedDictEnd = srcCCtx->loadedDictEnd; in ZSTD_copyCCtx()
378 dstCCtx->dictID = srcCCtx->dictID; in ZSTD_copyCCtx()
381 dstCCtx->flagStaticTables = srcCCtx->flagStaticTables; in ZSTD_copyCCtx()
382 dstCCtx->flagStaticHufTable = srcCCtx->flagStaticHufTable; in ZSTD_copyCCtx()
383 if (srcCCtx->flagStaticTables) { in ZSTD_copyCCtx()
384 memcpy(dstCCtx->litlengthCTable, srcCCtx->litlengthCTable, sizeof(dstCCtx->litlengthCTable)); in ZSTD_copyCCtx()
385 …memcpy(dstCCtx->matchlengthCTable, srcCCtx->matchlengthCTable, sizeof(dstCCtx->matchlengthCTable)); in ZSTD_copyCCtx()
386 memcpy(dstCCtx->offcodeCTable, srcCCtx->offcodeCTable, sizeof(dstCCtx->offcodeCTable)); in ZSTD_copyCCtx()
388 if (srcCCtx->flagStaticHufTable) { in ZSTD_copyCCtx()
389 memcpy(dstCCtx->hufTable, srcCCtx->hufTable, 256 * 4); in ZSTD_copyCCtx()