Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:ZSTD_compressSequences

Proto:ZSTD_STATIC size_t ZSTD_compressSequences(ZSTD_CCtx *zc, void *dst, size_t dstCapacity, size_t srcSize)

Type:size_t

Parameter:

TypeParameterName
ZSTD_CCtx *zc
void *dst
size_tdstCapacity
size_tsrcSize
834  cSize = ZSTD_compressSequences_internal(zc, dst, dstCapacity)
835  minGain = ZSTD_minGain(srcSize)
836  maxCSize = srcSize - minGain
841  uncompressibleError = cSize == -***************************************** Error codes handling(dstSize_tooSmall) && srcSize <= dstCapacity
844  If ZSTD_isError() - tells if a size_t function result is an error code*@code: The function result to check for error.* Return: Non-zero iff the code is an error. && Not uncompressibleError Then Return cSize
846  If cSize >= maxCSize || uncompressibleError Then
847  flagStaticHufTable = *< Cannot use the previous table
848  Return 0
851  When i < umber of repcodes cycle rep[i] = repToConfirm[i]
853  Return cSize
Caller
NameDescribe
ZSTD_compressBlock_internal