函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Decode 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.

函数原型:static bool lzma_props(struct xz_dec_lzma2 *s, uint8_t props)

返回类型:bool

参数:

类型参数名称
struct xz_dec_lzma2 *s
uint8_tprops
801  如果props大于4乘5加4的和乘9加8则返回:false
804  (1 << pb) - 1 等于0
805 props大于等于9乘5循环
806  props减等于9乘5
807  (1 << pb) - 1 先自加
810  (1 << pb) - 1 等于1左移 (1 << pb) - 1 位的值减1
812  (1 << lp) - 1 等于0
813 props大于等于9循环
814  props减等于9
815  (1 << lp) - 1 先自加
818  * LZMA properties or related bit masks (number of literal * context bits, a mask dervied from the number of literal * position bits, and a mask dervied from the number * position bits)等于props
820  如果* LZMA properties or related bit masks (number of literal * context bits, a mask dervied from the number of literal * position bits, and a mask dervied from the number * position bits) (1 << lp) - 1 大于4则返回:false
823  (1 << lp) - 1 等于1左移 (1 << lp) - 1 位的值减1
825  Reset the LZMA decoder and range decoder state. Dictionary is nore reset* here, because LZMA state may be reset without resetting the dictionary.
827  返回:true
调用者
名称描述
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.