Function report |
Source Code:lib\zstd\entropy_common.c |
Create Date:2022-07-28 07:08:00 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:-*************************************************************** FSE NCount encoding-decoding
Proto:size_t FSE_readNCount(short *normalizedCounter, unsigned *maxSVPtr, unsigned *tableLogPtr, const void *headerBuffer, size_t hbSize)
Type:size_t
Parameter:
Type | Parameter | Name |
---|---|---|
short * | normalizedCounter | |
unsigned * | maxSVPtr | |
unsigned * | tableLogPtr | |
const void * | headerBuffer | |
size_t | hbSize |
61 | istart = headerBuffer |
69 | charnum = 0 |
70 | previous0 = 0 |
72 | If hbSize < 4 Then Return -***************************************** Error codes handling(srcSize_wrong) |
74 | bitStream = ZSTD_readLE32(ip) |
75 | nbBits = (bitStream & 0xF) + FSE_MIN_TABLELOG |
76 | If nbBits > FSE_TABLELOG_ABSOLUTE_MAX Then Return -***************************************** Error codes handling(tableLog_tooLarge) |
78 | bitStream >>= 4 |
79 | bitCount = 4 |
80 | tableLogPtr = nbBits |
83 | nbBits++ |
86 | If previous0 Then |
104 | bitCount += 2 |
105 | If n0 > maxSVPtr Then Return -***************************************** Error codes handling(maxSymbolValue_tooSmall) |
108 | normalizedCounter[charnum++] = 0 |
113 | Else |
114 | bitStream >>= 2 |
124 | Else |
131 | count-- |
133 | normalizedCounter[charnum++] = count |
143 | Else |
147 | bitStream = ZSTD_readLE32(ip) >> (bitCount & 31) |
150 | If remaining != 1 Then Return -***************************************** Error codes handling(corruption_detected) |
152 | If bitCount > 32 Then Return -***************************************** Error codes handling(corruption_detected) |
Name | Describe |
---|---|
ZSTD_loadZstdDictionary | : 0, or an error code |
FSE_decompress_wksp | |
ZSTD_buildSeqTable | : nb bytes read from src, |
ZSTD_loadEntropy | : size of entropy tables read |
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 |