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

Function getStripPixelData

src/platforms/wasm/js_bindings.cpp.hpp:412–424  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

410 * Module._free(sizePtr);
411 */
412extern "C" EMSCRIPTEN_KEEPALIVE
413u8* getStripPixelData(int stripIndex, int* outSize) {
414 ActiveStripData& instance = ActiveStripData::Instance();
415 ActiveStripData::StripDataMap::mapped_type stripData;
416
417 if (instance.getData().get(stripIndex, &stripData)) {
418 if (outSize) *outSize = static_cast<int>(stripData.size());
419 return const_cast<u8*>(stripData.data());
420 }
421
422 if (outSize) *outSize = 0;
423 return nullptr;
424}
425
426} // namespace fl
427

Callers

nothing calls this directly

Calls 4

getDataMethod · 0.80
getMethod · 0.45
sizeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected