From f584402570b3a369e979306b01828b9eb8398ea4 Mon Sep 17 00:00:00 2001 From: Blank Date: Thu, 30 Jul 2026 05:25:25 +0800 Subject: [PATCH] =?UTF-8?q?fix(hash):=20=E9=87=8D=E5=91=BD=E5=90=8D=20XxHa?= =?UTF-8?q?shHelper=20=E5=86=85=E5=B1=82=20Hash32(string)=20=E6=B6=88?= =?UTF-8?q?=E9=99=A4=20Sonar=20S3218=20shadow?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Linear: GFX-209 --- 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..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); } ///