函数逻辑报告 |
Source Code:lib\zstd\compress.c |
Create Date:2022-07-27 08:01:11 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:ZSTD_compressBlock_fast_extDict_generic
函数原型:static void ZSTD_compressBlock_fast_extDict_generic(ZSTD_CCtx *ctx, const void *src, size_t srcSize, const U32 mls)
返回类型:void
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| ZSTD_CCtx * | ctx | |
| const void * | src | |
| size_t | srcSize | |
| const U32 | mls |
| 1120 | seqStorePtr等于seqStore的地址 |
| 1126 | lowestIndex等于lowLimit |
| 1127 | dictStart等于dictBase加lowestIndex |
| 1129 | lowPrefixPtr等于base加dictLimit |
| 1137 | h等于ZSTD_hashPtr(ip, hBits, mls) |
| 1138 | matchIndex等于hashTable[h] |
| 1139 | matchBase等于如果matchIndex小于dictLimit则dictBase否则base |
| 1140 | match等于matchBase加matchIndex |
| 1148 | 如果dictLimit减1减repIndex大于等于3按位与repIndex大于lowestIndex且ZSTD_read32(repMatch)恒等于ZSTD_read32(ip + 1)则 |
| 1150 | repMatchEnd等于如果repIndex小于dictLimit则dictEnd否则iend |
| 1151 | mLength等于ZSTD_count_2segments() :* can count match length with `ip` & `match` in 2 different segments.* convention : on reaching mEnd, match count continue starting from iStart加EQUAL_READ32 |
| 1152 | ip自加 |
| 1154 | 否则 |
| 1155 | 如果matchIndex小于lowestIndex或ZSTD_read32(match)不等于ZSTD_read32(ip)则 |
| 1156 | ip加等于ip减anchor右移control skip over incompressible data 位的值加1 |
| 1157 | 继续下一循环 |
| 1160 | matchEnd等于如果matchIndex小于dictLimit则dictEnd否则iend |
| 1161 | lowMatchPtr等于如果matchIndex小于dictLimit则dictStart否则lowPrefixPtr |
| 1163 | mLength等于ZSTD_count_2segments() :* can count match length with `ip` & `match` in 2 different segments.* convention : on reaching mEnd, match count continue starting from iStart加EQUAL_READ32 |
| 1169 | offset等于curr减matchIndex |
| 1189 | 如果dictLimit减1减repIndex2大于等于3按位与repIndex2大于lowestIndex且ZSTD_read32(repMatch2)恒等于ZSTD_read32(ip)则 |
| 1192 | repLength2等于ZSTD_count_2segments() :* can count match length with `ip` & `match` in 2 different segments.* convention : on reaching mEnd, match count continue starting from iStart加EQUAL_READ32 |
| 1199 | ip加等于repLength2 |
| 1201 | 继续下一循环 |
| 1203 | 退出 |
| 1209 | repToConfirm[0]等于offset_1 |
| 1210 | repToConfirm[1]等于offset_2 |
| 名称 | 描述 |
|---|---|
| ZSTD_compressBlock_fast_extDict |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |