ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/RomCheater/trunk/Win32/Sojaner.MemoryScanner/MemoryProviers/BaseMemoryProvider.cs
(Generate patch)

Comparing trunk/Win32/Sojaner.MemoryScanner/MemoryProviers/BaseMemoryProvider.cs (file contents):
Revision 403 by william, Wed Jun 20 13:24:49 2012 UTC vs.
Revision 404 by william, Thu Jun 21 12:51:57 2012 UTC

# Line 260 | Line 260 | namespace Sojaner.MemoryScanner.MemoryPr
260              catch { address = 0x00; return false; }
261          }
262          #endregion
263 <        public void ReadProcessMemoryAtOnce(uint MemoryAddress, uint bytesToRead, out int bytesRead, out byte[] data)
264 <        {
265 <            bytesRead = 0x00;
266 <            data = new byte[bytesToRead];
267 <            if (!EnsureProviderIsOpen()) { return; }
268 <            try { provider.ReadProcessMemoryAtOnce(MemoryAddress, bytesToRead, out bytesRead, out data); }
269 <            catch { bytesRead = 0x00; data = new byte[] { }; }
270 <        }
271 <        public void ReadProcessMemoryAtOnce(int MemoryAddress, uint bytesToRead, out int bytesRead, out byte[] data)
263 >        #region public virtual void ReadProcessMemoryAtOnce(int MemoryAddress, uint bytesToRead, out int bytesRead, out byte[] data)
264 >        public virtual void ReadProcessMemoryAtOnce(uint MemoryAddress, uint bytesToRead, out int bytesRead, out byte[] data)
265          {
266              bytesRead = 0x00;
267              data = new byte[bytesToRead];
# Line 276 | Line 269 | namespace Sojaner.MemoryScanner.MemoryPr
269              try { provider.ReadProcessMemoryAtOnce(MemoryAddress, bytesToRead, out bytesRead, out data); }
270              catch { bytesRead = 0x00; data = new byte[] { }; }
271          }
272 +        #endregion
273          #region public virtual void ReadProcessMemory(int MemoryAddress, int bytesToRead, out int bytesRead, out byte[] data)
274          public virtual void ReadProcessMemory(uint MemoryAddress, uint bytesToRead, out int bytesRead, out byte[] data)
275          {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines