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