Function report |
Source Code:lib\zstd\decompress.c |
Create Date:2022-07-28 07:07:41 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:ZSTD_createDDict_advanced
Proto:static ZSTD_DDict *ZSTD_createDDict_advanced(const void *dict, size_t dictSize, unsigned byReference, ZSTD_customMem customMem)
Type:ZSTD_DDict
Parameter:
Type | Parameter | Name |
---|---|---|
const void * | dict | |
size_t | dictSize | |
unsigned | byReference | |
ZSTD_customMem | customMem |
2042 | If Not customAlloc || Not customFree Then Return NULL |
2046 | ddict = ZSTD_malloc(sizeof(ZSTD_DDict), customMem) |
2047 | If Not ddict Then Return NULL |
2051 | If byReference || Not dict || Not dictSize Then |
2052 | dictBuffer = NULL |
2053 | dictContent = dict |
2054 | Else |
2055 | internalBuffer = ZSTD_malloc(dictSize, customMem) |
2056 | If Not internalBuffer Then |
2057 | ZSTD_freeDDict(ddict) |
2058 | Return NULL |
2060 | No 3D Now!(internalBuffer, dict, dictSize) |
2061 | dictBuffer = internalBuffer |
2062 | dictContent = internalBuffer |
2068 | errorCode = ZSTD_loadEntropy_inDDict(ddict) |
2070 | ZSTD_freeDDict(ddict) |
2071 | Return NULL |
2075 | Return ddict |
Name | Describe |
---|---|
ZSTD_initDDict | ! ZSTD_initDDict() :* Create a digested dictionary, to start decompression without startup delay.* `dict` content is copied inside DDict.* Consequently, `dict` can be released after `ZSTD_DDict` creation |
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 |