函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\zstd\decompress.c Create Date:2022-07-27 08:05:34
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:ZSTD_createDDict_advanced

函数原型:static ZSTD_DDict *ZSTD_createDDict_advanced(const void *dict, size_t dictSize, unsigned byReference, ZSTD_customMem customMem)

返回类型:ZSTD_DDict

参数:

类型参数名称
const void *dict
size_tdictSize
unsignedbyReference
ZSTD_customMemcustomMem
2042  如果非customAlloc或非customFree则返回:NULL
2046  ddict等于ZSTD_malloc(sizeof(ZSTD_DDict), customMem)
2047  如果非ddict则返回:NULL
2049  cMem等于customMem
2051  如果byReference或非dict或非dictSize
2052  dictBuffer = NULL
2053  dictContent等于dict
2054  否则
2056  如果非internalBuffer
2058  返回:NULL
2064  dictSize等于dictSize
2065  hufTable[0]等于HufLog乘0x1000001
2071  返回:NULL
2075  返回:ddict
调用者
名称描述
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