函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:ZSTD_compressBlock_internal

函数原型:static size_t ZSTD_compressBlock_internal(ZSTD_CCtx *zc, void *dst, size_t dstCapacity, const void *src, size_t srcSize)

返回类型:size_t

参数:

类型参数名称
ZSTD_CCtx *zc
void *dst
size_tdstCapacity
const void *src
size_tsrcSize
2335  blockCompressor等于ZSTD_selectBlockCompressor(strategy, lowLimit < dictLimit)
2336  base等于base
2337  istart等于src
2338  curr等于istartbase
2339  如果srcSize小于r a non-null block ZSTD_blockHeaderSize加1则返回:0
2341  -************************************** Sequence storage
2342  如果curr大于nextToUpdate加384则nextToUpdate等于curr-************************************** shared macros(192, (U32)(curr - nextToUpdate - 384))
2344  blockCompressor(zc, src, srcSize)
2345  返回:ZSTD_compressSequences(zc, dst, dstCapacity, srcSize)
调用者
名称描述
ZSTD_compress_generic : compressed size, or an error code
ZSTD_compressContinue_internal