mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2024-11-26 06:20:24 +00:00
21 lines
427 B
C#
21 lines
427 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.IO;
|
|
|
|
namespace System
|
|
{
|
|
public static class UintExtension
|
|
{
|
|
public static uint SwapBytes(this uint value)
|
|
{
|
|
byte[] bytes = BitConverter.GetBytes(value);
|
|
|
|
Array.Reverse(bytes);
|
|
return BitConverter.ToUInt32(bytes, 0);
|
|
}
|
|
|
|
}
|
|
}
|