Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\zstd\decompress.c Create Date:2022-07-28 07:06:59
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:ZSTD_execSequenceLast7

Proto:size_t ZSTD_execSequenceLast7(BYTE *op, BYTE *const oend, seq_t sequence, const BYTE **litPtr, const BYTE *const litLimit, const BYTE *const base, const BYTE *const vBase, const BYTE *const dictEnd)

Type:size_t

Parameter:

TypeParameterName
BYTE *op
BYTE *constoend
seq_tsequence
const BYTE **litPtr
const BYTE *constlitLimit
const BYTE *constbase
const BYTE *constvBase
const BYTE *constdictEnd
883  oLitEnd = op + litLength
884  sequenceLength = litLength + matchLength
885  oMatchEnd = op + sequenceLength
886  oend_w = oend - ! ZSTD_wildcopy() :* custom version of memcpy(), can copy up to 7 bytes too many (8 bytes if length==0)
887  iLitEnd = litPtr + litLength
888  match = oLitEnd - offset
891  If oMatchEnd > oend Then Return -***************************************** Error codes handling(dstSize_tooSmall)
893  If iLitEnd > litLimit Then Return -***************************************** Error codes handling(corruption_detected)
895  If oLitEnd <= oend_w Then Return -***************************************** Error codes handling(GENERIC)
899  If op < oend_w Then
900  ZSTD_wildcopy(op, * litPtr, oend_w - op)
901  litPtr += oend_w - op
902  op = oend_w
904  When op < oLitEnd cycle
905  op++ = *litPtr++
908  If offset > oLitEnd - base Then
910  If offset > oLitEnd - vBase Then Return -***************************************** Error codes handling(corruption_detected)
912  match = dictEnd - base - match
913  If match + matchLength <= dictEnd Then
915  Return sequenceLength
919  length1 = dictEnd - match
921  op = oLitEnd + length1
922  matchLength -= length1
923  match = base
926  When op < oMatchEnd cycle
927  op++ = match++
928  Return sequenceLength
Caller
NameDescribe
ZSTD_execSequence
ZSTD_execSequenceLong