Function report |
Source Code:lib\lz4\lz4hc_compress.c |
Create Date:2022-07-28 07:01:00 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:LZ4HC_compress_generic
Proto:static int LZ4HC_compress_generic(LZ4HC_CCtx_internal *const ctx, const char *const source, char *const dest, int const inputSize, int const maxOutputSize, int compressionLevel, limitedOutput_directive limit)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| LZ4HC_CCtx_internal *const | ctx | |
| const char *const | source | |
| char *const | dest | |
| int const | inputSize | |
| int const | maxOutputSize | |
| int | compressionLevel | |
| limitedOutput_directive | limit |
| 352 | matchlimit = iend - LASTLITERALS |
| 355 | oend = op + maxOutputSize |
| 368 | If compressionLevel > LZ4HC_MAX_CLEVEL Then compressionLevel = LZ4HC_MAX_CLEVEL |
| 370 | If compressionLevel < 1 Then compressionLevel = LZ4HC_DEFAULT_CLEVEL |
| 372 | maxNbAttempts = 1 << compressionLevel - 1 |
| 375 | ip++ |
| 379 | ml = LZ4HC_InsertAndFindBestMatch(ctx, ip, matchlimit, ( & ref), maxNbAttempts) |
| 381 | If Not ml Then |
| 382 | ip++ |
| 383 | Continue |
| 391 | _Search2 : |
| 392 | If ip + ml < mflimit Then ml2 = LZ4HC_InsertAndGetWiderMatch(ctx, ip + ml - 2, ip + 0, matchlimit, ml, & ref2, & start2, maxNbAttempts) |
| 426 | _Search3 : |
| 432 | If start2 - ip < Local Constants and types Then |
| 436 | If new_ml > Local Constants and types Then new_ml = Local Constants and types |
| 438 | If ip + new_ml > start2 + ml2 - -************************************* Constants Then new_ml = start2 - ip + ml2 - -************************************* Constants |
| 441 | correction = new_ml - start2 - ip |
| 443 | If correction > 0 Then |
| 454 | If start2 + ml2 < mflimit Then ml3 = LZ4HC_InsertAndGetWiderMatch(ctx, start2 + ml2 - 3, start2, matchlimit, ml2, & ref3, & start3, maxNbAttempts) |
| 475 | Continue |
| 486 | correction = ip + ml - start2 |
| 488 | start2 += correction |
| 489 | ref2 += correction |
| 490 | ml2 -= correction |
| 491 | If ml2 < -************************************* Constants Then |
| 508 | Go to _Search2 |
| 514 | Go to _Search3 |
| 526 | If ml > Local Constants and types Then ml = Local Constants and types |
| 528 | If ip + ml > start2 + ml2 - -************************************* Constants Then ml = start2 - ip + ml2 - -************************************* Constants |
| 530 | correction = ml - start2 - ip |
| 531 | If correction > 0 Then |
| 551 | Go to _Search3 |
| 563 | Return 0 |
| 573 | No 3D Now!(op, anchor, iend - anchor) |
| Name | Describe |
|---|---|
| LZ4_compress_HC_extStateHC | |
| LZ4_compressHC_continue_generic |
| 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 |