Function report |
Source Code:lib\zstd\fse_decompress.c |
Create Date:2022-07-28 07:08:14 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:FSE_decompress_wksp
Proto:size_t FSE_decompress_wksp(void *dst, size_t dstCapacity, const void *cSrc, size_t cSrcSize, unsigned maxLog, void *workspace, size_t workspaceSize)
Type:size_t
Parameter:
| Type | Parameter | Name |
|---|---|---|
| void * | dst | |
| size_t | dstCapacity | |
| const void * | cSrc | |
| size_t | cSrcSize | |
| unsigned | maxLog | |
| void * | workspace | |
| size_t | workspaceSize |
| 299 | maxSymbolValue = !FSE_MAX_SYMBOL_VALUE :* Maximum symbol value authorized.* Required for proper stack allocation |
| 304 | spaceUsed32 = 0 |
| 308 | dt = workspace + spaceUsed32 |
| 309 | spaceUsed32 += FSE_DTABLE_SIZE_U32(maxLog) |
| 310 | counting = workspace + spaceUsed32 |
| 311 | spaceUsed32 += @a is a power of 2 value (sizeof(short) * (!FSE_MAX_SYMBOL_VALUE :* Maximum symbol value authorized.* Required for proper stack allocation + 1), sizeof(U32)) >> 2 |
| 313 | If spaceUsed32 << 2 > workspaceSize Then Return -***************************************** Error codes handling(tableLog_tooLarge) |
| 315 | workspace = workspace + spaceUsed32 |
| 316 | workspaceSize -= spaceUsed32 << 2 |
| 319 | NCountLength = -*************************************************************** FSE NCount encoding-decoding |
| 320 | If === Error Management === Then Return NCountLength |
| 324 | If tableLog > maxLog Then Return -***************************************** Error codes handling(tableLog_tooLarge) |
| 326 | ip += NCountLength |
| 327 | cSrcSize -= NCountLength |
| 331 | Return FSE_decompress_usingDTable(dst, dstCapacity, ip, cSrcSize, dt) |
| Name | Describe |
|---|---|
| HUF_readStats_wksp | : size read from `src` , 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 |