Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:! ZSTD_getcBlockSize() :* Provides the size of compressed block from block header `src`

Proto:size_t ZSTD_getcBlockSize(const void *src, size_t srcSize, blockProperties_t *bpPtr)

Type:size_t

Parameter:

TypeParameterName
const void *src
size_tsrcSize
blockProperties_t *bpPtr
396  If srcSize < ZSTD_blockHeaderSize Then Return -***************************************** 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  If blockType == bt_rle Then Return 1
406  If blockType == bt_reserved Then Return -***************************************** Error codes handling(corruption_detected)
408  Return cSize
Caller
NameDescribe
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)