函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:ZSTD_initStack

函数原型:ZSTD_customMem ZSTD_initStack(void *workspace, size_t workspaceSize)

返回类型:ZSTD_customMem

参数:

类型参数名称
void *workspace
size_tworkspaceSize
37  ZSTD_customMem stackMem = {ZSTD_stackAlloc, ZSTD_stackFree, workspace}
38  stack等于workspace
40  如果非workspaceworkspaceSize小于sizeof(ZSTD_stack)或workspace不等于ZSTD_PTR_ALIGN(workspace)则
41  ZSTD_customMem error = {NULL, NULL, NULL}
42  返回:error
45  ptr等于workspace
46  end等于workspaceworkspaceSize
47  =*************************************************************** Custom allocator(stack, sizeof(ZSTD_stack))
48  返回:stackMem
调用者
名称描述
ZSTD_initCDict
ZSTD_initCStream
ZSTD_initDCtx
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
ZSTD_initDStream
ZSTD_initCCtx