函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:xz_crc32

函数原型:uint32_t xz_crc32(const uint8_t *buf, size_t size, uint32_t crc)

返回类型:uint32_t

参数:

类型参数名称
const uint8_t *buf
size_tsize
uint32_tcrc
51  crc等于crc的反
53 size不等于0循环
54  crc等于xz_crc32_table[ * buf++ ^ (crc & 0xFF)]按位异或crc右移8位
55  size先自减
58  返回:crc的反
调用者
名称描述
dec_blockDecode the Compressed Data field from a Block
index_updateUpdate the Index size and the CRC32 value.
dec_indexDecode the Number of Records, Unpadded Size, and Uncompressed Size* fields from the Index field. That is, Index Padding and CRC32 are not* decoded by this function.* This can return XZ_OK (more input needed), XZ_STREAM_END (everything
dec_stream_headerDecode the Stream Header field (the first 12 bytes of the .xz Stream).
dec_stream_footerDecode the Stream Footer field (the last 12 bytes of the .xz Stream)
dec_block_headerDecode the Block Header and initialize the filter chain.