函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:FSE_decompress_wksp

函数原型:size_t FSE_decompress_wksp(void *dst, size_t dstCapacity, const void *cSrc, size_t cSrcSize, unsigned maxLog, void *workspace, size_t workspaceSize)

返回类型:size_t

参数:

类型参数名称
void *dst
size_tdstCapacity
const void *cSrc
size_tcSrcSize
unsignedmaxLog
void *workspace
size_tworkspaceSize
296  istart等于cSrc
297  ip等于istart
299  maxSymbolValue等于!FSE_MAX_SYMBOL_VALUE :* Maximum symbol value authorized.* Required for proper stack allocation
304  spaceUsed32等于0
308  dt等于workspacespaceUsed32
309  spaceUsed32加等于FSE_DTABLE_SIZE_U32(maxLog)
310  counting等于workspacespaceUsed32
311  spaceUsed32加等于@a is a power of 2 value (sizeof(short) * (!FSE_MAX_SYMBOL_VALUE :* Maximum symbol value authorized.* Required for proper stack allocation + 1), sizeof(U32))右移2位
313  如果spaceUsed32左移2位大于workspaceSize则返回:-***************************************** Error codes handling(tableLog_tooLarge)
315  workspace等于workspacespaceUsed32
316  workspaceSize减等于spaceUsed32左移2位
319  NCountLength等于-*************************************************************** FSE NCount encoding-decoding
320  如果=== Error Management ===则返回:NCountLength
324  如果tableLog大于maxLog则返回:-***************************************** Error codes handling(tableLog_tooLarge)
326  ip加等于NCountLength
327  cSrcSize减等于NCountLength
331  返回:FSE_decompress_usingDTable(dst, dstCapacity, ip, cSrcSize, dt)
调用者
名称描述
HUF_readStats_wksp : size read from `src` , or an error Code .