Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:ZSTD_compressContinue_internal

Proto:static size_t ZSTD_compressContinue_internal(ZSTD_CCtx *cctx, void *dst, size_t dstCapacity, const void *src, size_t srcSize, U32 frame, U32 lastFrameChunk)

Type:size_t

Parameter:

TypeParameterName
ZSTD_CCtx *cctx
void *dst
size_tdstCapacity
const void *src
size_tsrcSize
U32frame
U32lastFrameChunk
2492  ip = src
2493  fhSize = 0
2495  If stage == ZSTDcs_created Then Return -***************************************** Error codes handling(stage_wrong)
2498  If frame && stage == ZSTDcs_init Then
2499  fhSize = ZSTD_writeFrameHeader(dst, dstCapacity, params, frameContentSize, dictID)
2500  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. Then Return fhSize
2502  dstCapacity -= fhSize
2503  dst = dst + fhSize
2504  stage = ZSTDcs_ongoing
2508  If src != nextSrc Then
2510  delta = nextSrc - ip
2511  lowLimit = dictLimit
2512  dictLimit = nextSrc - base
2513  dictBase = base
2514  base -= delta
2515  nextToUpdate = dictLimit
2516  If dictLimit - lowLimit < HASH_READ_SIZE Then lowLimit = dictLimit
2521  If ip + srcSize > dictBase + lowLimit & ip < dictBase + dictLimit Then
2522  highInputIdx = ip + srcSize - dictBase
2523  lowLimitMax = If highInputIdx > dictLimit Then dictLimit Else highInputIdx
2524  lowLimit = lowLimitMax
2527  nextSrc = ip + srcSize
2529  If srcSize Then
2530  cSize = If frame Then : compressed size, or an error code Else ZSTD_compressBlock_internal(cctx, dst, dstCapacity, src, srcSize)
2532  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. Then Return cSize
2534  Return cSize + fhSize
2535  Else Return fhSize
Caller
NameDescribe
ZSTD_compressContinue
ZSTD_compressBlock
ZSTD_compressEnd