函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Decode the Stream Header field (the first 12 bytes of the .xz Stream).

函数原型:static enum xz_ret dec_stream_header(struct xz_dec *s)

返回类型:enum xz_ret

参数:

类型参数名称
struct xz_dec *s
389  如果非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则返回:XZ_FORMAT_ERROR
392  如果xz_crc32(buf + HEADER_MAGIC_SIZE, 2, 0)不等于get_le32(buf + HEADER_MAGIC_SIZE + 2)则返回:XZ_DATA_ERROR
396  如果buf[HEADER_MAGIC_SIZE]不等于0则返回:XZ_OPTIONS_ERROR
405  Type of the integrity check calculated from uncompressed data 等于buf[HEADER_MAGIC_SIZE + 1]
414  如果 Type of the integrity check calculated from uncompressed data 大于XZ_CHECK_CRC32则返回:XZ_OPTIONS_ERROR
418  返回:XZ_OK
调用者
名称描述
dec_main