Kernel: Add non-const KBuffer::impl() getter
This commit is contained in:
parent
a77ecac900
commit
839d2d70a4
Notes:
sideshowbarker
2024-07-18 21:32:57 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/839d2d70a4b
1 changed files with 1 additions and 0 deletions
|
@ -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); }
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue