函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Update the window with the last wsize (normally 32K) bytes written beforereturning. This is only called when a window is already in use, or whenoutput has been written during this inflate call, but the end of the deflatestream has not been reached yet

函数原型:static void zlib_updatewindow(z_streamp strm, unsigned out)

返回类型:void

参数:

类型参数名称
z_streampstrm
unsignedout
106  state等于 not visible by applications
109  copy等于out remaining free space at next_out
110  如果copy大于等于window size or zero if not using window
111  内存复制(allocated sliding window, if needed , next output byte should be put there - window size or zero if not using window , window size or zero if not using window )
112  window write index 等于0
113  valid bytes in the window 等于window size or zero if not using window
115  否则
116  dist等于window size or zero if not using window window write index
117  如果dist大于copydist等于copy
118  内存复制(allocated sliding window, if needed + window write index , next output byte should be put there - copy, dist)
119  copy减等于dist
120  如果copy
125  否则
126  window write index 加等于dist
调用者
名称描述
zlib_inflatelate() uses a state machine to process as much input data and generate asmuch output data as possible before returning
zlib_inflateIncompThis subroutine adds the data at next_in/avail_in to the output history* without performing any output. The output buffer must be "caught up";* i.e. no pending output but this should always be the case. The state must