Browse Source

Kernel: Expose .length() of KBufferBuilder

MacDue 3 years ago
parent
commit
222079cd80
1 changed files with 5 additions and 0 deletions
  1. 5 0
      Kernel/KBufferBuilder.h

+ 5 - 0
Kernel/KBufferBuilder.h

@@ -52,6 +52,11 @@ public:
         return m_buffer->bytes();
     }
 
+    size_t length() const
+    {
+        return m_size;
+    }
+
 private:
     explicit KBufferBuilder(NonnullOwnPtr<KBuffer>);