Function report |
Source Code:lib\zstd\compress.c |
Create Date:2022-07-28 07:02:49 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:ZSTD_CCtxWorkspaceBound
Proto:size_t ZSTD_CCtxWorkspaceBound(ZSTD_compressionParameters cParams)
Type:size_t
Parameter:
Type | Parameter | Name |
---|---|---|
ZSTD_compressionParameters | cParams |
92 | blockSize = -************************************** shared macros(Define for static allocation , (size_t)1 << windowLog) |
93 | divider = If searchLength == 3 Then 3 Else 4 |
95 | tokenSpace = blockSize + 11 * maxNbSeq |
98 | hashLog3 = If searchLength > 3 Then 0 Else -************************************** shared macros(ZSTD_HASHLOG3_MAX, windowLog) |
101 | optSpace = ( MaxML + 1 + MaxLL + 1 + MaxOff + 1 + (1 << Litbits)) * sizeof(U32) + (-************************************** Common constants + 1) * (sizeof(ZSTD_match_t) + sizeof(ZSTD_optimal_t)) |
103 | workspaceSize = tableSpace + 256 * sizeof(U32) + tokenSpace + If strategy == ZSTD_btopt || strategy == ZSTD_btopt2 Then optSpace Else 0 |
106 | Return ZSTD_ALIGN(sizeof(ZSTD_stack)) + ZSTD_ALIGN(sizeof(ZSTD_CCtx)) + ZSTD_ALIGN(workspaceSize) |
Name | Describe |
---|---|
ZSTD_CDictWorkspaceBound | |
ZSTD_CStreamWorkspaceBound |
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 |