Exemple #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));
        }
Exemple #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);
        }
Exemple #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);
 }