static int ReadBigEndianInt32 (byte [] buffer, int start) { int i = BitConverter.ToInt32 (buffer, start); if (!BitConverter.IsLittleEndian) return i; return SwapInt32 (i); }