函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\zlib_deflate\deftree.c Create Date:2022-07-27 07:56:18
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:set_data_type

函数原型:static void set_data_type(deflate_state *s)

返回类型:void

参数:

类型参数名称
deflate_state *s
1076  n等于0
1077  ascii_freq等于0
1078  bin_freq等于0
1079 n小于7循环
1079  bin_freq加等于Freq
1080 n小于128循环
1080  ascii_freq加等于Freq
1081 n小于umber of length codes, not counting the special END_BLOCK code 循环
1081  bin_freq加等于Freq
1082  UNKNOWN, BINARY or ASCII 等于如果bin_freq大于ascii_freq右移2位则compression strategy; see deflateInit2() below for details 否则Z_ASCII
调用者
名称描述
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.