Lines Matching refs:rawSeqStore
322 ldmState_t* ldmState, rawSeqStore_t* rawSeqStore, in ZSTD_ldm_generateSequences_internal() argument
454 rawSeq* const seq = rawSeqStore->seq + rawSeqStore->size; in ZSTD_ldm_generateSequences_internal()
457 if (rawSeqStore->size == rawSeqStore->capacity) in ZSTD_ldm_generateSequences_internal()
462 rawSeqStore->size++; in ZSTD_ldm_generateSequences_internal()
583 ZSTD_ldm_skipSequences(rawSeqStore_t* rawSeqStore, size_t srcSize, U32 const minMatch) in ZSTD_ldm_skipSequences() argument
585 while (srcSize > 0 && rawSeqStore->pos < rawSeqStore->size) { in ZSTD_ldm_skipSequences()
586 rawSeq* seq = rawSeqStore->seq + rawSeqStore->pos; in ZSTD_ldm_skipSequences()
599 if (rawSeqStore->pos + 1 < rawSeqStore->size) { in ZSTD_ldm_skipSequences()
602 rawSeqStore->pos++; in ZSTD_ldm_skipSequences()
608 rawSeqStore->pos++; in ZSTD_ldm_skipSequences()
619 static rawSeq maybeSplitSequence(rawSeqStore_t* rawSeqStore, in maybeSplitSequence() argument
622 rawSeq sequence = rawSeqStore->seq[rawSeqStore->pos]; in maybeSplitSequence()
626 rawSeqStore->pos++; in maybeSplitSequence()
639 ZSTD_ldm_skipSequences(rawSeqStore, remaining, minMatch); in maybeSplitSequence()
643 void ZSTD_ldm_skipRawSeqStoreBytes(rawSeqStore_t* rawSeqStore, size_t nbBytes) { in ZSTD_ldm_skipRawSeqStoreBytes() argument
644 U32 currPos = (U32)(rawSeqStore->posInSequence + nbBytes); in ZSTD_ldm_skipRawSeqStoreBytes()
645 while (currPos && rawSeqStore->pos < rawSeqStore->size) { in ZSTD_ldm_skipRawSeqStoreBytes()
646 rawSeq currSeq = rawSeqStore->seq[rawSeqStore->pos]; in ZSTD_ldm_skipRawSeqStoreBytes()
649 rawSeqStore->pos++; in ZSTD_ldm_skipRawSeqStoreBytes()
651 rawSeqStore->posInSequence = currPos; in ZSTD_ldm_skipRawSeqStoreBytes()
655 if (currPos == 0 || rawSeqStore->pos == rawSeqStore->size) { in ZSTD_ldm_skipRawSeqStoreBytes()
656 rawSeqStore->posInSequence = 0; in ZSTD_ldm_skipRawSeqStoreBytes()
660 size_t ZSTD_ldm_blockCompress(rawSeqStore_t* rawSeqStore, in ZSTD_ldm_blockCompress() argument
679 ms->ldmSeqStore = rawSeqStore; in ZSTD_ldm_blockCompress()
681 ZSTD_ldm_skipRawSeqStoreBytes(rawSeqStore, srcSize); in ZSTD_ldm_blockCompress()
685 assert(rawSeqStore->pos <= rawSeqStore->size); in ZSTD_ldm_blockCompress()
686 assert(rawSeqStore->size <= rawSeqStore->capacity); in ZSTD_ldm_blockCompress()
688 while (rawSeqStore->pos < rawSeqStore->size && ip < iend) { in ZSTD_ldm_blockCompress()
690 rawSeq const sequence = maybeSplitSequence(rawSeqStore, in ZSTD_ldm_blockCompress()