Function report |
Source Code:lib\zstd\compress.c |
Create Date:2022-07-28 07:02:52 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:ZSTD_adjustCParams() :optimize `cPar` for a given input (`srcSize` and `dictSize`).mostly downsizing to reduce memory consumption and initialization.Both `srcSize` and `dictSize` are optional (use 0 if unknown),
Proto:ZSTD_compressionParameters ZSTD_adjustCParams(ZSTD_compressionParameters cPar, unsigned long long srcSize, size_t dictSize)
Type:ZSTD_compressionParameters
Parameter:
Type | Parameter | Name |
---|---|---|
ZSTD_compressionParameters | cPar | |
unsigned long long | srcSize | |
size_t | dictSize |
187 | minSrcSize = If srcSize == 0 Then 500 Else 0 |
188 | rSize = srcSize + dictSize + minSrcSize |
189 | If rSize < 1 << ZSTD_WINDOWLOG_MAX Then |
190 | srcLog = MAX(ZSTD_HASHLOG_MIN, ====== common function ====== + 1) |
203 | If windowLog < ZSTD_WINDOWLOG_ABSOLUTEMIN Then windowLog = ZSTD_WINDOWLOG_ABSOLUTEMIN |
206 | Return cPar |
Name | Describe |
---|---|
ZSTD_getCParams | ZSTD_compressionParameters structure for a selected compression level, `srcSize` and `dictSize`. |
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 |