Lines Matching refs:offCode

2849         /* seqStoreSeqs[i].offset == offCode+1, and ZSTD_updateRep() expects offCode
3345 * Returns the raw offset represented by the combination of offCode, ll0, and repcode history.
3346 * offCode must represent a repcode in the numeric representation of ZSTD_storeSeq().
3349 ZSTD_resolveRepcodeToRawOffset(const U32 rep[ZSTD_REP_NUM], const U32 offCode, const U32 ll0)
3351 U32 const adjustedOffCode = STORED_REPCODE(offCode) - 1 + ll0; /* [ 0 - 3 ] */
3352 assert(STORED_IS_REPCODE(offCode));
3354 /* litlength == 0 and offCode == 2 implies selection of first repcode - 1 */
3380 U32 const offCode = OFFBASE_TO_STORED(seq->offBase);
3382 if (STORED_IS_REPCODE(offCode)) {
3383 U32 const dRawOffset = ZSTD_resolveRepcodeToRawOffset(dRepcodes->rep, offCode, ll0);
3384 U32 const cRawOffset = ZSTD_resolveRepcodeToRawOffset(cRepcodes->rep, offCode, ll0);
3397 ZSTD_updateRep(cRepcodes->rep, offCode, ll0);
5559 * @offCode : is presumed to follow format required by ZSTD_storeSeq()
5563 ZSTD_validateSequence(U32 offCode, U32 matchLength,
5573 RETURN_ERROR_IF(offCode > STORE_OFFSET(offsetBound), corruption_detected, "Offset too large!");
5581 U32 offCode = STORE_OFFSET(rawOffset);
5584 offCode = STORE_REPCODE_1;
5586 offCode = STORE_REPCODE(2 - ll0);
5588 offCode = STORE_REPCODE(3 - ll0);
5590 offCode = STORE_REPCODE_3;
5592 return offCode;
5622 U32 const offCode = ZSTD_finalizeOffCode(inSeqs[idx].offset, updatedRepcodes.rep, ll0);
5623 ZSTD_updateRep(updatedRepcodes.rep, offCode, ll0);
5625 DEBUGLOG(6, "Storing sequence: (of: %u, ml: %u, ll: %u)", offCode, matchLength, litLength);
5628 FORWARD_IF_ERROR(ZSTD_validateSequence(offCode, matchLength, seqPos->posInSrc,
5634 ZSTD_storeSeq(&cctx->seqStore, litLength, ip, iend, offCode, matchLength);
5691 U32 offCode;
5745 offCode = ZSTD_finalizeOffCode(rawOffset, updatedRepcodes.rep, ll0);
5746 ZSTD_updateRep(updatedRepcodes.rep, offCode, ll0);
5751 FORWARD_IF_ERROR(ZSTD_validateSequence(offCode, matchLength, seqPos->posInSrc,
5755 DEBUGLOG(6, "Storing sequence: (of: %u, ml: %u, ll: %u)", offCode, matchLength, litLength);
5758 ZSTD_storeSeq(&cctx->seqStore, litLength, ip, iend, offCode, matchLength);