Remove unused Util class

This commit is contained in:
Oliver Booth 2021-03-10 11:05:38 +00:00
parent 24039d835c
commit 9f9a79fd1b
1 changed files with 0 additions and 21 deletions

View File

@ -1,21 +0,0 @@
using System;
namespace X10D
{
internal static class Util
{
public static void SwapIfNeeded(ref byte[] buffer, Endianness endianness)
{
if (buffer is null)
{
throw new ArgumentNullException(nameof(buffer));
}
var swapNeeded = BitConverter.IsLittleEndian == (endianness == Endianness.BigEndian);
if (swapNeeded)
{
Array.Reverse(buffer);
}
}
}
}