函数逻辑报告 |
Source Code:lib\zstd\decompress.c |
Create Date:2022-07-27 08:04:45 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称: : nb bytes read from src,
函数原型:static size_t ZSTD_buildSeqTable(FSE_DTable *DTableSpace, const FSE_DTable **DTablePtr, symbolEncodingType_e type, U32 max, U32 maxLog, const void *src, size_t srcSize, const FSE_decode_t4 *defaultTable, U32 flagRepeatTable, void *workspace, size_t workspaceSize)
返回类型:size_t
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| FSE_DTable * | DTableSpace | |
| const FSE_DTable ** | DTablePtr | |
| symbolEncodingType_e | type | |
| U32 | max | |
| U32 | maxLog | |
| const void * | src | |
| size_t | srcSize | |
| const FSE_decode_t4 * | defaultTable | |
| U32 | flagRepeatTable | |
| void * | workspace | |
| size_t | workspaceSize |
| 755 | tmpPtr等于defaultTable |
| 760 | 如果src大于max则返回:-***************************************** Error codes handling(corruption_detected) |
| 763 | DTablePtr等于DTableSpace |
| 764 | 返回:1 |
| 766 | 当:type恒等于set_repeat |
| 767 | 如果非flagRepeatTable则返回:-***************************************** Error codes handling(corruption_detected) |
| 769 | 返回:0 |
| 770 | 默认 |
| 771 | 当:type恒等于set_compressed |
| 774 | spaceUsed32等于@a is a power of 2 value (sizeof(S16) * (Assumption : MaxOff < MaxLL,MaxML + 1), sizeof(U32))右移2位 |
| 776 | 如果spaceUsed32左移2位大于workspaceSize则返回:-***************************************** Error codes handling(GENERIC) |
| 779 | workspaceSize减等于spaceUsed32左移2位 |
| 781 | headerSize等于-*************************************************************** FSE NCount encoding-decoding |
| 782 | 如果=== Error Management ===则返回:-***************************************** Error codes handling(corruption_detected) |
| 784 | 如果tableLog大于maxLog则返回:-***************************************** Error codes handling(corruption_detected) |
| 787 | DTablePtr等于DTableSpace |
| 788 | 返回:headerSize |
| 名称 | 描述 |
|---|---|
| ZSTD_decodeSeqHeaders |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |
摘要:! ZSTD_buildSeqTable() :or an error code if it fails, testable with ZSTD_isError()