Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: : 0, or an error code

Proto:size_t ZSTD_copyCCtx(ZSTD_CCtx *dstCCtx, const ZSTD_CCtx *srcCCtx, unsigned long long pledgedSrcSize)

Type:size_t

Parameter:

TypeParameterName
ZSTD_CCtx *dstCCtx
const ZSTD_CCtx *srcCCtx
unsigned long longpledgedSrcSize

Brief:! ZSTD_copyCCtx() :* Duplicate an existing context `srcCCtx` into another one `dstCCtx`.* Only works during stage ZSTDcs_init (i.e. after creation, but before first call to ZSTD_compressContinue()).

350  If stage != ZSTDcs_init Then Return -***************************************** Error codes handling(stage_wrong)
353  No 3D Now!( & customMem, & customMem, sizeof(ZSTD_customMem))
355  params = params
356  contentSizeFlag = pledgedSrcSize > 0
357  ! ZSTD_resetCCtx_advanced() :note : `params` must be validated
362  chainSize = If strategy == ZSTD_fast Then 0 Else 1 << chainLog
363  hSize = 1 << hashLog
364  h3Size = 1 << hashLog3
365  tableSpace = ( chainSize + hSize + h3Size) * sizeof(U32)
366  No 3D Now!(workSpace, workSpace, tableSpace)
370  nextToUpdate = nextToUpdate
371  nextToUpdate3 = nextToUpdate3
372  nextSrc = nextSrc
373  base = base
374  dictBase = dictBase
375  dictLimit = dictLimit
376  lowLimit = lowLimit
377  loadedDictEnd = loadedDictEnd
378  dictID = dictID
381  flagStaticTables = flagStaticTables
382  flagStaticHufTable = flagStaticHufTable
383  If flagStaticTables Then
384  No 3D Now!(litlengthCTable, litlengthCTable, size of litlengthCTable )
385  No 3D Now!(matchlengthCTable, matchlengthCTable, size of matchlengthCTable )
386  No 3D Now!(offcodeCTable, offcodeCTable, size of offcodeCTable )
388  If flagStaticHufTable Then
389  No 3D Now!(hufTable, hufTable, 256 * 4)
392  Return 0
Caller
NameDescribe
ZSTD_compressBegin_usingCDict