예제 #1
0
        static MemoryControl GetMemoryControl(int windowNumber)
        {
            int i = windowNumber - 1;

            if ((uint)i >= MemoryControlCreator.NUMBER_OF_MEMORY_WINDOWS)
            {
                return(null);
            }
            return(MemoryControlCreator.GetMemoryControlInstance(i));
        }
예제 #2
0
        public static void ShowInMemoryWindow(ulong addr, ulong size)
        {
            var mc = GetMemoryControl(addr, size);

            if (mc == null)
            {
                mc = MemoryControlCreator.GetMemoryControlInstance(0);
            }
            ShowInMemoryWindow(mc, addr, size);
        }
예제 #3
0
 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);
 }