函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\decompress_bunzip2.c Create Date:2022-07-27 07:14:02
Last Modify:2020-03-15 22:49:38 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Return the next nnn bits of input. All reads from the compressed inputare done through this function. All reads are big endian

函数原型:static unsigned int __attribute__((__section__(".init.text"))) __attribute__((__cold__))get_bits(struct bunzip_data *bd, char bits_wanted)

返回类型:unsigned int

参数:

类型参数名称
struct bunzip_data *bd
charbits_wanted
118  bits等于0
123 inbufBitCount小于bits_wanted循环
126  如果, outbufPos恒等于inbufCount
127  如果-zero if we have IO error 则返回:0
130  如果inbufCount小于等于0则
134  , outbufPos等于0
137  如果inbufBitCount大于等于24则
138  bits等于inbufBits按位与1左移inbufBitCount位的值减1
139  bits_wanted减等于inbufBitCount
140  bits左移等于bits_wanted
141  inbufBitCount等于0
144  inbufBits等于inbufBits左移8位按位或,*outbuf[, outbufPos++]
145  inbufBitCount加等于8
148  inbufBitCount减等于bits_wanted
149  bits或等于inbufBits右移inbufBitCount位按位与1左移bits_wanted位的值减1
151  返回:bits
调用者
名称描述
get_next_blockUnpacks the next block and sets up for the inverse burrows-wheeler step.
start_bunzipAllocate the structure, read file header. If in_fd ==-1, inbuf must containa complete bunzip file (len bytes long). If in_fd!=-1, inbuf and len areignored, and data is read from file handle into temporary buffer.