@@ -11,8 +11,7 @@ interface
1111 HlpIHashInfo,
1212 HlpHashResult,
1313 HlpIHashResult,
14- HlpMultipleTransformNonBlock,
15- HlpNullable;
14+ HlpMultipleTransformNonBlock;
1615
1716resourcestring
1817 SInvalidKeyLength = ' KeyLength Must Be Equal to %d' ;
@@ -32,7 +31,7 @@ TMurmur2_64 = class sealed(TMultipleTransformNonBlock, IHash64, IHashWithKey,
3231 M: UInt64 = UInt64($C6A4A7935BD1E995);
3332 R = Int32(47 );
3433
35- function GetKeyLength (): TNullableInteger ;
34+ function GetKeyLength (): Int32 ;
3635 function GetKey : THashLibByteArray; inline;
3736 procedure SetKey (const AValue: THashLibByteArray); inline;
3837
@@ -44,7 +43,7 @@ TMurmur2_64 = class sealed(TMultipleTransformNonBlock, IHash64, IHashWithKey,
4443 constructor Create();
4544 procedure Initialize (); override;
4645 function Clone (): IHash; override;
47- property KeyLength: TNullableInteger read GetKeyLength;
46+ property KeyLength: Int32 read GetKeyLength;
4847 property Key: THashLibByteArray read GetKey write SetKey;
4948
5049 end ;
@@ -214,7 +213,7 @@ function TMurmur2_64.GetKey: THashLibByteArray;
214213 result := TConverters.ReadUInt64AsBytesLE(FKey);
215214end ;
216215
217- function TMurmur2_64.GetKeyLength : TNullableInteger ;
216+ function TMurmur2_64.GetKeyLength : Int32 ;
218217begin
219218 result := 8 ;
220219end ;
@@ -233,10 +232,10 @@ procedure TMurmur2_64.SetKey(const AValue: THashLibByteArray);
233232 end
234233 else
235234 begin
236- if System.length(AValue) <> KeyLength. value then
235+ if System.length(AValue) <> KeyLength then
237236 begin
238237 raise EArgumentHashLibException.CreateResFmt(@SInvalidKeyLength,
239- [KeyLength. value ]);
238+ [KeyLength]);
240239 end ;
241240 FKey := TConverters.ReadBytesAsUInt64LE(PByte(AValue), 0 );
242241 end ;
0 commit comments