Function report |
Source Code:lib\zstd\decompress.c |
Create Date:2022-07-28 07:07:35 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name: : size of entropy tables read
Proto:static size_t ZSTD_loadEntropy(ZSTD_entropyTables_t *entropy, const void *const dict, size_t const dictSize)
Type:size_t
Parameter:
Type | Parameter | Name |
---|---|---|
ZSTD_entropyTables_t * | entropy | |
const void *const | dict | must point at beginning of a valid zstd dictionary |
size_t const | dictSize |
1879 | If dictSize <= 8 Then Return -***************************************** Error codes handling(dictionary_corrupted) |
1881 | dictPtr += 8 |
1884 | hSize = HUF_readDTableX4_wksp(hufTable, dictPtr, dictEnd - dictPtr, workspace, size of workspace ) |
1885 | If HUF_isError(hSize) Then Return -***************************************** Error codes handling(dictionary_corrupted) |
1892 | offcodeMaxValue = MaxOff |
1893 | offcodeHeaderSize = -*************************************************************** FSE NCount encoding-decoding |
1894 | If === Error Management === Then Return -***************************************** Error codes handling(dictionary_corrupted) |
1896 | If offcodeLog > OffFSELog Then Return -***************************************** Error codes handling(dictionary_corrupted) |
1899 | dictPtr += offcodeHeaderSize |
1904 | matchlengthMaxValue = MaxML |
1905 | matchlengthHeaderSize = -*************************************************************** FSE NCount encoding-decoding |
1906 | If === Error Management === Then Return -***************************************** Error codes handling(dictionary_corrupted) |
1908 | If matchlengthLog > MLFSELog Then Return -***************************************** Error codes handling(dictionary_corrupted) |
1911 | dictPtr += matchlengthHeaderSize |
1916 | litlengthMaxValue = MaxLL |
1917 | litlengthHeaderSize = -*************************************************************** FSE NCount encoding-decoding |
1918 | If === Error Management === Then Return -***************************************** Error codes handling(dictionary_corrupted) |
1920 | If litlengthLog > LLFSELog Then Return -***************************************** Error codes handling(dictionary_corrupted) |
1923 | dictPtr += litlengthHeaderSize |
1926 | If dictPtr + 12 > dictEnd Then Return -***************************************** Error codes handling(dictionary_corrupted) |
1930 | dictContentSize = dictEnd - dictPtr + 12 |
1932 | rep = ZSTD_readLE32(dictPtr) |
1933 | dictPtr += 4 |
1934 | If rep == 0 || rep >= dictContentSize Then Return -***************************************** Error codes handling(dictionary_corrupted) |
1940 | Return dictPtr - must point at beginning of a valid zstd dictionary |
Name | Describe |
---|---|
ZSTD_decompress_insertDictionary | |
ZSTD_loadEntropy_inDDict |
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_loadEntropy() :