Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:FSE_decompress_wksp

Proto:size_t FSE_decompress_wksp(void *dst, size_t dstCapacity, const void *cSrc, size_t cSrcSize, unsigned maxLog, void *workspace, size_t workspaceSize)

Type:size_t

Parameter:

TypeParameterName
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 = workspace + spaceUsed32
309  spaceUsed32 += FSE_DTABLE_SIZE_U32(maxLog)
310  counting = workspace + spaceUsed32
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  If spaceUsed32 << 2 > workspaceSize Then Return -***************************************** Error codes handling(tableLog_tooLarge)
315  workspace = workspace + spaceUsed32
316  workspaceSize -= spaceUsed32 << 2
319  NCountLength = -*************************************************************** FSE NCount encoding-decoding
320  If === Error Management === Then Return NCountLength
324  If tableLog > maxLog Then Return -***************************************** Error codes handling(tableLog_tooLarge)
326  ip += NCountLength
327  cSrcSize -= NCountLength
331  Return FSE_decompress_usingDTable(dst, dstCapacity, ip, cSrcSize, dt)
Caller
NameDescribe
HUF_readStats_wksp : size read from `src` , or an error Code .