util/DynamicFifoBuffer: add API documentation

This commit is contained in:
Max Kellermann 2019-08-16 13:21:11 +02:00
parent 0c4a7c8004
commit a82d61a5e4

View File

@ -45,8 +45,12 @@ public:
using typename ForeignFifoBuffer<T>::const_pointer_type;
using typename ForeignFifoBuffer<T>::Range;
/**
* Allocate a buffer with the given capacity.
*/
explicit DynamicFifoBuffer(size_type _capacity) noexcept
:ForeignFifoBuffer<T>(new T[_capacity], _capacity) {}
~DynamicFifoBuffer() noexcept {
delete[] GetBuffer();
}