コード例 #1
0
        public static void setDataUpper(TCPGecko upper)
        {
            UInt32[] data = upper.MemoryRegionRequest();

            if (data == null)
            {
                return;
            }

            for (int i = 0, j = 0; i < data.Length; i += 3, j++)
            {
                uint addr = data[i];
                uint size = data[i + 1];
                uint type = data[i + 2];
                ValidAreas[j] = new AddressRange(GetType(type), addr, addr + size);
            }
        }