Update ZSTD_getSequences function signature

This commit is contained in:
senhuang42 2020-11-02 10:17:59 -05:00
parent 7397d0102f
commit 3327932609
3 changed files with 3 additions and 3 deletions

View File

@ -2550,7 +2550,7 @@ static void ZSTD_copyBlockSequences(ZSTD_CCtx* zc)
}
size_t ZSTD_getSequences(ZSTD_CCtx* zc, ZSTD_Sequence* outSeqs,
size_t outSeqsSize, const void* src, size_t srcSize)
size_t outSeqsSize, const void* src, size_t srcSize, ZSTD_sequenceFormat_e format)
{
const size_t dstCapacity = ZSTD_compressBound(srcSize);
void* dst = ZSTD_customMalloc(dstCapacity, ZSTD_defaultCMem);

View File

@ -1319,7 +1319,7 @@ typedef enum {
*/
ZSTDLIB_API size_t ZSTD_getSequences(ZSTD_CCtx* zc, ZSTD_Sequence* outSeqs,
size_t outSeqsSize, const void* src, size_t srcSize);
size_t outSeqsSize, const void* src, size_t srcSize, ZSTD_sequenceFormat_e format);
/***************************************

View File

@ -2718,7 +2718,7 @@ static int basicUnitTests(U32 const seed, double compressibility)
RDG_genBuffer(CNBuffer, srcSize, compressibility, 0., seed);
/* get the sequences */
seqsSize = ZSTD_getSequences(cctx, seqs, srcSize, src, srcSize);
seqsSize = ZSTD_getSequences(cctx, seqs, srcSize, src, srcSize, ZSTD_sf_blockDelimiters);
/* "decode" and compare the sequences */
FUZ_decodeSequences(decoded, seqs, seqsSize, src, srcSize);