Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:HUF_compress1X_usingCTable

Proto:size_t HUF_compress1X_usingCTable(void *dst, size_t dstSize, const void *src, size_t srcSize, const HUF_CElt *CTable)

Type:size_t

Parameter:

TypeParameterName
void *dst
size_tdstSize
const void *src
size_tsrcSize
const HUF_CElt *CTable
540  ip = src
541  ostart = dst
542  oend = ostart + dstSize
543  op = ostart
548  If dstSize < 8 Then Return 0
551  initErr = : 0 if success,
552  If Error Management Then Return 0
556  n = srcSize & ~3
558  Case & == 3
558  HUF_encodeSymbol( & bitC, ip[n + 2], CTable)
560  Case & == 2
560  HUF_encodeSymbol( & bitC, ip[n + 1], CTable)
562  Case & == 1
562  HUF_encodeSymbol( & bitC, ip[n + 0], CTable)
562  HUF_FLUSHBITS( & bitC)
563  Case & == 0
564  Default
567  When n > 0 cycle
568  HUF_encodeSymbol( & bitC, ip[n - 1], CTable)
570  HUF_encodeSymbol( & bitC, ip[n - 2], CTable)
572  HUF_encodeSymbol( & bitC, ip[n - 3], CTable)
574  HUF_encodeSymbol( & bitC, ip[n - 4], CTable)
575  HUF_FLUSHBITS( & bitC)
578  Return BIT_closeCStream( & bitC)
Caller
NameDescribe
HUF_compress4X_usingCTable
HUF_compressCTable_internal