函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

函数原型:static void lzma_reset(struct xz_dec_lzma2 *s)

返回类型:void

参数:

类型参数名称
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 i小于Total number of all probability variables 循环probs[i]等于RC_BIT_MODEL_TOTAL除2
791  Reset the range decoder.
调用者
名称描述
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.