Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:HUF_decompress4X_DCtx_wksp

Proto:size_t HUF_decompress4X_DCtx_wksp(HUF_DTable *dctx, void *dst, size_t dstSize, const void *cSrc, size_t cSrcSize, void *workspace, size_t workspaceSize)

Type:size_t

Parameter:

TypeParameterName
HUF_DTable *dctx
void *dst
size_tdstSize
const void *cSrc
size_tcSrcSize
void *workspace
size_tworkspaceSize
904  If dstSize == 0 Then Return -***************************************** Error codes handling(dstSize_tooSmall)
906  If cSrcSize > dstSize Then Return -***************************************** Error codes handling(corruption_detected)
908  If cSrcSize == dstSize Then
909  No 3D Now!(dst, cSrc, dstSize)
910  Return dstSize
912  If cSrcSize == 1 Then
913  memset(dst, * (constBYTE * )cSrc, dstSize)
914  Return dstSize
918  algoNb = : 0==HUF_decompress4X2, 1==HUF_decompress4X4 .
919  Return If algoNb Then HUF_decompress4X4_DCtx_wksp(dctx, dst, dstSize, cSrc, cSrcSize, workspace, workspaceSize) Else HUF_decompress4X2_DCtx_wksp(dctx, dst, dstSize, cSrc, cSrcSize, workspace, workspaceSize)