diff --git a/GameFrameX.Foundation.Hash/XxHashHelper.cs b/GameFrameX.Foundation.Hash/XxHashHelper.cs index 74761c6..0649d5d 100644 --- a/GameFrameX.Foundation.Hash/XxHashHelper.cs +++ b/GameFrameX.Foundation.Hash/XxHashHelper.cs @@ -480,7 +480,7 @@ private static unsafe ulong Hash64(byte* input, int length, uint seed = 0) /// 32位无符号整数形式的哈希值 / The 32-bit hash value as an unsigned integer /// 为 null 时抛出 / Thrown when is null [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint Hash32(byte[] buffer) + public static uint Hash32Core(byte[] buffer) { ArgumentNullException.ThrowIfNull(buffer, nameof(buffer)); var length = buffer.Length; @@ -506,7 +506,7 @@ public static uint Hash32(byte[] buffer) public static uint Hash32(string text) { ArgumentNullException.ThrowIfNull(text, nameof(text)); - return Hash32(Encoding.UTF8.GetBytes(text)); + return Hash32Core(Encoding.UTF8.GetBytes(text)); } ///