1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 11:17:35 +00:00

Kernel: Let Region keep a Range internally.

This commit is contained in:
Andreas Kling 2019-05-17 04:32:08 +02:00
parent 4a6fcfbacf
commit 87b54a82c7
5 changed files with 26 additions and 26 deletions

View file

@ -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