函数逻辑报告 |
Source Code:lib\lz4\lz4hc_compress.c |
Create Date:2022-07-27 07:58:21 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:LZ4HC_InsertAndFindBestMatch
函数原型:static inline __attribute__((__always_inline__)) int LZ4HC_InsertAndFindBestMatch(LZ4HC_CCtx_internal *hc4, const BYTE *ip, const BYTE *const iLimit, const BYTE **matchpos, const int maxNbAttempts)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| LZ4HC_CCtx_internal * | hc4 | Index table will be updated |
| const BYTE * | ip | |
| const BYTE *const | iLimit | |
| const BYTE ** | matchpos | |
| const int | maxNbAttempts |
| 106 | chainTable等于chainTable |
| 111 | lowLimit等于如果low that point, no more dict 加64乘KB大于ip减base则low that point, no more dict 否则ip减base减64乘KB减1 |
| 115 | nbAttempts等于maxNbAttempts |
| 116 | ml等于0 |
| 120 | matchIndex等于HashTable[LZ4HC_hashPtr(ip)] |
| 122 | 当matchIndex大于等于lowLimit且nbAttempts循环 |
| 124 | nbAttempts自减 |
| 125 | 如果matchIndex大于等于dictLimit则 |
| 126 | match等于base加matchIndex |
| 128 | 如果*match加ml的和恒等于*ip加ml的和且LZ4_read32(match)恒等于LZ4_read32(ip)则 |
| 138 | 否则 |
| 139 | match等于dictBase加matchIndex |
| 141 | 如果LZ4_read32(match)恒等于LZ4_read32(ip)则 |
| 162 | matchIndex减等于aster (matchIndex) |
| 165 | 返回:ml |
| 名称 | 描述 |
|---|---|
| LZ4HC_compress_generic |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |