函数逻辑报告 |
Source Code:lib\zstd\compress.c |
Create Date:2022-07-27 08:03:02 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称: : 0, or an error code
函数原型:static size_t ZSTD_loadZstdDictionary(ZSTD_CCtx *cctx, const void *dict, size_t dictSize)
返回类型:size_t
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| ZSTD_CCtx * | cctx | |
| const void * | dict | |
| size_t | dictSize |
| 2631 | offcodeMaxValue等于MaxOff |
| 2633 | dictPtr加等于4 |
| 2634 | dictID等于如果noDictIDFlag则0否则ZSTD_readLE32(dictPtr) |
| 2635 | dictPtr加等于4 |
| 2638 | hufHeaderSize等于HUF_readCTable_wksp(hufTable, 255, dictPtr, dictEnd - dictPtr, tmpCounters, tmpCounters的长度) |
| 2639 | 如果Error Management 则返回:-***************************************** Error codes handling(dictionary_corrupted) |
| 2641 | dictPtr加等于hufHeaderSize |
| 2646 | offcodeHeaderSize等于-*************************************************************** FSE NCount encoding-decoding |
| 2647 | 如果Error Management 则返回:-***************************************** Error codes handling(dictionary_corrupted) |
| 2649 | 如果offcodeLog大于OffFSELog则返回:-***************************************** Error codes handling(dictionary_corrupted) |
| 2654 | dictPtr加等于offcodeHeaderSize |
| 2659 | matchlengthMaxValue等于MaxML |
| 2660 | matchlengthHeaderSize等于-*************************************************************** FSE NCount encoding-decoding |
| 2661 | 如果Error Management 则返回:-***************************************** Error codes handling(dictionary_corrupted) |
| 2663 | 如果matchlengthLog大于MLFSELog则返回:-***************************************** Error codes handling(dictionary_corrupted) |
| 2670 | dictPtr加等于matchlengthHeaderSize |
| 2675 | litlengthMaxValue等于MaxLL |
| 2676 | litlengthHeaderSize等于-*************************************************************** FSE NCount encoding-decoding |
| 2677 | 如果Error Management 则返回:-***************************************** Error codes handling(dictionary_corrupted) |
| 2679 | 如果litlengthLog大于LLFSELog则返回:-***************************************** Error codes handling(dictionary_corrupted) |
| 2685 | dictPtr加等于litlengthHeaderSize |
| 2688 | 如果dictPtr加12大于dictEnd则返回:-***************************************** Error codes handling(dictionary_corrupted) |
| 2690 | rep[0]等于ZSTD_readLE32(dictPtr + 0) |
| 2691 | rep[1]等于ZSTD_readLE32(dictPtr + 4) |
| 2692 | rep[2]等于ZSTD_readLE32(dictPtr + 8) |
| 2693 | dictPtr加等于12 |
| 2696 | dictContentSize等于dictEnd减dictPtr |
| 2697 | offcodeMax等于MaxOff |
| 2698 | 如果(减1小于等于128减KB则 |
| 2699 | U32 const maxOffset = dictContentSize + 128 KB |
| 2715 | flagStaticTables等于1 |
| 2717 | 返回: : 0, or an error code |
| 名称 | 描述 |
|---|---|
| ZSTD_compress_insertDictionary | : 0, or an error code |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |
摘要:! ZSTD_loadZstdDictionary() :* assumptions : magic number supposed already checked* dictSize supposed > 8