FastLED 3.10.8
Loading...
Searching...
No Matches

◆ clear()

void fl::Frame::clear ( )

Definition at line 99 of file frame.cpp.hpp.

99 {
100 if (mPixelsCount > 0 && !mRgb.empty()) {
101 fl::memset((u8*)mRgb.data(), 0, mPixelsCount * sizeof(CRGB));
102 }
103}
fl::vector_psram< CRGB > mRgb
Definition frame.h:65
const size_t mPixelsCount
Definition frame.h:64
unsigned char u8
Definition stdint.h:131
fl::CRGB CRGB
Definition video.h:18
FASTLED_FORCE_INLINE void * memset(void *s, int c, size_t n) FL_NO_EXCEPT
Definition cstring.h:148

References fl::FL_NO_EXCEPT, fl::memset(), mPixelsCount, and mRgb.

+ Here is the call graph for this function: