Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Decode the Stream Header field (the first 12 bytes of the .xz Stream).

Proto:static enum xz_ret dec_stream_header(struct xz_dec *s)

Type:enum xz_ret

Parameter:

TypeParameterName
struct xz_dec *s
389  If Not FIXME: Not all basic memory functions are provided in architecture-specific* files (yet). We define our own versions here for now, but this should be* only a temporary solution.* memeq and memzero are not used much and any remotely sane implementation Then Return XZ_FORMAT_ERROR
392  If xz_crc32(buf + HEADER_MAGIC_SIZE, 2, 0) != get_le32(buf + HEADER_MAGIC_SIZE + 2) Then Return XZ_DATA_ERROR
396  If buf[HEADER_MAGIC_SIZE] != 0 Then Return XZ_OPTIONS_ERROR
405  Type of the integrity check calculated from uncompressed data = buf[HEADER_MAGIC_SIZE + 1]
414  If Type of the integrity check calculated from uncompressed data > XZ_CHECK_CRC32 Then Return XZ_OPTIONS_ERROR
418  Return XZ_OK
Caller
NameDescribe
dec_main