From e2a59a8d020bfe051bb92cdeb28a9af4036ef5b8 Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Wed, 26 Aug 2026 14:02:51 -0400 Subject: [PATCH] Make XXH3 definitions easier to read --- SabreTools.Hashing/HashType.cs | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/SabreTools.Hashing/HashType.cs b/SabreTools.Hashing/HashType.cs index 204ed36..fcd4e5b 100644 --- a/SabreTools.Hashing/HashType.cs +++ b/SabreTools.Hashing/HashType.cs @@ -2,6 +2,10 @@ using System; using SabreTools.Hashing.Checksum; using SabreTools.Hashing.CryptographicHash; using SabreTools.Hashing.NonCryptographicHash; +#if NET462_OR_GREATER || NETSTANDARD2_0_OR_GREATER || NETCOREAPP +using XxHash3 = System.IO.Hashing.XxHash3; +using XxHash128 = System.IO.Hashing.XxHash128; +#endif namespace SabreTools.Hashing { @@ -1690,11 +1694,7 @@ namespace SabreTools.Hashing "XXH3 64-bit hash", [0x2d, 0x06, 0x80, 0x05, 0x38, 0xd3, 0x94, 0xc2], "2d06800538d394c2", -#if NET462_OR_GREATER || NETSTANDARD2_0_OR_GREATER || NETCOREAPP - static () => new System.IO.Hashing.XxHash3()); -#else static () => new XxHash3()); -#endif /// /// XXH128 128-bit hash @@ -1703,11 +1703,7 @@ namespace SabreTools.Hashing "XXH128 128-bit hash", [0x99, 0xaa, 0x06, 0xd3, 0x01, 0x47, 0x98, 0xd8, 0x60, 0x01, 0xc3, 0x24, 0x46, 0x8d, 0x49, 0x7f], "99aa06d3014798d86001c324468d497f", -#if NET462_OR_GREATER || NETSTANDARD2_0_OR_GREATER || NETCOREAPP - static () => new System.IO.Hashing.XxHash128()); -#else static () => new XxHash128()); -#endif #endregion