Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:HUF_estimateCompressedSize

Proto:static size_t HUF_estimateCompressedSize(HUF_CElt *CTable, const unsigned *count, unsigned maxSymbolValue)

Type:size_t

Parameter:

TypeParameterName
HUF_CElt *CTable
const unsigned *count
unsignedmaxSymbolValue
503  nbBits = 0
505  When s <= maxSymbolValue cycle
506  nbBits += nbBits * count[s]
508  Return nbBits >> 3
Caller
NameDescribe
HUF_compress_internal`workSpace` must a table of at least 1024 unsigned