diff options
author | Andreas Kling <kling@serenityos.org> | 2020-02-21 12:59:30 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-02-21 15:49:35 +0100 |
commit | 8047ff8205b5e07d99f2bf0b9a82302a698674ef (patch) | |
tree | c43ebfbf96d3ec23907bfca7ef1bfd160c90ea84 /Kernel | |
parent | d46071c08f19edca854dc7af0e1f0d0887201cb1 (diff) | |
download | serenity-8047ff8205b5e07d99f2bf0b9a82302a698674ef.zip |
Kernel: Expose the underlying Region of a KBuffer
Diffstat (limited to 'Kernel')
-rw-r--r-- | Kernel/KBuffer.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Kernel/KBuffer.h b/Kernel/KBuffer.h index 725ae9df43..0b529b821e 100644 --- a/Kernel/KBuffer.h +++ b/Kernel/KBuffer.h @@ -71,6 +71,9 @@ public: m_size = size; } + const Region& region() const { return *m_region; } + Region& region() { return *m_region; } + private: explicit KBufferImpl(NonnullOwnPtr<Region>&& region, size_t size) : m_size(size) |