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

◆ size()

template<typename T>
fl::size fl::circular_buffer_core< T >::size ( ) const
inline

Definition at line 126 of file circular_buffer.h.

126 {
127 if (mCapacity == 0) return 0;
128 if (mFull) return mCapacity;
129 return (mHead + mCapacity - mTail) % mCapacity;
130 }

References mCapacity, mFull, mHead, and mTail.