函数逻辑报告 |
Source Code:lib\zstd\entropy_common.c |
Create Date:2022-07-27 08:05:53 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:-*************************************************************** FSE NCount encoding-decoding
函数原型:size_t FSE_readNCount(short *normalizedCounter, unsigned *maxSVPtr, unsigned *tableLogPtr, const void *headerBuffer, size_t hbSize)
返回类型:size_t
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| short * | normalizedCounter | |
| unsigned * | maxSVPtr | |
| unsigned * | tableLogPtr | |
| const void * | headerBuffer | |
| size_t | hbSize |
| 61 | istart等于headerBuffer |
| 69 | charnum等于0 |
| 70 | previous0等于0 |
| 74 | bitStream等于ZSTD_readLE32(ip) |
| 75 | nbBits等于bitStream按位与0xF的值加FSE_MIN_TABLELOG |
| 76 | 如果nbBits大于FSE_TABLELOG_ABSOLUTE_MAX则返回:-***************************************** Error codes handling(tableLog_tooLarge) |
| 78 | bitStream右移等于4位 |
| 79 | bitCount等于4 |
| 80 | tableLogPtr等于nbBits |
| 83 | nbBits自加 |
| 86 | 如果previous0则 |
| 104 | bitCount加等于2 |
| 105 | 如果n0大于maxSVPtr则返回:-***************************************** Error codes handling(maxSymbolValue_tooSmall) |
| 108 | normalizedCounter[charnum++]等于0 |
| 113 | 否则 |
| 114 | bitStream右移等于2位 |
| 124 | 否则 |
| 131 | count自减 |
| 133 | normalizedCounter[charnum++]等于count |
| 143 | 否则 |
| 147 | bitStream等于ZSTD_readLE32(ip)右移bitCount按位与31的值位 |
| 150 | 如果remaining不等于1则返回:-***************************************** Error codes handling(corruption_detected) |
| 152 | 如果bitCount大于32则返回:-***************************************** Error codes handling(corruption_detected) |
| 名称 | 描述 |
|---|---|
| ZSTD_loadZstdDictionary | : 0, or an error code |
| FSE_decompress_wksp | |
| ZSTD_buildSeqTable | : nb bytes read from src, |
| ZSTD_loadEntropy | : size of entropy tables read |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |