BonCodeAJP13Namespace.BonCodeAJP13Packet.FlipArray C# (CSharp) Method

FlipArray() protected static method

Flips the array to send it using the big endian convention
protected static FlipArray ( byte Data ) : byte[]
Data byte
return byte[]
        protected 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;
        }