mirror of
https://github.com/momo5502/emulator.git
synced 2026-01-27 23:11:02 +00:00
Rename is_within method to contains
This commit is contained in:
@@ -42,7 +42,7 @@ struct mapped_module
|
||||
|
||||
bool is_static{false};
|
||||
|
||||
bool is_within(const uint64_t address) const
|
||||
bool contains(const uint64_t address) const
|
||||
{
|
||||
return address >= this->image_base && address < (this->image_base + this->size_of_image);
|
||||
}
|
||||
|
||||
@@ -99,7 +99,7 @@ class module_manager
|
||||
|
||||
std::advance(upper_bound, -1);
|
||||
|
||||
if (upper_bound->second.is_within(address))
|
||||
if (upper_bound->second.contains(address))
|
||||
{
|
||||
return upper_bound;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user