From dd798a447bf09675b0ffa6bb556aaef30a3bbb4b Mon Sep 17 00:00:00 2001 From: Blank Date: Thu, 30 Jul 2026 06:20:35 +0800 Subject: [PATCH] =?UTF-8?q?fix(hash):=20=E9=87=8D=E5=91=BD=E5=90=8D?= =?UTF-8?q?=E5=86=85=E9=83=A8=E5=AD=97=E8=8A=82=E5=93=88=E5=B8=8C=E6=96=B9?= =?UTF-8?q?=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Linear: GFX-211 --- GameFrameX.Foundation.Hash/XxHashHelper.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)); } ///