Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:dictionary saving

Proto:int LZ4_saveDictHC(LZ4_streamHC_t *LZ4_streamHCPtr, char *safeBuffer, int dictSize)

Type:int

Parameter:

TypeParameterName
LZ4_streamHC_t *LZ4_streamHCPtr
char *safeBuffer
intdictSize
739  streamPtr = internal_donotuse
740  prefixSize = xt block to continue on current prefix - All index relative to this position + low that point, need extDict
743  If dictSize > 64 * KB Then dictSize = 64 * KB
745  If dictSize < 4 Then dictSize = 0
747  If dictSize > prefixSize Then dictSize = prefixSize
750  Not static to avoid a conflict with the prototype in the Linux headers.
753  endIndex = xt block to continue on current prefix - All index relative to this position
755  xt block to continue on current prefix = safeBuffer + dictSize
756  All index relative to this position = xt block to continue on current prefix - endIndex
757  low that point, need extDict = endIndex - dictSize
758  low that point, no more dict = endIndex - dictSize
760  If dex from which to continue dict update < low that point, need extDict Then dex from which to continue dict update = low that point, need extDict
763  Return dictSize