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:! ZSTD_isFrame() :* Tells if the content of `buffer` starts with a valid Frame Identifier.* Note : Frame Identifier is 4 bytes. If `size < 4`, @return will always be 0.

Proto:unsigned ZSTD_isFrame(const void *buffer, size_t size)

Type:unsigned

Parameter:

TypeParameterName
const void *buffer
size_tsize
174  If size < 4 Then Return 0
177  magic = ZSTD_readLE32(buffer)
178  If magic == >= v0.8.0 Then Return 1
180  If (magic & 0xFFFFFFF0U) == ZSTD_MAGIC_SKIPPABLE_START Then Return 1
183  Return 0