MCPcopy Create free account
hub / github.com/FastLED/FastLED / ~LUT

Method ~LUT

src/fl/math/lut.h:44–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42 // In this version the data is passed in but not managed by this object.
43 LUT(u32 length, T *data) FL_NOEXCEPT : length(length) { this->data = data; }
44 ~LUT() FL_NOEXCEPT {
45 PSRamAllocator<T>::Free(mDataHandle.release());
46 data = mDataHandle.get();
47 }
48
49 const T &operator[](u32 index) const FL_NOEXCEPT { return data[index]; }
50

Callers

nothing calls this directly

Calls 3

FreeFunction · 0.85
releaseMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected