Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: : size of entropy tables read

Proto:static size_t ZSTD_loadEntropy(ZSTD_entropyTables_t *entropy, const void *const dict, size_t const dictSize)

Type:size_t

Parameter:

TypeParameterName
ZSTD_entropyTables_t *entropy
const void *constdict must point at beginning of a valid zstd dictionary
size_t constdictSize

Brief:ZSTD_loadEntropy() :

1876  dictPtr = must point at beginning of a valid zstd dictionary
1877  dictEnd = dictPtr + dictSize
1879  If dictSize <= 8 Then Return -***************************************** Error codes handling(dictionary_corrupted)
1881  dictPtr += 8
1884  hSize = HUF_readDTableX4_wksp(hufTable, dictPtr, dictEnd - dictPtr, workspace, size of workspace )
1885  If HUF_isError(hSize) Then Return -***************************************** Error codes handling(dictionary_corrupted)
1887  dictPtr += hSize
1892  offcodeMaxValue = MaxOff
1893  offcodeHeaderSize = -*************************************************************** FSE NCount encoding-decoding
1894  If === Error Management === Then Return -***************************************** Error codes handling(dictionary_corrupted)
1896  If offcodeLog > OffFSELog Then Return -***************************************** Error codes handling(dictionary_corrupted)
1899  dictPtr += offcodeHeaderSize
1904  matchlengthMaxValue = MaxML
1905  matchlengthHeaderSize = -*************************************************************** FSE NCount encoding-decoding
1906  If === Error Management === Then Return -***************************************** Error codes handling(dictionary_corrupted)
1908  If matchlengthLog > MLFSELog Then Return -***************************************** Error codes handling(dictionary_corrupted)
1911  dictPtr += matchlengthHeaderSize
1916  litlengthMaxValue = MaxLL
1917  litlengthHeaderSize = -*************************************************************** FSE NCount encoding-decoding
1918  If === Error Management === Then Return -***************************************** Error codes handling(dictionary_corrupted)
1920  If litlengthLog > LLFSELog Then Return -***************************************** Error codes handling(dictionary_corrupted)
1923  dictPtr += litlengthHeaderSize
1926  If dictPtr + 12 > dictEnd Then Return -***************************************** Error codes handling(dictionary_corrupted)
1930  dictContentSize = dictEnd - dictPtr + 12
1931  When i < 3 cycle
1933  dictPtr += 4
1936  rep[i] = rep
1940  Return dictPtr - must point at beginning of a valid zstd dictionary
Caller
NameDescribe
ZSTD_decompress_insertDictionary
ZSTD_loadEntropy_inDDict