mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 07:47:37 +00:00
Kernel: Finally stop exposing Region members to the public.
This commit is contained in:
parent
e683f611f1
commit
aa24547e12
9 changed files with 132 additions and 106 deletions
|
@ -61,10 +61,10 @@ public:
|
|||
|
||||
bool is_null() const { return m_address == 0; }
|
||||
|
||||
byte* asPtr() { return reinterpret_cast<byte*>(m_address); }
|
||||
const byte* asPtr() const { return reinterpret_cast<const byte*>(m_address); }
|
||||
byte* as_ptr() { return reinterpret_cast<byte*>(m_address); }
|
||||
const byte* as_ptr() const { return reinterpret_cast<const byte*>(m_address); }
|
||||
|
||||
dword pageBase() const { return m_address & 0xfffff000; }
|
||||
dword page_base() const { return m_address & 0xfffff000; }
|
||||
|
||||
bool operator==(const PhysicalAddress& other) const { return m_address == other.m_address; }
|
||||
|
||||
|
@ -91,10 +91,10 @@ public:
|
|||
bool operator==(const LinearAddress& other) const { return m_address == other.m_address; }
|
||||
bool operator!=(const LinearAddress& other) const { return m_address != other.m_address; }
|
||||
|
||||
byte* asPtr() { return reinterpret_cast<byte*>(m_address); }
|
||||
const byte* asPtr() const { return reinterpret_cast<const byte*>(m_address); }
|
||||
byte* as_ptr() { return reinterpret_cast<byte*>(m_address); }
|
||||
const byte* as_ptr() const { return reinterpret_cast<const byte*>(m_address); }
|
||||
|
||||
dword pageBase() const { return m_address & 0xfffff000; }
|
||||
dword page_base() const { return m_address & 0xfffff000; }
|
||||
|
||||
private:
|
||||
dword m_address { 0 };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue