Function report |
Source Code:lib\zstd\compress.c |
Create Date:2022-07-28 07:02:57 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:! ZSTD_resetCCtx_advanced() :note : `params` must be validated
Proto:static size_t ZSTD_resetCCtx_advanced(ZSTD_CCtx *zc, ZSTD_parameters params, U64 frameContentSize, ZSTD_compResetPolicy_e const crp)
Type:size_t
Parameter:
| Type | Parameter | Name |
|---|---|---|
| ZSTD_CCtx * | zc | |
| ZSTD_parameters | params | |
| U64 | frameContentSize | |
| ZSTD_compResetPolicy_e const | crp |
| 244 | If crp == ZSTDcrp_continue Then If ZSTD_equivalentParams(params, params) Then |
| 246 | flagStaticTables = 0 |
| 252 | blockSize = -************************************** shared macros(Define for static allocation , (size_t)1 << windowLog) |
| 253 | divider = If searchLength == 3 Then 3 Else 4 |
| 255 | tokenSpace = blockSize + 11 * maxNbSeq |
| 258 | hashLog3 = If searchLength > 3 Then 0 Else -************************************** 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 + If strategy == ZSTD_btopt || strategy == ZSTD_btopt2 Then optSpace Else 0 |
| 269 | If workSpaceSize < neededSpace Then |
| 271 | workSpace = ZSTD_malloc(neededSpace, customMem) |
| 272 | If (workSpace == NULL) Then Return -***************************************** Error codes handling(memory_allocation) |
| 274 | workSpaceSize = neededSpace |
| 278 | If crp != ZSTDcrp_noMemset Then memset(workSpace, 0, tableSpace) |
| 280 | xxh64_reset( & xxhState, 0) |
| 283 | chainTable = hashTable + hSize |
| 284 | hashTable3 = chainTable + chainSize |
| 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 | When i < umber of repcodes cycle rep[i] = repStartValue[i] |
| 306 | If strategy == ZSTD_btopt || strategy == ZSTD_btopt2 Then |
| 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 | Return 0 |
| Name | Describe |
|---|---|
| ZSTD_copyCCtx | : 0, or an error code |
| ZSTD_compressBegin_internal | : 0, or an error code |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |