Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:! ZSTD_getDictID_fromDict() :* Provides the dictID stored within dictionary.* if @return == 0, the dictionary is not conformant with Zstandard specification.* It can still be loaded, but as a content-only dictionary.

Proto:unsigned ZSTD_getDictID_fromDict(const void *dict, size_t dictSize)

Type:unsigned

Parameter:

TypeParameterName
const void *dict
size_tdictSize
2107  If dictSize < 8 Then Return 0
2109  If ZSTD_readLE32(dict) != v0.7+ Then Return 0
2111  Return ZSTD_readLE32((constchar * )dict + 4)
Caller
NameDescribe
ZSTD_getDictID_fromDDict! ZSTD_getDictID_fromDDict() :* Provides the dictID of the dictionary loaded into `ddict`.* If @return == 0, the dictionary is not conformant to Zstandard specification, or empty.