Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Get a byte from the dictionary at the given distance. The distance is* assumed to valid, or as a special case, zero when the dictionary is* still empty. This special case is needed for single-call decoding to

Proto:static inline uint32_t dict_get(const struct dictionary *dict, uint32_t dist)

Type:uint32_t

Parameter:

TypeParameterName
const struct dictionary *dict
uint32_tdist
322  offset = Position in buf - dist - 1
324  If dist >= Position in buf Then offset += End of the dictionary buffer. In multi-call mode, this is* the same as the dictionary size. In single-call mode, this* indicates the size of the output buffer.
327  Return If How full dictionary is. This is used to detect corrupt input that* would read beyond the beginning of the uncompressed stream. > 0 Then Beginning of the history buffer [offset] Else 0
Caller
NameDescribe
lzma_literal_probsGet pointer to literal coder probability array.
lzma_literalDecode a literal (one 8-bit byte)