Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: : size of the Frame Header

Proto:static size_t ZSTD_frameHeaderSize(const void *src, size_t srcSize)

Type:size_t

Parameter:

TypeParameterName
const void *src
size_tsrcSize

Brief:ZSTD_frameHeaderSize() :* srcSize must be >= ZSTD_frameHeaderSize_prefix.

191  If srcSize < ZSTD_frameHeaderSize_prefix Then Return -***************************************** Error codes handling(srcSize_wrong)
194  BYTE const fhd = )
195  dictID = fhd & 3
196  singleSegment = fhd >> 5 & 1
197  fcsId = fhd >> 6
198  Return ZSTD_frameHeaderSize_prefix + Not singleSegment + ZSTD_did_fieldSize[dictID] + ZSTD_fcs_fieldSize[fcsId] + (singleSegment && Not fcsId )
Caller
NameDescribe
ZSTD_getFrameParams : 0, `fparamsPtr` is correctly filled,
ZSTD_findFrameCompressedSize : the compressed size of the frame starting at `src`
ZSTD_decompressFrame! ZSTD_decompressFrame() :*@dctx must be properly initialized
ZSTD_decompressContinue : nb of bytes generated into `dst` (necessarily <= `dstCapacity)