diff --git a/GameFrameX.Foundation.Hash/XxHashHelper.cs b/GameFrameX.Foundation.Hash/XxHashHelper.cs index 74761c6..ea24b24 100644 --- a/GameFrameX.Foundation.Hash/XxHashHelper.cs +++ b/GameFrameX.Foundation.Hash/XxHashHelper.cs @@ -503,7 +503,7 @@ public static uint Hash32(byte[] buffer) /// 32位无符号整数形式的哈希值 / The 32-bit hash value as an unsigned integer /// 为 null 时抛出 / Thrown when is null [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static uint Hash32(string text) + public static uint Hash32Core(string text) { ArgumentNullException.ThrowIfNull(text, nameof(text)); return Hash32(Encoding.UTF8.GetBytes(text)); @@ -522,7 +522,7 @@ public static uint Hash32(string text) public static uint Hash32(Type type) { ArgumentNullException.ThrowIfNull(type, nameof(type)); - return Hash32(type.FullName); + return Hash32Core(type.FullName); } ///