函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:ZSTD_endStream

函数原型:size_t ZSTD_endStream(ZSTD_CStream *zcs, ZSTD_outBuffer *output)

返回类型:size_t

参数:

类型参数名称
ZSTD_CStream *zcs
ZSTD_outBuffer *output
3253  ostart等于dstpos
3254  oend等于dstsize
3255  op等于ostart
3257  如果pledgedSrcSizeinputProcessed不等于pledgedSrcSize则返回:-***************************************** Error codes handling(srcSize_wrong)
3260  如果stage不等于zcss_final
3262  srcSize等于0
3263  sizeWritten等于sizepos
3264  notEnded等于ZSTD_compressStream_generic(zcs, ostart, & sizeWritten, & srcSize, & srcSize, zsf_end)
3266  remainingToFlush等于outBuffContentSizeoutBuffFlushedSize
3267  op加等于sizeWritten
3268  如果remainingToFlush
3269  pos加等于sizeWritten
3273  stage等于zcss_final
3274  outBuffContentSize等于如果非notEnded则0否则ZSTD_compressEnd(cctx, outBuff, outBuffSize, NULL, 0)
3280  toFlush等于outBuffContentSizeoutBuffFlushedSize
3281  flushed等于ZSTD_limitCopy(op, oend - op, outBuff + outBuffFlushedSize, toFlush)
3282  op加等于flushed
3283  outBuffFlushedSize加等于flushed
3284  pos加等于opostart
3285  如果toFlush恒等于flushedstage等于zcss_init
3287  返回:toFlushflushed