static MemoryControl GetMemoryControl(int windowNumber) { int i = windowNumber - 1; if ((uint)i >= MemoryControlCreator.NUMBER_OF_MEMORY_WINDOWS) { return(null); } return(MemoryControlCreator.GetMemoryControlInstance(i)); }
public static void ShowInMemoryWindow(ulong addr, ulong size) { var mc = GetMemoryControl(addr, size); if (mc == null) { mc = MemoryControlCreator.GetMemoryControlInstance(0); } ShowInMemoryWindow(mc, addr, size); }
static MemoryControl GetMemoryControl(ulong addr, ulong size) { for (int i = 0; i < MemoryControlCreator.NUMBER_OF_MEMORY_WINDOWS; i++) { var mc = MemoryControlCreator.GetMemoryControlInstance(i); if (CanShowAll(mc, addr, size)) { return(mc); } } return(null); }