函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Copy uncompressed data as is from input to dictionary and output buffers.

函数原型:static void dict_uncompressed(struct dictionary *dict, struct xz_buf *b, uint32_t *left)

返回类型:void

参数:

类型参数名称
struct dictionary *dict
struct xz_buf *b
uint32_t *left
379 left大于0且in_pos小于in_sizeout_pos小于out_size循环
381  copy_size等于两数取小(in_size - in_pos, out_size - out_pos)
383  如果copy_size大于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.Position in buf copy_size等于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.Position in buf
385  如果copy_size大于leftcopy_size等于left
388  left减等于copy_size
390  内存复制(Beginning of the history buffer + Position in buf , in + in_pos, copy_size)
391  Position in buf 加等于copy_size
393  如果How full dictionary is. This is used to detect corrupt input that* would read beyond the beginning of the uncompressed stream.小于Position in buf How full dictionary is. This is used to detect corrupt input that* would read beyond the beginning of the uncompressed stream.等于Position in buf
396  如果DEC_IS_MULTI(Operation mode )则
404  Old position in buf (before decoding more data) 等于Position in buf
406  out_pos加等于copy_size
407  in_pos加等于copy_size
调用者
名称描述
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.