Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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 activityDownload SCCTChinese

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:

TypeParameterName
ZSTD_CStream *zcs
const void *dict
size_tdictSize
ZSTD_parametersparams
unsigned long longpledgedSrcSize
3059  neededInBuffSize = 1 << windowLog
3060  If inBuffSize < neededInBuffSize Then
3061  inBuffSize = neededInBuffSize
3062  ZSTD_free(inBuff, customMem)
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
3070  outBuffSize = -************************************** Helper functions + 1
3071  ZSTD_free(outBuff, customMem)
3072  outBuff = ZSTD_malloc(outBuffSize, customMem)
3073  If (outBuff == NULL) Then Return -***************************************** Error codes handling(memory_allocation)
3077  If dict && dictSize >= 8 Then
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
3087  params = params
3089  Return ZSTD_resetCStream_internal(zcs, pledgedSrcSize)
Caller
NameDescribe
ZSTD_initCStream