BonCodeAJP13.BonCodeAJP13ServerConnection.FlipArray C# (CSharp) Method

FlipArray() private static method

Flips the array to send it using the big endian convention
private static FlipArray ( byte Data ) : byte[]
Data byte
return byte[]
        private static byte[] FlipArray(byte[] Data)
        {
            byte[] FlippedData = new byte[Data.GetLength(0)];

            for (int i = 0; i < Data.GetLength(0); i++)
            {
                FlippedData[Data.GetUpperBound(0) - i] = Data[i];
            }
            return FlippedData;
        }