Update ZSTD_getSequences function signature
This commit is contained in:
parent
7397d0102f
commit
3327932609
@ -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);
|
||||
|
@ -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);
|
||||
|
||||
|
||||
/***************************************
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user