aboutsummaryrefslogtreecommitdiff
path: root/src/utils/dynamic_buffer.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/dynamic_buffer.h')
-rw-r--r--src/utils/dynamic_buffer.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/utils/dynamic_buffer.h b/src/utils/dynamic_buffer.h
index b51345a..40ece26 100644
--- a/src/utils/dynamic_buffer.h
+++ b/src/utils/dynamic_buffer.h
@@ -46,6 +46,8 @@ class DynamicBuffer {
return true;
}
+ size_t size() const { return size_; }
+
private:
std::unique_ptr<T[]> buffer_;
size_t size_ = 0;