函数逻辑报告 |
Source Code:lib\zstd\huf_compress.c |
Create Date:2022-07-27 07:59:52 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:HUF_compressWeights_wksp
函数原型:size_t HUF_compressWeights_wksp(void *dst, size_t dstSize, const void *weightTable, size_t wtSize, void *workspace, size_t workspaceSize)
返回类型:size_t
参数:
类型 | 参数 | 名称 |
---|---|---|
void * | dst | |
size_t | dstSize | |
const void * | weightTable | |
size_t | wtSize | |
void * | workspace | |
size_t | workspaceSize |
88 | maxSymbolValue等于max configured tableLog (for static allocation); can be modified up to HUF_ABSOLUTEMAX_TABLELOG |
94 | spaceUsed32等于0 |
100 | count等于workspace加spaceUsed32 |
101 | spaceUsed32加等于max configured tableLog (for static allocation); can be modified up to HUF_ABSOLUTEMAX_TABLELOG 加1 |
102 | norm等于workspace加spaceUsed32 |
103 | spaceUsed32加等于@a is a power of 2 value (sizeof(S16) * (max configured tableLog (for static allocation); can be modified up to HUF_ABSOLUTEMAX_TABLELOG + 1), sizeof(U32))右移2位 |
105 | 如果spaceUsed32左移2位大于workspaceSize则返回:-***************************************** Error codes handling(tableLog_tooLarge) |
108 | workspaceSize减等于spaceUsed32左移2位 |
111 | 如果wtSize小于等于1则返回:0 |
119 | 如果maxCount恒等于1则返回:0 |
128 | CHECK_V_F(hSize, FSE_writeNCount(op, oend - op, norm, maxSymbolValue, tableLog)) |
135 | CHECK_V_F(cSize, FSE_compress_usingCTable(op, oend - op, weightTable, wtSize, CTable)) |
136 | 如果cSize恒等于0则返回:0 |
名称 | 描述 |
---|---|
HUF_writeCTable_wksp | : size of saved CTable |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |