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

Method getDriverInfos

src/fl/channels/manager.cpp.hpp:339–354  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

337}
338
339fl::span<const DriverInfo> ChannelManager::getDriverInfos() const {
340 // Update cache with current driver state
341 mCachedDriverInfo.clear();
342 mCachedDriverInfo.reserve(mDrivers.size());
343
344 for (const auto& entry : mDrivers) {
345 // fl::string copy is cheap (shared pointer internally, no heap allocation)
346 mCachedDriverInfo.push_back({
347 entry.name,
348 entry.priority,
349 entry.enabled
350 });
351 }
352
353 return mCachedDriverInfo;
354}
355
356fl::shared_ptr<IChannelDriver> ChannelManager::findDriverByName(const fl::string& name) const {
357 if (name.empty()) {

Callers 2

validateExpectedEnginesFunction · 0.45
printEngineValidationFunction · 0.45

Calls 4

clearMethod · 0.45
reserveMethod · 0.45
sizeMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected