public int ReadInteger(int Address) { IntPtr intPtr = IntPtr.Zero; byte[] bArray = new byte[4]; IntPtr intPtr1 = intPtr; ProcessMemoryReaderWriter.ReadProcessMemory((IntPtr)this.Handle, (IntPtr)Address, bArray, 4, out intPtr1); int rInt = BitConverter.ToInt32(bArray, 0); int num = rInt; return(num); }
public float ReadFloat(int Address) { IntPtr intPtr = IntPtr.Zero; byte[] bArray = new byte[4]; IntPtr intPtr1 = intPtr; ProcessMemoryReaderWriter.ReadProcessMemory((IntPtr)this.Handle, (IntPtr)Address, bArray, 4, out intPtr1); int rFlt = (int)Math.Round((double)BitConverter.ToSingle(bArray, 0)); float single = (float)rFlt; return(single); }