函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:ZSTD_initDStream

函数原型:ZSTD_DStream *ZSTD_initDStream(size_t maxWindowSize, void *workspace, size_t workspaceSize)

返回类型:ZSTD_DStream

参数:

类型参数名称
size_tmaxWindowSize
void *workspace
size_tworkspaceSize
2216  stackMem等于ZSTD_initStack(workspace, workspaceSize)
2217  zds等于ZSTD_createDStream_advanced(stackMem)
2218  如果非zds
2219  返回:NULL
2222  maxWindowSize等于maxWindowSize
2223  stage等于zdss_loadHeader
2224  lhSize等于inPos等于outStart等于outEnd等于0
2225  ZSTD_freeDDict(ddictLocal)
2226  ddictLocal = NULL
2227  ddict等于ddictLocal
2228  legacyVersion等于0
2229  hostageByte等于0
2232  blockSize等于-************************************** shared macros(maxWindowSize, Define for static allocation )
2233  neededOutSize等于maxWindowSizeblockSize! ZSTD_wildcopy() :* custom version of memcpy(), can copy up to 7 bytes too many (8 bytes if length==0) 乘2
2235  inBuff等于ZSTD_malloc(blockSize, customMem)
2236  inBuffSize等于blockSize
2237  outBuff等于ZSTD_malloc(neededOutSize, customMem)
2238  outBuffSize等于neededOutSize
2239  如果(inBuff == NULL || outBuff == NULL)则
2241  返回:NULL
2244  返回:zds
调用者
名称描述
ZSTD_initDStream_usingDDict