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:45
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:LZ4_compress_fast_continue

Proto:int LZ4_compress_fast_continue(LZ4_stream_t *LZ4_stream, const char *source, char *dest, int inputSize, int maxOutputSize, int acceleration)

Type:int

Parameter:

TypeParameterName
LZ4_stream_t *LZ4_stream
const char *source
char *dest
intinputSize
intmaxOutputSize
intacceleration
860  streamPtr = internal_donotuse
861  dictEnd = dictionary + dictSize
864  smallest = source
866  If initCheck Then
868  Return 0
871  If dictSize > 0 && smallest > dictEnd Then smallest = dictEnd
874  LZ4_renormDictT(streamPtr, smallest)
876  If acceleration < 1 Then acceleration = LZ4_ACCELERATION_DEFAULT
881  sourceEnd = source + inputSize
883  If sourceEnd > dictionary && sourceEnd < dictEnd Then
886  If dictSize > 64 * KB Then dictSize = 64 * KB
888  If dictSize < 4 Then dictSize = 0
895  If dictEnd == source Then
898  If dictSize < 64 * KB && dictSize < currentOffset Then
904  Else
910  dictSize += inputSize
911  currentOffset += inputSize
912  Return result
919  If dictSize < 64 * KB && dictSize < currentOffset Then
925  Else
931  dictionary = source
932  dictSize = inputSize
933  currentOffset += inputSize
934  Return result