| 35 | template <typename T> class LUT { |
| 36 | public: |
| 37 | LUT(u32 length) FL_NOEXCEPT : length(length) { |
| 38 | T *ptr = PSRamAllocator<T>::Alloc(length); |
| 39 | mDataHandle.reset(ptr); |
| 40 | data = ptr; |
| 41 | } |
| 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 { |