public void Unmap(MemoryMappedDevice device, ushort address, uint size, MemoryMapEntry.AccessType accessType) { for (uint i = 0; i < size; i++) { if (_memoryMap[address + i][accessType] == device) { _memoryMap[address + i][accessType] = null; } } }
public void Map(MemoryMappedDevice device, ushort address, uint size, MemoryMapEntry.AccessType accessType, bool overwrite) { if (!overwrite) { for (uint i = 0; i < size; i++) { if (_memoryMap[address + i][accessType] != null) throw new ArgumentException(); } } for (uint i = 0; i < size; i++) _memoryMap[address + i][accessType] = device; }
public void Map(MemoryMappedDevice device, ushort address, uint size, MemoryMapEntry.AccessType accessType, bool overwrite) { if (!overwrite) { for (uint i = 0; i < size; i++) { if (_memoryMap[address + i][accessType] != null) { throw new ArgumentException(); } } } for (uint i = 0; i < size; i++) { _memoryMap[address + i][accessType] = device; } }
public void Map(MemoryMappedDevice device, MemoryMapEntry.AccessType accessType, bool overwrite) { Map(device, device.Address, device.Size, accessType, overwrite); }
public void Map(MemoryMappedDevice device, bool overwrite) { Map(device, MemoryMapEntry.AccessType.Read, overwrite); Map(device, MemoryMapEntry.AccessType.Write, overwrite); }
public void Unmap(MemoryMappedDevice device, ushort address, uint size) { Unmap(device, address, size, MemoryMapEntry.AccessType.Read); Unmap(device, address, size, MemoryMapEntry.AccessType.Write); }
public void Unmap(MemoryMappedDevice device, MemoryMapEntry.AccessType accessType) { Unmap(device, device.Address, device.Size, accessType); }
public void Unmap(MemoryMappedDevice device) { Unmap(device, MemoryMapEntry.AccessType.Read); Unmap(device, MemoryMapEntry.AccessType.Write); }
public void Map(MemoryMappedDevice device, ushort address, uint size, bool overwrite) { Map(device, address, size, MemoryMapEntry.AccessType.Read, overwrite); Map(device, address, size, MemoryMapEntry.AccessType.Write, overwrite); }
public void Unmap(MemoryMappedDevice device, ushort address, uint size, MemoryMapEntry.AccessType accessType) { for (uint i = 0; i < size; i++) { if (_memoryMap[address + i][accessType] == device) _memoryMap[address + i][accessType] = null; } }