Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:ZSTD_initStack

Proto:ZSTD_customMem ZSTD_initStack(void *workspace, size_t workspaceSize)

Type:ZSTD_customMem

Parameter:

TypeParameterName
void *workspace
size_tworkspaceSize
37  ZSTD_customMem stackMem = {ZSTD_stackAlloc, ZSTD_stackFree, workspace}
38  stack = workspace
40  If Not workspace || workspaceSize < sizeof(ZSTD_stack) || workspace != ZSTD_PTR_ALIGN(workspace) Then
41  ZSTD_customMem error = {NULL, NULL, NULL}
42  Return error
45  ptr = workspace
46  end = workspace + workspaceSize
47  =*************************************************************** Custom allocator(stack, sizeof(ZSTD_stack))
48  Return stackMem
Caller
NameDescribe
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