util/DynamicFifoBuffer: add API documentation
This commit is contained in:
parent
0c4a7c8004
commit
a82d61a5e4
@ -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();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user