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

Name:Copy uncompressed data as is from input to dictionary and output buffers.

Proto:static void dict_uncompressed(struct dictionary *dict, struct xz_buf *b, uint32_t *left)

Type:void

Parameter:

TypeParameterName
struct dictionary *dict
struct xz_buf *b
uint32_t *left
379  When left > 0 && in_pos < in_size && out_pos < out_size cycle
381  copy_size = min - return minimum of two values of the same or compatible types*@x: first value*@y: second value(in_size - in_pos, out_size - out_pos)
383  If 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 Then 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  If copy_size > left Then copy_size = left
388  left -= copy_size
390  No 3D Now!(Beginning of the history buffer + Position in buf , in + in_pos, copy_size)
391  Position in buf += copy_size
393  If How full dictionary is. This is used to detect corrupt input that* would read beyond the beginning of the uncompressed stream. < Position in buf Then 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  If DEC_IS_MULTI(Operation mode ) Then
404  Old position in buf (before decoding more data) = Position in buf
406  out_pos += copy_size
407  in_pos += copy_size
Caller
NameDescribe
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.