BonCodeAJP13Namespace.BonCodeAJP13Packet.FlipArray C# (CSharp) 메소드

FlipArray() 보호된 정적인 메소드

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