Function report |
Source Code:lib\zstd\compress.c |
Create Date:2022-07-28 07:03:33 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:ZSTD_compressBlock_fast_extDict_generic
Proto:static void ZSTD_compressBlock_fast_extDict_generic(ZSTD_CCtx *ctx, const void *src, size_t srcSize, const U32 mls)
Type:void
Parameter:
| Type | Parameter | Name |
|---|---|---|
| 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 = If matchIndex < dictLimit Then dictBase Else base |
| 1140 | match = matchBase + matchIndex |
| 1148 | If dictLimit - 1 - repIndex >= 3 & repIndex > lowestIndex && ZSTD_read32(repMatch) == ZSTD_read32(ip + 1) Then |
| 1150 | repMatchEnd = If repIndex < dictLimit Then dictEnd Else 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 | Else |
| 1155 | If matchIndex < lowestIndex || ZSTD_read32(match) != ZSTD_read32(ip) Then |
| 1156 | ip += ( ip - anchor >> control skip over incompressible data ) + 1 |
| 1157 | Continue |
| 1160 | matchEnd = If matchIndex < dictLimit Then dictEnd Else iend |
| 1161 | lowMatchPtr = If matchIndex < dictLimit Then dictStart Else 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 | If dictLimit - 1 - repIndex2 >= 3 & repIndex2 > lowestIndex && ZSTD_read32(repMatch2) == ZSTD_read32(ip) Then |
| 1199 | ip += repLength2 |
| 1201 | Continue |
| 1203 | Break |
| 1209 | repToConfirm[0] = offset_1 |
| 1210 | repToConfirm[1] = offset_2 |
| Name | Describe |
|---|---|
| ZSTD_compressBlock_fast_extDict |
| 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 |