函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:! ZSTD_getcBlockSize() :* Provides the size of compressed block from block header `src`

函数原型:size_t ZSTD_getcBlockSize(const void *src, size_t srcSize, blockProperties_t *bpPtr)

返回类型:size_t

参数:

类型参数名称
const void *src
size_tsrcSize
blockProperties_t *bpPtr
396  如果srcSize小于ZSTD_blockHeaderSize则返回:-***************************************** Error codes handling(srcSize_wrong)
399  cBlockHeader等于ZSTD_readLE24(src)
400  cSize等于cBlockHeader右移3位
401  lastBlock等于cBlockHeader按位与1
402  blockType等于cBlockHeader右移1位按位与3
403  origSize等于cSize
404  如果blockType恒等于bt_rle则返回:1
406  如果blockType恒等于bt_reserved则返回:-***************************************** Error codes handling(corruption_detected)
408  返回:cSize
调用者
名称描述
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)