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

Name:Flush pending data from dictionary to b->out. It is assumed that there is* enough space in b->out. This is guaranteed because caller uses dict_limit()* before decoding data into the dictionary.

Proto:static uint32_t dict_flush(struct dictionary *dict, struct xz_buf *b)

Type:uint32_t

Parameter:

TypeParameterName
struct dictionary *dict
struct xz_buf *b
418  copy_size = Position in buf - Old position in buf (before decoding more data)
420  If DEC_IS_MULTI(Operation mode ) Then
421  If Position in buf == 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. Then Position in buf = 0
424  No 3D Now!(out + out_pos, Beginning of the history buffer + Old position in buf (before decoding more data) , copy_size)
428  Old position in buf (before decoding more data) = Position in buf
429  out_pos += copy_size
430  Return 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.