Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Send a stored block

Proto:void zlib_tr_stored_block(deflate_state *s, char *buf, ulg stored_len, int eof)

Type:void

Parameter:

TypeParameterName
deflate_state *s
char *bufput block
ulgstored_lenlength of input block
inteofrue if this is the last block for a file
800  al bit length of compressed file = al bit length of compressed file + 3 + 7 & ~7L
801  al bit length of compressed file += length of input block + 4 << 3
803  copy_block(s, put block , (unsigned)length of input block , 1)
Caller
NameDescribe
zlib_tr_flush_blockDetermine the best encoding for the current block: dynamic trees, static* trees or store, and output the encoded block to the zip file. This function* returns the total compressed length for the file so far.