Function report |
Source Code:lib\zstd\decompress.c |
Create Date:2022-07-28 07:07:14 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:ZSTD_execSequenceLong
Proto:size_t ZSTD_execSequenceLong(BYTE *op, BYTE *const oend, seq_t sequence, const BYTE **litPtr, const BYTE *const litLimit, const BYTE *const base, const BYTE *const vBase, const BYTE *const dictEnd)
Type:size_t
Parameter:
Type | Parameter | Name |
---|---|---|
BYTE * | op | |
BYTE *const | oend | |
seq_t | sequence | |
const BYTE ** | litPtr | |
const BYTE *const | litLimit | |
const BYTE *const | base | |
const BYTE *const | vBase | |
const BYTE *const | dictEnd |
1267 | sequenceLength = litLength + matchLength |
1268 | oMatchEnd = op + sequenceLength |
1269 | oend_w = oend - ! ZSTD_wildcopy() :* custom version of memcpy(), can copy up to 7 bytes too many (8 bytes if length==0) |
1274 | If oMatchEnd > oend Then Return -***************************************** Error codes handling(dstSize_tooSmall) |
1276 | If iLitEnd > litLimit Then Return -***************************************** Error codes handling(corruption_detected) |
1278 | If oLitEnd > oend_w Then Return ZSTD_execSequenceLast7(op, oend, sequence, litPtr, litLimit, base, vBase, dictEnd) |
1283 | If litLength > 8 Then ZSTD_wildcopy(op + 8, ( * litPtr) + 8, litLength - 8) |
1292 | If offset > oLitEnd - vBase Then Return -***************************************** Error codes handling(corruption_detected) |
1294 | If match + matchLength <= dictEnd Then |
1296 | Return sequenceLength |
1303 | matchLength -= length1 |
1305 | If op > oend_w || matchLength < MINMATCH Then |
1309 | Return sequenceLength |
1316 | If offset < 8 Then |
1318 | static const U32 dec32table[] = {0, 1, 2, 1, 4, 4, 4, 4} |
1319 | static const int dec64table[] = {8, 8, 8, 7, 8, 9, 10, 11} |
1320 | sub2 = dec64table[offset] |
1325 | match += dec32table[offset] |
1328 | Else |
1331 | op += 8 |
1332 | match += 8 |
1342 | Else |
1343 | ZSTD_wildcopy(op, match, (ptrdiff_t)matchLength - 8) |
1345 | Return sequenceLength |
Name | Describe |
---|---|
ZSTD_decompressSequencesLong |
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 |