mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
15 lines
362 B
C#
15 lines
362 B
C#
using System.IO;
|
|
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Wabbajack.Hashing.xxHash64
|
|
{
|
|
public static class ByteArrayExtensions
|
|
{
|
|
public static async ValueTask<Hash> Hash(this byte[] data)
|
|
{
|
|
return await new MemoryStream(data).HashingCopy(Stream.Null, CancellationToken.None);
|
|
}
|
|
|
|
}
|
|
} |