Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\zstd\compress.c Create Date:2022-07-28 07:05:23
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:ZSTD_createCDict_advanced

Proto:static ZSTD_CDict *ZSTD_createCDict_advanced(const void *dictBuffer, size_t dictSize, unsigned byReference, ZSTD_parameters params, ZSTD_customMem customMem)

Type:ZSTD_CDict

Parameter:

TypeParameterName
const void *dictBuffer
size_tdictSize
unsignedbyReference
ZSTD_parametersparams
ZSTD_customMemcustomMem
2849  If Not customAlloc || Not customFree Then Return NULL
2853  cdict = ZSTD_malloc(sizeof(ZSTD_CDict), customMem)
2854  cctx = ZSTD_createCCtx_advanced(customMem)
2856  If Not cdict || Not cctx Then
2859  Return NULL
2862  If byReference || Not dictBuffer || Not dictSize Then
2863  dictBuffer = NULL
2865  Else
2867  If Not internalBuffer Then
2870  Return NULL
2883  Return NULL
2887  refContext = cctx
2888  dictContentSize = dictSize
2889  Return cdict
Caller
NameDescribe
ZSTD_initCDict
ZSTD_initCStream_advanced