Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: : nb bytes read from src,

Proto:static size_t ZSTD_buildSeqTable(FSE_DTable *DTableSpace, const FSE_DTable **DTablePtr, symbolEncodingType_e type, U32 max, U32 maxLog, const void *src, size_t srcSize, const FSE_decode_t4 *defaultTable, U32 flagRepeatTable, void *workspace, size_t workspaceSize)

Type:size_t

Parameter:

TypeParameterName
FSE_DTable *DTableSpace
const FSE_DTable **DTablePtr
symbolEncodingType_etype
U32max
U32maxLog
const void *src
size_tsrcSize
const FSE_decode_t4 *defaultTable
U32flagRepeatTable
void *workspace
size_tworkspaceSize

Brief:! ZSTD_buildSeqTable() :or an error code if it fails, testable with ZSTD_isError()

755  tmpPtr = defaultTable
757  Case type == set_rle
758  If Not srcSize Then Return -***************************************** Error codes handling(srcSize_wrong)
760  If src > max Then Return -***************************************** Error codes handling(corruption_detected)
762  -******************************************************** Decompression (Byte symbols)
763  DTablePtr = DTableSpace
764  Return 1
765  Case type == set_basic
765  DTablePtr = tmpPtr
765  Return 0
766  Case type == set_repeat
767  If Not flagRepeatTable Then Return -***************************************** Error codes handling(corruption_detected)
769  Return 0
770  Default
771  Case type == set_compressed
773  norm = workspace
774  spaceUsed32 = @a is a power of 2 value (sizeof(S16) * (Assumption : MaxOff < MaxLL,MaxML + 1), sizeof(U32)) >> 2
776  If spaceUsed32 << 2 > workspaceSize Then Return -***************************************** Error codes handling(GENERIC)
778  workspace = workspace + spaceUsed32
779  workspaceSize -= spaceUsed32 << 2
788  Return headerSize
Caller
NameDescribe
ZSTD_decodeSeqHeaders