From a82d61a5e43cff3e080df2fc1e899b35aecb8036 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 16 Aug 2019 13:21:11 +0200 Subject: [PATCH] util/DynamicFifoBuffer: add API documentation --- src/util/DynamicFifoBuffer.hxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/util/DynamicFifoBuffer.hxx b/src/util/DynamicFifoBuffer.hxx index fcdf8c6f8..deba848a7 100644 --- a/src/util/DynamicFifoBuffer.hxx +++ b/src/util/DynamicFifoBuffer.hxx @@ -45,8 +45,12 @@ public: using typename ForeignFifoBuffer::const_pointer_type; using typename ForeignFifoBuffer::Range; + /** + * Allocate a buffer with the given capacity. + */ explicit DynamicFifoBuffer(size_type _capacity) noexcept :ForeignFifoBuffer(new T[_capacity], _capacity) {} + ~DynamicFifoBuffer() noexcept { delete[] GetBuffer(); }