Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:ZSTD_createDDict_advanced

Proto:static ZSTD_DDict *ZSTD_createDDict_advanced(const void *dict, size_t dictSize, unsigned byReference, ZSTD_customMem customMem)

Type:ZSTD_DDict

Parameter:

TypeParameterName
const void *dict
size_tdictSize
unsignedbyReference
ZSTD_customMemcustomMem
2042  If Not customAlloc || Not customFree Then Return NULL
2046  ddict = ZSTD_malloc(sizeof(ZSTD_DDict), customMem)
2047  If Not ddict Then Return NULL
2049  cMem = customMem
2051  If byReference || Not dict || Not dictSize Then
2052  dictBuffer = NULL
2053  dictContent = dict
2054  Else
2056  If Not internalBuffer Then
2058  Return NULL
2064  dictSize = dictSize
2065  hufTable[0] = HufLog * 0x1000001
2071  Return NULL
2075  Return ddict
Caller
NameDescribe
ZSTD_initDDict! ZSTD_initDDict() :* Create a digested dictionary, to start decompression without startup delay.* `dict` content is copied inside DDict.* Consequently, `dict` can be released after `ZSTD_DDict` creation