Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: : 0 if success, or an error code, which can be tested using ZSTD_isError()

Proto:static size_t ZSTD_decodeFrameHeader(ZSTD_DCtx *dctx, const void *src, size_t headerSize)

Type:size_t

Parameter:

TypeParameterName
ZSTD_DCtx *dctx
const void *src
size_theaderSize

Brief:ZSTD_decodeFrameHeader() :* `headerSize` must be the size provided by ZSTD_frameHeaderSize().

374  result = : 0, `fparamsPtr` is correctly filled,
375  If ZSTD_isError() - tells if a size_t function result is an error code*@code: The function result to check for error.* Return: Non-zero iff the code is an error. Then Return result
377  If result > 0 Then Return -***************************************** Error codes handling(srcSize_wrong)
379  If dictID && dictID != dictID Then Return -***************************************** Error codes handling(dictionary_wrong)
381  If checksumFlag Then xxh64_reset( & xxhState, 0)
383  Return 0
Caller
NameDescribe
ZSTD_decompressFrame! ZSTD_decompressFrame() :*@dctx must be properly initialized
ZSTD_decompressContinue : nb of bytes generated into `dst` (necessarily <= `dstCapacity)