Function report |
Source Code:lib\zstd\compress.c |
Create Date:2022-07-28 07:05:40 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name: ZSTD_compressionParameters structure for a selected compression level, `srcSize` and `dictSize`.
Proto:ZSTD_compressionParameters ZSTD_getCParams(int compressionLevel, unsigned long long srcSize, size_t dictSize)
Type:ZSTD_compressionParameters
Parameter:
Type | Parameter | Name |
---|---|---|
int | compressionLevel | |
unsigned long long | srcSize | |
size_t | dictSize |
3417 | If compressionLevel <= 0 Then compressionLevel = -===== Pre-defined compression levels =====- |
3419 | If compressionLevel > ZSTD_MAX_CLEVEL Then compressionLevel = ZSTD_MAX_CLEVEL |
3421 | cp = ZSTD_defaultCParameters[tableID][compressionLevel] |
3423 | If windowLog > ZSTD_WINDOWLOG_MAX Then windowLog = ZSTD_WINDOWLOG_MAX |
3425 | If chainLog > ZSTD_CHAINLOG_MAX Then chainLog = ZSTD_CHAINLOG_MAX |
3427 | If hashLog > ZSTD_HASHLOG_MAX Then hashLog = ZSTD_HASHLOG_MAX |
3431 | Return cp |
Name | Describe |
---|---|
ZSTD_getParams | ! ZSTD_getParams() :* same as ZSTD_getCParams(), but @return a `ZSTD_parameters` object (instead of `ZSTD_compressionParameters`).* All fields of `ZSTD_frameParameters` are set to default (0) |
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 |
Brief:! ZSTD_getCParams() :* Size values are optional, provide 0 if not known or unused