FastLED 3.9.15
Loading...
Searching...
No Matches

◆ CircularBuffer() [1/2]

template<typename T>
fl::CircularBuffer< T >::CircularBuffer ( size_t capacity)
inline

Definition at line 14 of file circular_buffer.h.

15 : mCapacity(capacity + 1), mHead(0), mTail(0) { // Extra space for distinguishing full/empty
16 mBuffer.reset(new T[mCapacity]);
17 }
size_t capacity() const
fl::scoped_array< T > mBuffer

References capacity(), mBuffer, mCapacity, mHead, and mTail.

Referenced by CircularBuffer(), and operator=().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: