函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:! ZSTD_resetCCtx_advanced() :note : `params` must be validated

函数原型:static size_t ZSTD_resetCCtx_advanced(ZSTD_CCtx *zc, ZSTD_parameters params, U64 frameContentSize, ZSTD_compResetPolicy_e const crp)

返回类型:size_t

参数:

类型参数名称
ZSTD_CCtx *zc
ZSTD_parametersparams
U64frameContentSize
ZSTD_compResetPolicy_e constcrp
244  如果crp恒等于ZSTDcrp_continue则如果ZSTD_equivalentParams(params, params)则
246  flagStaticTables等于0
247  flagStaticHufTable等于*< Cannot use the previous table
248  返回:! ZSTD_continueCCtx() :reuse CCtx without reset (note : requires no dictionary)
252  blockSize等于-************************************** shared macros(Define for static allocation , (size_t)1 << windowLog)
253  divider等于如果searchLength恒等于3则3否则4
254  maxNbSeq等于blockSizedivider
255  tokenSpace等于blockSize加11乘maxNbSeq
256  chainSize等于如果strategy恒等于ZSTD_fast则0否则1左移chainLog
257  hSize等于1左移hashLog
258  hashLog3等于如果searchLength大于3则0否则-************************************** shared macros(ZSTD_HASHLOG3_MAX, windowLog)
259  h3Size等于1左移hashLog3
260  tableSpace等于chainSizehSizeh3Size的和乘sizeof(U32)
265  optSpace等于MaxML加1加MaxLL加1加MaxOff加1加1左移Litbits位的值的和乘sizeof(U32)加-************************************** Common constants加1的和乘sizeof(ZSTD_match_t)加sizeof(ZSTD_optimal_t)的和
267  neededSpace等于tableSpace加256乘sizeof(U32)加tokenSpace加如果strategy恒等于ZSTD_btoptstrategy恒等于ZSTD_btopt2optSpace否则0
269  如果workSpaceSize小于neededSpace
278  如果crp不等于ZSTDcrp_noMemsetmemset(workSpace, 0, tableSpace)
280  xxh64_reset( & xxhState, 0)
281  hashLog3等于hashLog3
282  hashTable等于workSpace
283  chainTable等于hashTablehSize
284  hashTable3等于chainTablechainSize
285  ptr等于hashTable3h3Size
286  hufTable等于ptr
287  flagStaticTables等于0
288  flagStaticHufTable等于*< Cannot use the previous table
289  ptr等于ptr加256
291  nextToUpdate等于1
292  nextSrc = NULL
293  base = NULL
294  dictBase = NULL
295  dictLimit等于0
296  lowLimit等于0
297  params等于params
298  blockSize等于blockSize
306  如果strategy恒等于ZSTD_btoptstrategy恒等于ZSTD_btopt2
307  litFreq等于ptr
308  litLengthFreq等于litFreq加1左移Litbits位的值
310  offCodeFreq等于matchLengthFreqMaxML加1
311  ptr等于offCodeFreqMaxOff加1
312  matchTable等于ptr
314  priceTable等于ptr
316  litLengthSum等于0
318  sequencesStart等于ptr
319  ptr等于sequencesStartmaxNbSeq
320  llCode等于ptr
321  mlCode等于llCodemaxNbSeq
322  ofCode等于mlCodemaxNbSeq
323  litStart等于ofCodemaxNbSeq
325  stage等于ZSTDcs_init
326  dictID等于0
327  loadedDictEnd等于0
329  返回:0
调用者
名称描述
ZSTD_copyCCtx : 0, or an error code
ZSTD_compressBegin_internal : 0, or an error code