Commit a82d61a5 authored by Max Kellermann's avatar Max Kellermann

util/DynamicFifoBuffer: add API documentation

parent 0c4a7c80
...@@ -45,8 +45,12 @@ public: ...@@ -45,8 +45,12 @@ public:
using typename ForeignFifoBuffer<T>::const_pointer_type; using typename ForeignFifoBuffer<T>::const_pointer_type;
using typename ForeignFifoBuffer<T>::Range; using typename ForeignFifoBuffer<T>::Range;
/**
* Allocate a buffer with the given capacity.
*/
explicit DynamicFifoBuffer(size_type _capacity) noexcept explicit DynamicFifoBuffer(size_type _capacity) noexcept
:ForeignFifoBuffer<T>(new T[_capacity], _capacity) {} :ForeignFifoBuffer<T>(new T[_capacity], _capacity) {}
~DynamicFifoBuffer() noexcept { ~DynamicFifoBuffer() noexcept {
delete[] GetBuffer(); delete[] GetBuffer();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment