/[RomCheater]/trunk/Win32/Sojaner.MemoryScanner/MemoryProviers/BaseMemoryProvider.cs
ViewVC logotype

Diff of /trunk/Win32/Sojaner.MemoryScanner/MemoryProviers/BaseMemoryProvider.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- trunk/Win32/Sojaner.MemoryScanner/MemoryProviers/BaseMemoryProvider.cs	2013/06/06 07:56:04	577
+++ trunk/Win32/Sojaner.MemoryScanner/MemoryProviers/BaseMemoryProvider.cs	2013/06/06 08:18:44	578
@@ -276,7 +276,7 @@
 
         #region IMemoryReader member
         #region public virtual bool ReadFirstNonZeroByte(int MemoryAddress, uint bytesToRead, out int address)
-        public virtual bool ReadFirstNonZeroByte(ulong MemoryAddress, uint bytesToRead, out ulong address)
+        public virtual bool ReadFirstNonZeroByte(ulong MemoryAddress, ulong bytesToRead, out ulong address)
         {
             address = 0;
             if (!EnsureProviderIsOpen()) { return false; }
@@ -285,13 +285,13 @@
         }
         #endregion
         #region public virtual void ReadProcessMemoryAtOnce(int MemoryAddress, uint bytesToRead, out int bytesRead, out byte[] data)
-        public virtual void ReadProcessMemoryAtOnce(ulong MemoryAddress, uint bytesToRead, object UserState)
+        public virtual void ReadProcessMemoryAtOnce(ulong MemoryAddress, ulong bytesToRead, object UserState)
         {
             if (!EnsureProviderIsOpen()) { return; }
             try { provider.ReadProcessMemoryAtOnce(MemoryAddress, bytesToRead, UserState); }
             catch { }
         }
-        public virtual void ReadProcessMemoryAtOnce(ulong MemoryAddress, uint bytesToRead, out int bytesRead, out byte[] data)
+        public virtual void ReadProcessMemoryAtOnce(ulong MemoryAddress, ulong bytesToRead, out ulong bytesRead, out byte[] data)
         {
             bytesRead = 0x00;
             data = new byte[bytesToRead];
@@ -300,7 +300,7 @@
             catch { bytesRead = 0x00; data = new byte[] { }; }
         }
 
-        public virtual void UpdateAddressArray(ulong[] addresses, uint size, out byte[][] values)
+        public virtual void UpdateAddressArray(ulong[] addresses, ulong size, out byte[][] values)
         {
             values = new byte[addresses.Length][];
             for (int x = 0; x < values.Length; x++) { values[x] = new byte[size]; }
@@ -315,7 +315,7 @@
 
         #endregion
         #region public virtual void ReadProcessMemory(int MemoryAddress, int bytesToRead, out int bytesRead, out byte[] data)
-        public virtual void ReadProcessMemory(ulong MemoryAddress, uint bytesToRead, out int bytesRead, out byte[] data)
+        public virtual void ReadProcessMemory(ulong MemoryAddress, ulong bytesToRead, out ulong bytesRead, out byte[] data)
         {
             bytesRead = 0x00;
             data = new byte[bytesToRead];
@@ -323,7 +323,7 @@
             try { provider.ReadProcessMemory(MemoryAddress, bytesToRead, out bytesRead, out data); }
             catch { bytesRead = 0x00; data = new byte[] { }; }
         }
-        public virtual void ReadProcessMemory(long MemoryAddress, uint bytesToRead, out int bytesRead, out byte[] data)
+        public virtual void ReadProcessMemory(long MemoryAddress, long bytesToRead, out ulong bytesRead, out byte[] data)
         {
             bytesRead = 0x00;
             data = new byte[bytesToRead];
@@ -343,14 +343,14 @@
         //}
         //#endregion
         #region public virtual void WriteProcessMemory(int MemoryAddress, byte[] bytesToWrite, out int bytesWritten)
-        public virtual void WriteProcessMemory(long MemoryAddress, byte[] bytesToWrite, out int bytesWritten)
+        public virtual void WriteProcessMemory(long MemoryAddress, byte[] bytesToWrite, out ulong bytesWritten)
         {
             bytesWritten = 0;
             if (!EnsureProviderIsOpen()) { return; }
             try { provider.WriteProcessMemory(MemoryAddress, bytesToWrite, out bytesWritten); }
             catch { bytesWritten = 0x00; }
         }
-        public virtual void WriteProcessMemory(ulong MemoryAddress, byte[] bytesToWrite, out uint bytesWritten)
+        public virtual void WriteProcessMemory(ulong MemoryAddress, byte[] bytesToWrite, out ulong bytesWritten)
         {
             bytesWritten = 0;
             if (!EnsureProviderIsOpen()) { return; }
@@ -362,7 +362,7 @@
         #endregion
         #region IFileWriter members
         #region  public virtual bool WriteProcessMemoryToFile(string filename, int MemoryAddress, uint bytesToRead, out int bytesRead)
-        public virtual bool WriteProcessMemoryToFile(string filename, ulong MemoryAddress, uint bytesToRead, out int bytesRead)
+        public virtual bool WriteProcessMemoryToFile(string filename, ulong MemoryAddress, ulong bytesToRead, out ulong bytesRead)
         {
             bytesRead = 0;
             if (!EnsureProviderIsOpen()) { return false; }

 

  ViewVC Help
Powered by ViewVC 1.1.22