Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\xz\xz_dec_stream.c Create Date:2022-07-28 07:08:28
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:dec_main

Proto:static enum xz_ret dec_main(struct xz_dec *s, struct xz_buf *b)

Type:enum xz_ret

Parameter:

TypeParameterName
struct xz_dec *s
struct xz_buf *b
557  Saved in_pos and out_pos = in_pos
559  When (true) cycle
583  If ret != XZ_OK Then Return ret
590  If in_pos == in_size Then Return XZ_OK
594  If in[in_pos] == 0 Then
608  pos = 0
618  If ret != XZ_OK Then Return ret
627  If ret != XZ_STREAM_END Then Return ret
643  If in_pos == in_size Then Return XZ_OK
646  If in[in_pos++] != 0 Then Return XZ_DATA_ERROR
669  Break
673  If ret != XZ_STREAM_END Then Return ret
683  If in_pos == in_size Then
688  If in[in_pos++] != 0 Then Return XZ_DATA_ERROR
706  If ret != XZ_STREAM_END Then Return ret
Caller
NameDescribe
xz_dec_runxz_dec_run() is a wrapper for dec_main() to handle some special cases in* multi-call and single-call decoding.* In multi-call mode, we must return XZ_BUF_ERROR when it seems clear that we* are not going to make any progress anymore