예제 #1
0
 public byte[] TryRead(int size)
 {
     try
     {
         return(MemoryLiterate.Read(ProcessHandle, LastResolvedAddress, size));
     }
     catch
     {
         return(MemoryLiterate.Read(ProcessHandle, Resolve(), size));
     }
 }
예제 #2
0
        public IntPtr Resolve()
        {
            IntPtr address = MemoryLiterate.Read <IntPtr>(ProcessHandle, BaseAddress);

            for (int i = 0; i < Offsets.Count - 1; ++i)
            {
                address = MemoryLiterate.Read <IntPtr>(ProcessHandle, address + Offsets[i]);
            }

            address            += Offsets[Offsets.Count - 1];
            LastResolvedAddress = address;
            return(LastResolvedAddress);
        }
예제 #3
0
 public byte[] Read(int size)
 {
     return(MemoryLiterate.Read(ProcessHandle, Resolve(), size));
 }