Esempio n. 1
0
 public byte[] TryRead(int size)
 {
     try
     {
         return(MemoryLiterate.Read(ProcessHandle, LastResolvedAddress, size));
     }
     catch
     {
         return(MemoryLiterate.Read(ProcessHandle, Resolve(), size));
     }
 }
Esempio n. 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);
        }
Esempio n. 3
0
 public byte[] Read(int size)
 {
     return(MemoryLiterate.Read(ProcessHandle, Resolve(), size));
 }