Modify SequenceRange to have posInSequence

This commit is contained in:
senhuang42 2020-10-28 11:07:36 -04:00
parent d99b675112
commit b116e1f211

View File

@ -4490,14 +4490,16 @@ 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 startPosInSequence; /* Position within sequence at index 'startIdx' 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 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 */