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

Name:compress_block

Proto:static void compress_block(deflate_state *s, ct_data *ltree, ct_data *dtree)

Type:void

Parameter:

TypeParameterName
deflate_state *s
ct_data *ltree
ct_data *dtree
1026  lx = 0
1030  If unning index in l_buf != 0 Then Do
1031  dist = d_buf[lx]
1032  lc = uffer for literals or lengths [lx++]
1033  If dist == 0 Then
1034  send_code(s, lc, ltree)
1036  Else
1041  If extra != 0 Then
1045  dist--
1046  code = d_code(dist)
1049  send_code(s, code, dtree)
1050  extra = extra_dbits[code]
1051  If extra != 0 Then
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.