Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:xz_crc32

Proto:uint32_t xz_crc32(const uint8_t *buf, size_t size, uint32_t crc)

Type:uint32_t

Parameter:

TypeParameterName
const uint8_t *buf
size_tsize
uint32_tcrc
51  crc = ~crc
53  When size != 0 cycle
54  crc = xz_crc32_table[ * buf++ ^ (crc & 0xFF)] ^ crc >> 8
55  --size
58  Return ~crc
Caller
NameDescribe
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.