函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:ZSTD_CCtxWorkspaceBound

函数原型:size_t ZSTD_CCtxWorkspaceBound(ZSTD_compressionParameters cParams)

返回类型:size_t

参数:

类型参数名称
ZSTD_compressionParameterscParams
92  blockSize等于-************************************** shared macros(Define for static allocation , (size_t)1 << windowLog)
93  divider等于如果searchLength恒等于3则3否则4
94  maxNbSeq等于blockSizedivider
95  tokenSpace等于blockSize加11乘maxNbSeq
96  chainSize等于如果strategy恒等于ZSTD_fast则0否则1左移chainLog
97  hSize等于1左移hashLog
98  hashLog3等于如果searchLength大于3则0否则-************************************** shared macros(ZSTD_HASHLOG3_MAX, windowLog)
99  h3Size等于1左移hashLog3
100  tableSpace等于chainSizehSizeh3Size的和乘sizeof(U32)
101  optSpace等于MaxML加1加MaxLL加1加MaxOff加1加1左移Litbits位的值的和乘sizeof(U32)加-************************************** Common constants加1的和乘sizeof(ZSTD_match_t)加sizeof(ZSTD_optimal_t)的和
103  workspaceSize等于tableSpace加256乘sizeof(U32)加tokenSpace加如果strategy恒等于ZSTD_btoptstrategy恒等于ZSTD_btopt2optSpace否则0
106  返回:ZSTD_ALIGN(sizeof(ZSTD_stack))加ZSTD_ALIGN(sizeof(ZSTD_CCtx))加ZSTD_ALIGN(workspaceSize)
调用者
名称描述
ZSTD_CDictWorkspaceBound
ZSTD_CStreamWorkspaceBound