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

◆ push()

template<typename T, fl::size N>
void fl::StaticCircularBuffer< T, N >::push ( const T & value)
inline

Definition at line 19 of file circular_buffer.h.

19 {
20 if (full()) {
21 mTail = (mTail + 1) % (N + 1); // Overwrite the oldest element
22 }
24 mHead = (mHead + 1) % (N + 1);
25 }

References full(), mBuffer, mHead, and mTail.

+ Here is the call graph for this function: