summaryrefslogtreecommitdiff
path: root/Kernel
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-03-10 19:59:34 +0100
committerAndreas Kling <kling@serenityos.org>2021-03-10 22:30:02 +0100
commit839d2d70a4bd73d9162a03430c20c1ee2e542331 (patch)
tree24c05f07fa0f9525059c7849c73234a969ee2e1d /Kernel
parenta77ecac900970bf11ed7db934fcb627e2019cae3 (diff)
downloadserenity-839d2d70a4bd73d9162a03430c20c1ee2e542331.zip
Kernel: Add non-const KBuffer::impl() getter
Diffstat (limited to 'Kernel')
-rw-r--r--Kernel/KBuffer.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Kernel/KBuffer.h b/Kernel/KBuffer.h
index f619d30ca4..5d1b4aa661 100644
--- a/Kernel/KBuffer.h
+++ b/Kernel/KBuffer.h
@@ -162,6 +162,7 @@ public:
void set_size(size_t size) { m_impl->set_size(size); }
+ [[nodiscard]] KBufferImpl& impl() { return *m_impl; }
[[nodiscard]] const KBufferImpl& impl() const { return *m_impl; }
[[nodiscard]] RefPtr<KBufferImpl> take_impl() { return move(m_impl); }