16 |
public partial class FloatingMemoryView : DockContent, |
public partial class FloatingMemoryView : DockContent, |
17 |
IAcceptsPlugin<IConfigPlugin>, |
IAcceptsPlugin<IConfigPlugin>, |
18 |
IAcceptsProcess<Process>, |
IAcceptsProcess<Process>, |
19 |
IAcceptsProcessAndConfig, IAcceptsExternalMemoryAddress |
IAcceptsProcessAndConfig, IBrowseMemoryRegion |
20 |
{ |
{ |
21 |
public FloatingMemoryView() { |
public FloatingMemoryView() { |
22 |
InitializeComponent(); |
InitializeComponent(); |
38 |
private uint MemorySize { get { return MemView.MemorySize; } } |
private uint MemorySize { get { return MemView.MemorySize; } } |
39 |
#endregion |
#endregion |
40 |
|
|
41 |
#region IAcceptsExternalMemoryAddress |
#region IBrowseMemoryRegion |
42 |
public bool AcceptExternalMemoryAddress(int address) |
public bool BrowseMemoryRegion(int MemoryRegion) |
43 |
{ |
{ |
44 |
if (!((MemoryStart <= address) && (address <= (MemoryStart + MemorySize)))) { return false; } |
if (!((MemoryStart <= MemoryRegion) && (MemoryRegion <= (MemoryStart + MemorySize)))) { return false; } |
45 |
MemView.GotoAddress(address); |
MemView.GotoAddress(MemoryRegion); |
46 |
return true; |
return true; |
47 |
} |
} |
48 |
#endregion |
#endregion |