Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:ZSTD_noCompressLiterals

Proto:static size_t ZSTD_noCompressLiterals(void *dst, size_t dstCapacity, const void *src, size_t srcSize)

Type:size_t

Parameter:

TypeParameterName
void *dst
size_tdstCapacity
const void *src
size_tsrcSize
445  ostart = dst
446  flSize = 1 + (srcSize > 31) + (srcSize > 4095)
448  If srcSize + flSize > dstCapacity Then Return -***************************************** Error codes handling(dstSize_tooSmall)
452  Case flSize == 1
452  ostart[0] = set_basic + (srcSize << 3)
452  Break
453  Case flSize == 2
453  ZSTD_writeLE16(ostart, (U16)((U32)set_basic + (1 << 2) + (srcSize << 4)))
453  Break
454  Default
455  Case flSize == 3
455  ZSTD_writeLE32(ostart, (U32)((U32)set_basic + (3 << 2) + (srcSize << 4)))
455  Break
458  No 3D Now!(ostart + flSize, src, srcSize)
459  Return srcSize + flSize
Caller
NameDescribe
ZSTD_compressLiterals