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

Name:zlib_inflateInit2

Proto:int zlib_inflateInit2(z_streamp strm, int windowBits)

Type:int

Parameter:

TypeParameterName
z_streampstrm
intwindowBits
52  If (strm == NULL) Then Return Z_STREAM_ERROR
53  last error message, NULL if no error = NULL
55  state = inflate_state
56  not visible by applications = state
58  If windowBits < 0 Then
59  0 true for zlib, bit 1 true for gzip = 0
60  windowBits = -windowBits
62  Else
63  0 true for zlib, bit 1 true for gzip = (windowBits >> 4) + 1
65  If windowBits < 8 || windowBits > 15 Then
66  Return Z_STREAM_ERROR
68  log base 2 of requested window size = windowBits
69  allocated sliding window, if needed = working_window[0]
71  Return zlib_inflateReset(strm)
Caller
NameDescribe
zlib_inflate_blobUtility function: initialize zlib, unpack binary blob, clean up zlib,* return len or negative error code.