函数逻辑报告 |
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 |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:! 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_parameters | params | |
U64 | frameContentSize | |
ZSTD_compResetPolicy_e const | crp |
244 | 如果crp恒等于ZSTDcrp_continue则如果ZSTD_equivalentParams(params, params)则 |
246 | flagStaticTables等于0 |
252 | blockSize等于-************************************** shared macros(Define for static allocation , (size_t)1 << windowLog) |
253 | divider等于如果searchLength恒等于3则3否则4 |
255 | tokenSpace等于blockSize加11乘maxNbSeq |
258 | hashLog3等于如果searchLength大于3则0否则-************************************** shared macros(ZSTD_HASHLOG3_MAX, windowLog) |
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_btopt或strategy恒等于ZSTD_btopt2则optSpace否则0 |
269 | 如果workSpaceSize小于neededSpace则 |
271 | workSpace等于ZSTD_malloc(neededSpace, customMem) |
272 | 如果(workSpace == NULL)则返回:-***************************************** Error codes handling(memory_allocation) |
274 | workSpaceSize等于neededSpace |
278 | 如果crp不等于ZSTDcrp_noMemset则memset(workSpace, 0, tableSpace) |
280 | xxh64_reset( & xxhState, 0) |
283 | chainTable等于hashTable加hSize |
285 | ptr等于hashTable3加h3Size |
287 | flagStaticTables等于0 |
291 | nextToUpdate等于1 |
292 | nextSrc = NULL |
293 | base = NULL |
294 | dictBase = NULL |
295 | dictLimit等于0 |
296 | lowLimit等于0 |
302 | 以i小于umber of repcodes 循环rep[i]等于repStartValue[i] |
306 | 如果strategy恒等于ZSTD_btopt或strategy恒等于ZSTD_btopt2则 |
308 | litLengthFreq等于litFreq加1左移Litbits位的值 |
309 | matchLengthFreq等于litLengthFreq加MaxLL加1 |
310 | offCodeFreq等于matchLengthFreq加MaxML加1 |
311 | ptr等于offCodeFreq加MaxOff加1 |
312 | matchTable等于ptr |
314 | priceTable等于ptr |
316 | litLengthSum等于0 |
318 | sequencesStart等于ptr |
319 | ptr等于sequencesStart加maxNbSeq |
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 |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |