Function report |
Source Code:lib\zlib_inflate\infutil.c |
Create Date:2022-07-28 06:58:05 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Utility function: initialize zlib, unpack binary blob, clean up zlib,* return len or negative error code.
Proto:int zlib_inflate_blob(void *gunzip_buf, unsigned int sz, const void *buf, unsigned int len)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
void * | gunzip_buf | |
unsigned int | sz | |
const void * | buf | |
unsigned int | len |
17 | strm = kmalloc( size of strm , GFP_KERNEL) |
18 | If (strm == NULL) Then Go to gunzip_nomem1 |
21 | If ( memory allocated for this stream == NULL) Then Go to gunzip_nomem2 |
27 | next input byte = zbuf |
32 | rc = zlib_inflateInit2(strm, - 32K LZ77 window ) |
34 | rc = late() uses a state machine to process as much input data and generate asmuch output data as possible before returning |
36 | If rc == Z_STREAM_END Then rc = sz - remaining free space at next_out |
40 | zlib_inflateEnd(strm) |
45 | gunzip_nomem2 : |
47 | gunzip_nomem1 : |
48 | Return rc |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |