Function report |
Source Code:lib\zstd\compress.c |
Create Date:2022-07-28 07:05:30 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:ZSTD_initCStream_advanced
Proto:static size_t ZSTD_initCStream_advanced(ZSTD_CStream *zcs, const void *dict, size_t dictSize, ZSTD_parameters params, unsigned long long pledgedSrcSize)
Type:size_t
Parameter:
| Type | Parameter | Name |
|---|---|---|
| ZSTD_CStream * | zcs | |
| const void * | dict | |
| size_t | dictSize | |
| ZSTD_parameters | params | |
| unsigned long long | pledgedSrcSize |
| 3059 | neededInBuffSize = 1 << windowLog |
| 3060 | If inBuffSize < neededInBuffSize Then |
| 3061 | inBuffSize = neededInBuffSize |
| 3063 | inBuff = ZSTD_malloc(neededInBuffSize, customMem) |
| 3064 | If (inBuff == NULL) Then Return -***************************************** Error codes handling(memory_allocation) |
| 3067 | blockSize = -************************************** shared macros(Define for static allocation , neededInBuffSize) |
| 3069 | If outBuffSize < -************************************** Helper functions + 1 Then |
| 3072 | outBuff = ZSTD_malloc(outBuffSize, customMem) |
| 3073 | If (outBuff == NULL) Then Return -***************************************** Error codes handling(memory_allocation) |
| 3078 | ZSTD_freeCDict(cdictLocal) |
| 3079 | cdictLocal = ZSTD_createCDict_advanced(dict, dictSize, 0, params, customMem) |
| 3080 | If (cdictLocal == NULL) Then Return -***************************************** Error codes handling(memory_allocation) |
| 3082 | cdict = cdictLocal |
| 3083 | Else cdict = NULL |
| 3086 | checksum = checksumFlag > 0 |
| 3089 | Return ZSTD_resetCStream_internal(zcs, pledgedSrcSize) |
| Name | Describe |
|---|---|
| ZSTD_initCStream |
| 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 |