• Home
  • Raw
  • Download

Lines Matching refs:seqs

308 static void FUZ_decodeSequences(BYTE* dst, ZSTD_Sequence* seqs, size_t seqsSize,  in FUZ_decodeSequences()  argument
314 assert(dst + seqs[i].litLength + seqs[i].matchLength <= dst + size); in FUZ_decodeSequences()
315 assert(src + seqs[i].litLength + seqs[i].matchLength <= src + size); in FUZ_decodeSequences()
317 assert(seqs[i].matchLength != 0 || seqs[i].offset != 0); in FUZ_decodeSequences()
320 memcpy(dst, src, seqs[i].litLength); in FUZ_decodeSequences()
321 dst += seqs[i].litLength; in FUZ_decodeSequences()
322 src += seqs[i].litLength; in FUZ_decodeSequences()
323 size -= seqs[i].litLength; in FUZ_decodeSequences()
325 if (seqs[i].offset != 0) { in FUZ_decodeSequences()
326 for (j = 0; j < seqs[i].matchLength; ++j) in FUZ_decodeSequences()
327 dst[j] = dst[j - seqs[i].offset]; in FUZ_decodeSequences()
328 dst += seqs[i].matchLength; in FUZ_decodeSequences()
329 src += seqs[i].matchLength; in FUZ_decodeSequences()
330 size -= seqs[i].matchLength; in FUZ_decodeSequences()
2719 ZSTD_Sequence* seqs = (ZSTD_Sequence*)malloc(srcSize * sizeof(ZSTD_Sequence)); in basicUnitTests() local
2722 if (seqs == NULL) goto _output_error; in basicUnitTests()
2729 seqsSize = ZSTD_generateSequences(cctx, seqs, srcSize, src, srcSize); in basicUnitTests()
2730 FUZ_decodeSequences(decoded, seqs, seqsSize, src, srcSize, ZSTD_sf_explicitBlockDelimiters); in basicUnitTests()
2734 seqsSize = ZSTD_mergeBlockDelimiters(seqs, seqsSize); in basicUnitTests()
2735 FUZ_decodeSequences(decoded, seqs, seqsSize, src, srcSize, ZSTD_sf_noBlockDelimiters); in basicUnitTests()
2739 free(seqs); in basicUnitTests()
2755 ZSTD_Sequence* seqs = (ZSTD_Sequence*)malloc(srcSize * sizeof(ZSTD_Sequence)); in basicUnitTests() local
2758 if (seqs == NULL) goto _output_error; in basicUnitTests()
2765 seqsSize = ZSTD_generateSequences(cctx, seqs, srcSize, src, srcSize); in basicUnitTests()
2768 compressedSize = ZSTD_compressSequences(cctx, dst, dstSize, seqs, seqsSize, src, srcSize); in basicUnitTests()
2781 seqsSize = ZSTD_mergeBlockDelimiters(seqs, seqsSize); in basicUnitTests()
2784 compressedSize = ZSTD_compressSequences(cctx, dst, dstSize, seqs, seqsSize, src, srcSize); in basicUnitTests()
2798 free(seqs); in basicUnitTests()