BonCodeAJP13Namespace.BonCodeAJP13Packet.SetInt64 C# (CSharp) Method

SetInt64() protected static method

Set the Int64 value in the array starting from the position Pos
protected static SetInt64 ( byte Data, System.Int64 Value, int Pos ) : int
Data byte
Value System.Int64
Pos int
return int
        protected static int SetInt64(byte[] Data, Int64 Value, int Pos)
        {
            byte[] ValueData = new byte[sizeof(Int64)];
            ValueData = BitConverter.GetBytes(Value);
            // flipping the Array ....Big Endian ..
            ValueData = FlipArray(ValueData);
            Array.Copy(ValueData, 0, Data, Pos, ValueData.Length);
            return Pos + sizeof(Int64);
        }