Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:ZSTD_decompress_insertDictionary

Proto:static size_t ZSTD_decompress_insertDictionary(ZSTD_DCtx *dctx, const void *dict, size_t dictSize)

Type:size_t

Parameter:

TypeParameterName
ZSTD_DCtx *dctx
const void *dict
size_tdictSize
1945  If dictSize < 8 Then Return ZSTD_refDictContent(dctx, dict, dictSize)
1948  magic = ZSTD_readLE32(dict)
1949  If magic != v0.7+ Then
1953  dictID = ZSTD_readLE32((constchar * )dict + 4)
1957  eSize = : size of entropy tables read
1958  If ZSTD_isError() - tells if a size_t function result is an error code*@code: The function result to check for error.* Return: Non-zero iff the code is an error. Then Return -***************************************** Error codes handling(dictionary_corrupted)
1960  dict = dict + eSize
1961  dictSize -= eSize
1963  litEntropy = fseEntropy = 1
1966  Return ZSTD_refDictContent(dctx, dict, dictSize)
Caller
NameDescribe
ZSTD_decompressBegin_usingDict