函数逻辑报告 |
Source Code:lib\zstd\fse_compress.c |
Create Date:2022-07-27 07:59:28 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:FSE_writeNCount_generic
函数原型:static size_t FSE_writeNCount_generic(void *header, size_t headerBufferSize, const short *normalizedCounter, unsigned maxSymbolValue, unsigned tableLog, unsigned writeIsSafe)
返回类型:size_t
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| void * | header | |
| size_t | headerBufferSize | |
| const short * | normalizedCounter | |
| unsigned | maxSymbolValue | |
| unsigned | tableLog | |
| unsigned | writeIsSafe |
| 208 | oend等于ostart加headerBufferSize |
| 215 | charnum等于0 |
| 216 | previous0等于0 |
| 218 | bitStream等于0 |
| 219 | bitCount等于0 |
| 221 | bitStream加等于tableLog减FSE_MIN_TABLELOG左移bitCount位 |
| 222 | bitCount加等于4 |
| 230 | 如果previous0则 |
| 232 | 当非normalizedCounter[charnum]循环 |
| 233 | charnum自加 |
| 235 | start加等于24 |
| 237 | 如果非writeIsSafe且out大于oend减2则返回:-***************************************** Error codes handling(dstSize_tooSmall) |
| 241 | out加等于2 |
| 242 | bitStream右移等于16位 |
| 250 | bitCount加等于2 |
| 251 | 如果bitCount大于16则 |
| 252 | 如果非writeIsSafe且out大于oend减2则返回:-***************************************** Error codes handling(dstSize_tooSmall) |
| 256 | out加等于2 |
| 257 | bitStream右移等于16位 |
| 258 | bitCount减等于16 |
| 262 | count等于normalizedCounter[charnum++] |
| 265 | count自加 |
| 277 | 如果bitCount大于16则 |
| 278 | 如果非writeIsSafe且out大于oend减2则返回:-***************************************** Error codes handling(dstSize_tooSmall) |
| 282 | out加等于2 |
| 283 | bitStream右移等于16位 |
| 284 | bitCount减等于16 |
| 289 | 如果非writeIsSafe且out大于oend减2则返回:-***************************************** Error codes handling(dstSize_tooSmall) |
| 295 | 如果charnum大于maxSymbolValue加1则返回:-***************************************** Error codes handling(GENERIC) |
| 名称 | 描述 |
|---|---|
| FSE_writeNCount |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |