private static void ReverseByFlag(byte[] data, bool isBigEndian) { if (!isBigEndian) { Array.Reverse(data); } }