public static byte[] EncodeUInt32(uint v) { return(BitConverter.GetBytes(IsLittleEndian ? Endian.SwapUInt32(v) : v)); }
public static UInt32 DecodeUInt32(byte[] data) { UInt32 netV = BitConverter.ToUInt32(data, 0); return(IsLittleEndian ? Endian.SwapUInt32(netV) : netV); }