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

Comparing trunk/Win32/Sojaner.MemoryScanner/MemoryScanner.cs (file contents):
Revision 428 by william, Tue May 28 13:32:28 2013 UTC vs.
Revision 429 by william, Tue May 28 15:16:05 2013 UTC

# Line 311 | Line 311 | namespace Sojaner.MemoryScanner
311          public void ReadProcessMemoryAtOnce(uint MemoryAddress, uint bytesToRead, object UserState)
312          {
313              uint size = 1024 * 128;
314 +            int count = 0;
315              for (uint j = MemoryAddress; j < (MemoryAddress + bytesToRead); j += size)
316              {
317                  using (ProcessMemoryChunk mem = new ProcessMemoryChunk(m_ReadProcess, (IntPtr)j, (int)size))
318                  {
319                      byte[] bigMem = mem.Read();
320 +                    count += bigMem.Length;
321                      if (this.OnBytesRead != null)
322                          this.OnBytesRead.Invoke(new OnBytesReadEventArgs(this, UserState, bigMem, j, bytesToRead));
323                      bigMem = null;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines