Lines Matching full:sequence

395             /* If a split point would generate a sequence overlapping with  in ZSTD_ldm_generateSequences_internal()
456 /* Out of sequence storage */ in ZSTD_ldm_generateSequences_internal()
551 * * Try invalidation after the sequence generation and test the in ZSTD_ldm_generateSequences()
554 * NOTE: Because of dictionaries + sequence splitting we MUST make sure in ZSTD_ldm_generateSequences()
555 * that any offset used is valid at the END of the sequence, since it may in ZSTD_ldm_generateSequences()
567 * newly generated sequence, or add the `newLeftoverSize` if none are in ZSTD_ldm_generateSequences()
613 * If the sequence length is longer than remaining then the sequence is split
616 * Returns the current sequence to handle, or if the rest of the block should
617 * be literals, it returns a sequence with offset == 0.
622 rawSeq sequence = rawSeqStore->seq[rawSeqStore->pos]; in maybeSplitSequence() local
623 assert(sequence.offset > 0); in maybeSplitSequence()
624 /* Likely: No partial sequence */ in maybeSplitSequence()
625 if (remaining >= sequence.litLength + sequence.matchLength) { in maybeSplitSequence()
627 return sequence; in maybeSplitSequence()
629 /* Cut the sequence short (offset == 0 ==> rest is literals). */ in maybeSplitSequence()
630 if (remaining <= sequence.litLength) { in maybeSplitSequence()
631 sequence.offset = 0; in maybeSplitSequence()
632 } else if (remaining < sequence.litLength + sequence.matchLength) { in maybeSplitSequence()
633 sequence.matchLength = remaining - sequence.litLength; in maybeSplitSequence()
634 if (sequence.matchLength < minMatch) { in maybeSplitSequence()
635 sequence.offset = 0; in maybeSplitSequence()
640 return sequence; in maybeSplitSequence()
687 /* Loop through each sequence and apply the block compressor to the literals */ in ZSTD_ldm_blockCompress()
690 rawSeq const sequence = maybeSplitSequence(rawSeqStore, in ZSTD_ldm_blockCompress() local
694 if (sequence.offset == 0) in ZSTD_ldm_blockCompress()
697 assert(ip + sequence.litLength + sequence.matchLength <= iend); in ZSTD_ldm_blockCompress()
703 …s %u : calling block compressor on segment of size %u", (unsigned)(ip-istart), sequence.litLength); in ZSTD_ldm_blockCompress()
706 blockCompressor(ms, seqStore, rep, ip, sequence.litLength); in ZSTD_ldm_blockCompress()
707 ip += sequence.litLength; in ZSTD_ldm_blockCompress()
711 rep[0] = sequence.offset; in ZSTD_ldm_blockCompress()
712 /* Store the sequence */ in ZSTD_ldm_blockCompress()
714 STORE_OFFSET(sequence.offset), in ZSTD_ldm_blockCompress()
715 sequence.matchLength); in ZSTD_ldm_blockCompress()
716 ip += sequence.matchLength; in ZSTD_ldm_blockCompress()