mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 20:47:45 +00:00
Kernel: Expose the underlying Region of a KBuffer
This commit is contained in:
parent
d46071c08f
commit
8047ff8205
1 changed files with 3 additions and 0 deletions
|
@ -71,6 +71,9 @@ public:
|
||||||
m_size = size;
|
m_size = size;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const Region& region() const { return *m_region; }
|
||||||
|
Region& region() { return *m_region; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
explicit KBufferImpl(NonnullOwnPtr<Region>&& region, size_t size)
|
explicit KBufferImpl(NonnullOwnPtr<Region>&& region, size_t size)
|
||||||
: m_size(size)
|
: m_size(size)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue