From 347b67b06f1b0c8ed5e45a0f2f4e8582e97bdd2a Mon Sep 17 00:00:00 2001 From: Blank Date: Thu, 30 Jul 2026 02:44:40 +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=20Hash64=20unsafe=20=E6=96=B9?= =?UTF-8?q?=E6=B3=95=E8=A7=84=E9=81=BF=20Sonar=20S3218=20shadow?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Linear: GFX-207 --- 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..9912cab 100644 --- a/GameFrameX.Foundation.Hash/XxHashHelper.cs +++ b/GameFrameX.Foundation.Hash/XxHashHelper.cs @@ -355,7 +355,7 @@ private static unsafe uint Hash32(byte* input, int length, uint seed = 0) /// Directly operates on memory pointers for optimal performance. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] - private static unsafe ulong Hash64(byte* input, int length, uint seed = 0) + private static unsafe ulong Hash64Core(byte* input, int length, uint seed = 0) { unchecked { @@ -555,7 +555,7 @@ public static ulong Hash64(byte[] buffer) { fixed (byte* pointer = buffer) { - return Hash64(pointer, length); + return Hash64Core(pointer, length); } } }