BonCodeAJP13Namespace.BonCodeAJP13Packet.SetUInt64 C# (CSharp) Method

SetUInt64() protected static method

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