Function report |
Source Code:lib\zstd\decompress.c |
Create Date:2022-07-28 07:06:54 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name: : nb bytes read from src,
Proto: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)
Type:size_t
Parameter:
Type | Parameter | Name |
---|---|---|
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 |
758 | If Not srcSize Then Return -***************************************** Error codes handling(srcSize_wrong) |
760 | If src > max Then Return -***************************************** Error codes handling(corruption_detected) |
763 | DTablePtr = DTableSpace |
764 | Return 1 |
766 | Case type == set_repeat |
767 | If Not flagRepeatTable Then Return -***************************************** Error codes handling(corruption_detected) |
769 | Return 0 |
770 | Default |
771 | Case type == set_compressed |
774 | spaceUsed32 = @a is a power of 2 value (sizeof(S16) * (Assumption : MaxOff < MaxLL,MaxML + 1), sizeof(U32)) >> 2 |
776 | If spaceUsed32 << 2 > workspaceSize Then Return -***************************************** Error codes handling(GENERIC) |
778 | workspace = workspace + spaceUsed32 |
779 | workspaceSize -= spaceUsed32 << 2 |
781 | headerSize = -*************************************************************** FSE NCount encoding-decoding |
782 | If === Error Management === Then Return -***************************************** Error codes handling(corruption_detected) |
784 | If tableLog > maxLog Then Return -***************************************** Error codes handling(corruption_detected) |
787 | DTablePtr = DTableSpace |
788 | Return headerSize |
Name | Describe |
---|---|
ZSTD_decodeSeqHeaders |
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 |
Brief:! ZSTD_buildSeqTable() :or an error code if it fails, testable with ZSTD_isError()