MCPcopy Create free account
hub / github.com/FastLED/FastLED / clearLedDataInternal

Method clearLedDataInternal

src/cled_controller.cpp.hpp:59–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57}
58
59void CLEDController::clearLedDataInternal(int nLeds) {
60 // On common code that runs on avr, every byte counts.
61 fl::u16 n = nLeds >= 0 ? static_cast<fl::u16>(nLeds) : static_cast<fl::u16>(mLeds.size());
62 if (mLeds.data()) {
63 fl::memset((void*)mLeds.data(), 0, sizeof(CRGB) * n);
64 }
65
66}
67
68void CLEDController::removeFromList(CLEDController* controller) {
69 if (controller == nullptr) {

Callers 1

clearDataMethod · 0.80

Calls 3

memsetFunction · 0.85
sizeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected