diff --git a/src/util/buffer.h b/src/util/buffer.h index 8b8c34452..f78dbdcb5 100644 --- a/src/util/buffer.h +++ b/src/util/buffer.h @@ -102,6 +102,7 @@ public: iterator end() { return m_buffer + size(); } const_iterator begin() const { return m_buffer; } const_iterator end() const { return m_buffer + size(); } + unsigned capacity() const { return m_capacity; } void push_back(T const & elem) { if (m_pos >= m_capacity)