Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:ZSTD_compressBlock_internal

Proto:static size_t ZSTD_compressBlock_internal(ZSTD_CCtx *zc, void *dst, size_t dstCapacity, const void *src, size_t srcSize)

Type:size_t

Parameter:

TypeParameterName
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 = istart - base
2339  If srcSize < r a non-null block + ZSTD_blockHeaderSize + 1 Then Return 0
2341  -************************************** Sequence storage
2342  If curr > nextToUpdate + 384 Then nextToUpdate = curr - -************************************** shared macros(192, (U32)(curr - nextToUpdate - 384))
2344  blockCompressor(zc, src, srcSize)
2345  Return ZSTD_compressSequences(zc, dst, dstCapacity, srcSize)
Caller
NameDescribe
ZSTD_compress_generic : compressed size, or an error code
ZSTD_compressContinue_internal