函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:zlib_deflate

函数原型:int zlib_deflate(z_streamp strm, int flush)

返回类型:int

参数:

类型参数名称
z_streampstrm
intflush
335  如果strm恒等于NULL not visible by applications 恒等于NULLflush大于Z_FINISHflush小于0则
337  返回:Z_STREAM_ERROR
339  s等于 not visible by applications
341  如果 next input byte 恒等于NULL number of bytes available at next_in 不等于0或as the name implies 恒等于FINISH_STATEflush不等于Z_FINISH
343  返回:Z_STREAM_ERROR
345  如果 remaining free space at next_out 恒等于0则返回:Z_BUF_ERROR
347  pointer back to this zlib stream 等于strm
348  old_flush等于value of flush param for previous deflate call
349  value of flush param for previous deflate call 等于flush
352  如果as the name implies 恒等于All codes must not exceed MAX_BITS bits
354  header等于Possible values of the data_type field log2(w_size) (8..16) 减8左移4位的值左移8位
355  level_flags等于compression level (1..9) 减1右移1位
357  如果level_flags大于3则level_flags等于3
358  header或等于level_flags左移6位
359  如果start of string to insert 不等于0则header或等于preset dictionary flag in zlib header
360  header加等于31减header取模31
362  as the name implies 等于BUSY_STATE
363  putShortMSB(s, header)
366  如果start of string to insert 不等于0则
370  adler32 value of the uncompressed data 等于1L
374  如果b of bytes in the pending buffer 不等于0则
375  flush_pending(strm)
376  如果 remaining free space at next_out 恒等于0则
391  否则如果 number of bytes available at next_in 恒等于0且flush小于等于old_flushflush不等于Z_FINISH
393  返回:Z_BUF_ERROR
397  如果as the name implies 恒等于FINISH_STATE number of bytes available at next_in 不等于0则
398  返回:Z_BUF_ERROR
403  如果 number of bytes available at next_in 不等于0或umber of valid bytes ahead in window 不等于0或flush不等于constants as the name implies 不等于FINISH_STATE
407  bstate = ( * (func))(s, flush)
413  如果 remaining free space at next_out 恒等于0则
425  如果bstate恒等于lock flush performed
428  否则如果flush恒等于Z_PACKET_FLUSH
432  否则
433  zlib_tr_stored_block(s, (char * )0, 0L, 0)
437  如果flush恒等于Z_FULL_FLUSH
442  如果 remaining free space at next_out 恒等于0则