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:44
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Reset the LZMA decoder and range decoder state. Dictionary is nore reset* here, because LZMA state may be reset without resetting the dictionary.

Proto:static void lzma_reset(struct xz_dec_lzma2 *s)

Type:void

Parameter:

TypeParameterName
struct xz_dec_lzma2 *s
772  Types of the most recently seen LZMA symbols = STATE_LIT_LIT
773  Distances of latest four matches = 0
774  rep1 = 0
775  rep2 = 0
776  rep3 = 0
787  probs = If 1, it's a match. Otherwise it's a single 8-bit literal. [0]
788  When i < Total number of all probability variables cycle probs[i] = RC_BIT_MODEL_TOTAL / 2
791  Reset the range decoder.
Caller
NameDescribe
lzma_propsDecode and validate LZMA properties (lc/lp/pb) and calculate the bit masks* from the decoded lp and pb values. On success, the LZMA decoder state is* reset and true is returned.
xz_dec_lzma2_runTake care of the LZMA2 control layer, and forward the job of actual LZMA* decoding or copying of uncompressed chunks to other functions.