diff options
author | MacDue <macdue@dueutil.tech> | 2022-05-04 16:21:31 +0100 |
---|---|---|
committer | Ali Mohammad Pur <Ali.mpfard@gmail.com> | 2022-05-06 02:12:51 +0430 |
commit | 222079cd803cee31fd38595539d71ed2f632ca48 (patch) | |
tree | ea9ecccae03cb9ddbc32568c1bd39d56e078945d /Kernel | |
parent | 88f637a5059990694cdca38bd3a555e573e176e9 (diff) | |
download | serenity-222079cd803cee31fd38595539d71ed2f632ca48.zip |
Kernel: Expose .length() of KBufferBuilder
Diffstat (limited to 'Kernel')
-rw-r--r-- | Kernel/KBufferBuilder.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Kernel/KBufferBuilder.h b/Kernel/KBufferBuilder.h index d96eed409d..426b7c8d9b 100644 --- a/Kernel/KBufferBuilder.h +++ b/Kernel/KBufferBuilder.h @@ -52,6 +52,11 @@ public: return m_buffer->bytes(); } + size_t length() const + { + return m_size; + } + private: explicit KBufferBuilder(NonnullOwnPtr<KBuffer>); |