Function report |
Source Code:lib\zstd\compress.c |
Create Date:2022-07-28 07:03:28 |
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_generic
Proto:void ZSTD_compressBlock_fast_generic(ZSTD_CCtx *cctx, const void *src, size_t srcSize, const U32 mls)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
ZSTD_CCtx * | cctx | |
const void * | src | |
size_t | srcSize | |
const U32 | mls |
1012 | seqStorePtr = &seqStore |
1017 | lowestIndex = dictLimit |
1018 | lowest = base + lowestIndex |
1020 | ilimit = iend - HASH_READ_SIZE |
1022 | offsetSaved = 0 |
1028 | If offset_2 > maxRep Then offsetSaved = offset_2 , offset_2 = 0 |
1030 | If offset_1 > maxRep Then offsetSaved = offset_1 , offset_1 = 0 |
1037 | h = ZSTD_hashPtr(ip, hBits, mls) |
1039 | matchIndex = hashTable[h] |
1040 | match = base + matchIndex |
1043 | If offset_1 > 0 & ZSTD_read32(ip + 1 - offset_1) == ZSTD_read32(ip + 1) Then |
1045 | ip++ |
1047 | Else |
1049 | If matchIndex <= lowestIndex || ZSTD_read32(match) != ZSTD_read32(ip) Then |
1050 | ip += ( ip - anchor >> control skip over incompressible data ) + 1 |
1051 | Continue |
1053 | mLength = ZSTD_count(ip + 4, match + 4, iend) + 4 |
1075 | When ip <= ilimit && offset_2 > 0 & ZSTD_read32(ip) == ZSTD_read32(ip - offset_2) cycle |
1087 | Continue |
1093 | repToConfirm[0] = If offset_1 Then offset_1 Else offsetSaved |
1094 | repToConfirm[1] = If offset_2 Then offset_2 Else offsetSaved |
Name | Describe |
---|---|
ZSTD_compressBlock_fast |
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 |