Lines Matching refs:seqStore
193 const seqStore_t* ZSTD_getSeqStore(const ZSTD_CCtx* ctx) { return &(ctx->seqStore); } in ZSTD_getSeqStore()
1659 zc->seqStore.litStart = ZSTD_cwksp_reserve_buffer(ws, blockSize + WILDCOPY_OVERLENGTH); in ZSTD_resetCCtx_internal()
1660 zc->seqStore.maxNbLit = blockSize; in ZSTD_resetCCtx_internal()
1681 zc->seqStore.maxNbSeq = maxNbSeq; in ZSTD_resetCCtx_internal()
1682 zc->seqStore.llCode = ZSTD_cwksp_reserve_buffer(ws, maxNbSeq * sizeof(BYTE)); in ZSTD_resetCCtx_internal()
1683 zc->seqStore.mlCode = ZSTD_cwksp_reserve_buffer(ws, maxNbSeq * sizeof(BYTE)); in ZSTD_resetCCtx_internal()
1684 zc->seqStore.ofCode = ZSTD_cwksp_reserve_buffer(ws, maxNbSeq * sizeof(BYTE)); in ZSTD_resetCCtx_internal()
1685 … zc->seqStore.sequencesStart = (seqDef*)ZSTD_cwksp_reserve_aligned(ws, maxNbSeq * sizeof(seqDef)); in ZSTD_resetCCtx_internal()
2406 ZSTD_resetSeqStore(&(zc->seqStore)); in ZSTD_buildSeqStore()
2437 ms, &zc->seqStore, in ZSTD_buildSeqStore()
2453 ms, &zc->seqStore, in ZSTD_buildSeqStore()
2460 … lastLLSize = blockCompressor(ms, &zc->seqStore, zc->blockState.nextCBlock->rep, src, srcSize); in ZSTD_buildSeqStore()
2463 ZSTD_storeLastLiterals(&zc->seqStore, lastLiterals, lastLLSize); in ZSTD_buildSeqStore()
2470 const seqStore_t* seqStore = ZSTD_getSeqStore(zc); in ZSTD_copyBlockSequences() local
2471 const seqDef* seqStoreSeqs = seqStore->sequencesStart; in ZSTD_copyBlockSequences()
2472 size_t seqStoreSeqSize = seqStore->sequences - seqStoreSeqs; in ZSTD_copyBlockSequences()
2473 size_t seqStoreLiteralsSize = (size_t)(seqStore->lit - seqStore->litStart); in ZSTD_copyBlockSequences()
2491 if (i == seqStore->longLengthPos) { in ZSTD_copyBlockSequences()
2492 if (seqStore->longLengthID == 1) { in ZSTD_copyBlockSequences()
2494 } else if (seqStore->longLengthID == 2) { in ZSTD_copyBlockSequences()
2597 static int ZSTD_maybeRLE(seqStore_t const* seqStore) in ZSTD_maybeRLE() argument
2599 size_t const nbSeqs = (size_t)(seqStore->sequences - seqStore->sequencesStart); in ZSTD_maybeRLE()
2600 size_t const nbLits = (size_t)(seqStore->lit - seqStore->litStart); in ZSTD_maybeRLE()
2640 cSize = ZSTD_entropyCompressSequences(&zc->seqStore, in ZSTD_compressBlock_internal()
2693 ZSTD_maybeRLE(&zc->seqStore) && in ZSTD_compressBlock_targetCBlockSize_body()
4515 RETURN_ERROR_IF(idx - seqPos->idx > cctx->seqStore.maxNbSeq, memory_allocation, in ZSTD_copySequencesToSeqStoreExplicitBlockDelim()
4517 ZSTD_storeSeq(&cctx->seqStore, litLength, ip, iend, offCode, matchLength - MINMATCH); in ZSTD_copySequencesToSeqStoreExplicitBlockDelim()
4524 ZSTD_storeLastLiterals(&cctx->seqStore, ip, inSeqs[idx].litLength); in ZSTD_copySequencesToSeqStoreExplicitBlockDelim()
4641 RETURN_ERROR_IF(idx - seqPos->idx > cctx->seqStore.maxNbSeq, memory_allocation, in ZSTD_copySequencesToSeqStoreNoBlockDelim()
4643 ZSTD_storeSeq(&cctx->seqStore, litLength, ip, iend, offCode, matchLength - MINMATCH); in ZSTD_copySequencesToSeqStoreNoBlockDelim()
4658 ZSTD_storeLastLiterals(&cctx->seqStore, ip, lastLLSize); in ZSTD_copySequencesToSeqStoreNoBlockDelim()
4715 ZSTD_resetSeqStore(&cctx->seqStore); in ZSTD_compressSequences_internal()
4735 compressedSeqsSize = ZSTD_entropyCompressSequences(&cctx->seqStore, in ZSTD_compressSequences_internal()
4746 ZSTD_maybeRLE(&cctx->seqStore) && in ZSTD_compressSequences_internal()