using System.IO; using System.Threading; using System.Threading.Tasks; namespace Wabbajack.Hashing.xxHash64 { public static class ByteArrayExtensions { public static async ValueTask Hash(this byte[] data) { return await new MemoryStream(data).HashingCopy(Stream.Null, CancellationToken.None); } } }