Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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

Proto:static void zlib_updatewindow(z_streamp strm, unsigned out)

Type:void

Parameter:

TypeParameterName
z_streampstrm
unsignedout
106  state = not visible by applications
109  copy = out - remaining free space at next_out
110  If copy >= window size or zero if not using window Then
111  No 3D Now!(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  Else
116  dist = window size or zero if not using window - window write index
117  If dist > copy Then dist = copy
118  No 3D Now!(allocated sliding window, if needed + window write index , next output byte should be put there - copy, dist)
119  copy -= dist
120  If copy Then
125  Else
Caller
NameDescribe
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