Address range helper function for checking if a range contains an address
This commit is contained in:
@@ -36,6 +36,10 @@ namespace Bloom::Targets
|
||||
|| (other.endAddress >= this->endAddress && other.startAddress <= this->endAddress)
|
||||
;
|
||||
}
|
||||
|
||||
[[nodiscard]] bool contains(std::uint32_t address) const {
|
||||
return address >= this->startAddress && address < this->endAddress;
|
||||
}
|
||||
};
|
||||
|
||||
struct TargetMemoryDescriptor
|
||||
|
||||
Reference in New Issue
Block a user