Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:LZ4_loadDict

Proto:int LZ4_loadDict(LZ4_stream_t *LZ4_dict, const char *dictionary, int dictSize)

Type:int

Parameter:

TypeParameterName
LZ4_stream_t *LZ4_dict
const char *dictionary
intdictSize
778  dict = internal_donotuse
779  p = dictionary
780  dictEnd = p + dictSize
783  If initCheck || currentOffset > 1 * GB Then
786  -******************************* Streaming functions
789  If dictSize < HASH_UNIT Then
790  dictionary = NULL
791  dictSize = 0
792  Return 0
795  If dictEnd - p > 64 * KB Then p = dictEnd - 64 * KB
797  currentOffset += 64 * KB
798  base = p - currentOffset
799  dictionary = p
800  dictSize = dictEnd - p
801  currentOffset += dictSize
803  When p <= dictEnd - HASH_UNIT cycle
804  LZ4_putPosition(p, hashTable, byU32, base)
805  p += 3
808  Return dictSize