mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 02:27:43 +00:00
Kernel: Let Region keep a Range internally.
This commit is contained in:
parent
4a6fcfbacf
commit
87b54a82c7
5 changed files with 26 additions and 26 deletions
|
@ -17,6 +17,8 @@ public:
|
|||
size_t size() const { return m_size; }
|
||||
bool is_valid() const { return !m_base.is_null(); }
|
||||
|
||||
bool contains(LinearAddress laddr) const { return laddr >= base() && laddr < end(); }
|
||||
|
||||
LinearAddress end() const { return m_base.offset(m_size); }
|
||||
|
||||
bool operator==(const Range& other) const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue