函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\zstd\compress.c Create Date:2022-07-27 08:03:15
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:ZSTD_initCStream_advanced

函数原型:static size_t ZSTD_initCStream_advanced(ZSTD_CStream *zcs, const void *dict, size_t dictSize, ZSTD_parameters params, unsigned long long pledgedSrcSize)

返回类型:size_t

参数:

类型参数名称
ZSTD_CStream *zcs
const void *dict
size_tdictSize
ZSTD_parametersparams
unsigned long longpledgedSrcSize
3059  neededInBuffSize等于1左移windowLog
3060  如果inBuffSize小于neededInBuffSize
3061  inBuffSize等于neededInBuffSize
3062  ZSTD_free(inBuff, customMem)
3063  inBuff等于ZSTD_malloc(neededInBuffSize, customMem)
3064  如果(inBuff == NULL)则返回:-***************************************** Error codes handling(memory_allocation)
3067  blockSize等于-************************************** shared macros(Define for static allocation , neededInBuffSize)
3069  如果outBuffSize小于-************************************** Helper functions加1则
3070  outBuffSize等于-************************************** Helper functions加1
3071  ZSTD_free(outBuff, customMem)
3072  outBuff等于ZSTD_malloc(outBuffSize, customMem)
3073  如果(outBuff == NULL)则返回:-***************************************** Error codes handling(memory_allocation)
3077  如果dictdictSize大于等于8则
3078  ZSTD_freeCDict(cdictLocal)
3079  cdictLocal等于ZSTD_createCDict_advanced(dict, dictSize, 0, params, customMem)
3080  如果(cdictLocal == NULL)则返回:-***************************************** Error codes handling(memory_allocation)
3082  cdict等于cdictLocal
3083  否则cdict = NULL
3086  checksum等于checksumFlag大于0
3087  params等于params
3089  返回:ZSTD_resetCStream_internal(zcs, pledgedSrcSize)
调用者
名称描述
ZSTD_initCStream