18 lines
369 B
C#
18 lines
369 B
C#
using System;
|
|
|
|
namespace AMWD.Common.MessagePack.Utilities
|
|
{
|
|
/// <summary>
|
|
/// Provides some network utils.
|
|
/// </summary>
|
|
[System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
|
|
internal static class NetworkHelper
|
|
{
|
|
public static void SwapBigEndian(byte[] array)
|
|
{
|
|
if (BitConverter.IsLittleEndian)
|
|
Array.Reverse(array);
|
|
}
|
|
}
|
|
}
|