函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: : size of the Frame Header

函数原型:static size_t ZSTD_frameHeaderSize(const void *src, size_t srcSize)

返回类型:size_t

参数:

类型参数名称
const void *src
size_tsrcSize

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

191  如果srcSize小于ZSTD_frameHeaderSize_prefix则返回:-***************************************** Error codes handling(srcSize_wrong)
194  BYTE const fhd = )
195  dictID等于fhd按位与3
196  singleSegment等于fhd右移5位按位与1
197  fcsId等于fhd右移6位
198  返回:ZSTD_frameHeaderSize_prefix加非singleSegmentZSTD_did_fieldSize[dictID]加ZSTD_fcs_fieldSize[fcsId]加singleSegment且非fcsId的值
调用者
名称描述
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)