Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:ZSTD_compressRleLiteralsBlock

Proto:static size_t ZSTD_compressRleLiteralsBlock(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
464  ostart = dst
465  flSize = 1 + (srcSize > 31) + (srcSize > 4095)
467  dstCapacity
470  Case flSize == 1
470  ostart[0] = set_rle + (srcSize << 3)
470  Break
471  Case flSize == 2
471  ZSTD_writeLE16(ostart, (U16)((U32)set_rle + (1 << 2) + (srcSize << 4)))
471  Break
472  Default
473  Case flSize == 3
473  ZSTD_writeLE32(ostart, (U32)((U32)set_rle + (3 << 2) + (srcSize << 4)))
473  Break
476  ostart[flSize] = src
477  Return flSize + 1
Caller
NameDescribe
ZSTD_compressLiterals