函数逻辑报告 |
Source Code:lib\zstd\huf_compress.c |
Create Date:2022-07-27 08:00:15 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:`workSpace` must a table of at least 1024 unsigned
函数原型:static size_t HUF_compress_internal(void *dst, size_t dstSize, const void *src, size_t srcSize, unsigned maxSymbolValue, unsigned huffLog, unsigned singleStream, void *workSpace, size_t wkspSize, HUF_CElt *oldHufTable, HUF_repeat *repeat, int preferRepeat)
返回类型:size_t
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| void * | dst | |
| size_t | dstSize | |
| const void * | src | |
| size_t | srcSize | |
| unsigned | maxSymbolValue | |
| unsigned | huffLog | |
| unsigned | singleStream | |
| void * | workSpace | |
| size_t | wkspSize | |
| HUF_CElt * | oldHufTable | |
| HUF_repeat * | repeat | |
| int | preferRepeat |
| 661 | countSize等于sizeof(U32)乘HUF_SYMBOLVALUE_MAX加1的和 |
| 663 | CTableSize等于sizeof(HUF_CElt)乘HUF_SYMBOLVALUE_MAX加1的和 |
| 666 | 如果wkspSize小于sizeof(huffNodeTable)加countSize加CTableSize则返回:-***************************************** Error codes handling(GENERIC) |
| 668 | 如果非srcSize则返回:0 |
| 670 | 如果非dstSize则返回:0 |
| 672 | 如果srcSize大于< maximum input size for a single block compressed with HUF_compress 则返回:-***************************************** Error codes handling(srcSize_wrong) |
| 674 | 如果huffLog大于max configured tableLog (for static allocation); can be modified up to HUF_ABSOLUTEMAX_TABLELOG 则返回:-***************************************** Error codes handling(tableLog_tooLarge) |
| 685 | workSpace等于workSpace加CTableSize |
| 686 | wkspSize减等于CTableSize |
| 689 | 如果preferRepeat且repeat且repeat恒等于HUF_repeat_valid则 |
| 690 | 返回:HUF_compressCTable_internal(ostart, op, oend, src, srcSize, singleStream, oldHufTable) |
| 695 | CHECK_V_F(largest, FSE_count_wksp() :* Same as FSE_count(), but using an externally provided scratch buffer.* `workSpace` size must be table of >= `1024` unsigned ) |
| 697 | * ostart = ) |
| 698 | 返回:1 |
| 710 | 返回:HUF_compressCTable_internal(ostart, op, oend, src, srcSize, singleStream, oldHufTable) |
| 716 | CHECK_V_F(maxBits, HUF_buildCTable_wksp(CTable, count, maxSymbolValue, huffLog, workSpace, wkspSize)) |
| 719 | memset(CTable + maxSymbolValue + 1, 0, CTableSize - (maxSymbolValue + 1) * sizeof(HUF_CElt)) |
| 724 | CHECK_V_F(hSize, : size of saved CTable ) |
| 726 | 如果repeat且repeat不等于*< Cannot use the previous table 则 |
| 730 | 返回:HUF_compressCTable_internal(ostart, op, oend, src, srcSize, singleStream, oldHufTable) |
| 735 | 返回:0 |
| 738 | 如果repeat则 |
| 741 | 如果oldHufTable则 |
| 742 | 内存复制(oldHufTable, CTable, CTableSize) |
| 745 | 返回:HUF_compressCTable_internal(ostart, op, oend, src, srcSize, singleStream, CTable) |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |