Function report |
Source Code:lib\zstd\huf_compress.c |
Create Date:2022-07-28 07:02:23 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:HUF_readCTable_wksp
Proto:size_t HUF_readCTable_wksp(HUF_CElt *CTable, U32 maxSymbolValue, const void *src, size_t srcSize, void *workspace, size_t workspaceSize)
Type:size_t
Parameter:
Type | Parameter | Name |
---|---|---|
HUF_CElt * | CTable | |
U32 | maxSymbolValue | |
const void * | src | |
size_t | srcSize | |
void * | workspace | |
size_t | workspaceSize |
207 | tableLog = 0 |
208 | nbSymbols = 0 |
210 | spaceUsed32 = 0 |
212 | rankVal = workspace + spaceUsed32 |
214 | huffWeight = workspace + spaceUsed32 |
215 | spaceUsed32 += @a is a power of 2 value (HUF_SYMBOLVALUE_MAX + 1, sizeof(U32)) >> 2 |
217 | If spaceUsed32 << 2 > workspaceSize Then Return -***************************************** Error codes handling(tableLog_tooLarge) |
219 | workspace = workspace + spaceUsed32 |
220 | workspaceSize -= spaceUsed32 << 2 |
224 | If ERR_isError(readSize) Then Return readSize |
230 | If nbSymbols > maxSymbolValue + 1 Then Return -***************************************** Error codes handling(maxSymbolValue_tooSmall) |
280 | Return readSize |
Name | Describe |
---|---|
ZSTD_loadZstdDictionary | : 0, or an error code |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |