From: senhuang42 Date: Wed, 28 Oct 2020 15:07:36 +0000 (-0400) Subject: Modify SequenceRange to have posInSequence X-Git-Tag: v1.4.7~30^2~44 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b116e1f211692fc17b8d13bc16ee94f60df7f623;p=thirdparty%2Fzstd.git Modify SequenceRange to have posInSequence --- diff --git a/lib/compress/zstd_compress.c b/lib/compress/zstd_compress.c index ce9ac1dd0..4269d41eb 100644 --- a/lib/compress/zstd_compress.c +++ b/lib/compress/zstd_compress.c @@ -4489,15 +4489,17 @@ size_t ZSTD_compress2(ZSTD_CCtx* cctx, } typedef struct { - U32 startIdx; /* Index in array of ZSTD_Sequence where range begins */ - U32 startPos; /* Absolute position within array of ZSTD_Sequence where range begins */ - U32 endIdx; /* Index in array of ZSTD_Sequence where range ends */ - U32 endPos; /* Absolute position within array of ZSTD_Sequence where range end */ + U32 startIdx; /* Index in array of ZSTD_Sequence where range begins */ + U32 startPosInSequence; /* Position within sequence at index 'startIdx' where range begins */ + U32 endIdx; /* Index in array of ZSTD_Sequence where range ends */ + U32 endPosInSequence; /* Position within sequence at index 'endIdx' where range ends */ } ZSTD_sequenceRange; static void ZSTD_updateSequenceRange(ZSTD_sequenceRange* sequenceRange, size_t nbBytes, const ZSTD_Sequence* const inSeqs, size_t inSeqsSize) { + U32 newStartIdx = sequenceRange->endIdx; + U32 newStartPos = sequenceRange->endPos; } /* Returns 0 on success, otherwise ZSTD error code */