Update EndianSwap.cs

This commit is contained in:
Ac_K 2018-06-17 18:44:54 +02:00 committed by GitHub
parent 870c289c0c
commit b8142cb6c3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,6 +3,7 @@
static class EndianSwap
{
public static short Swap16(short Value) => (short)(((Value >> 8) & 0xff) | (Value << 8));
public static int Swap32(int Value)
{
uint UintVal = (uint)Value;