| 117 | template <typename T> class PSRamAllocator { |
| 118 | public: |
| 119 | static T *Alloc(fl::size n) FL_NOEXCEPT { |
| 120 | void *ptr = PSRamAllocate(sizeof(T) * n, true); |
| 121 | return fl::bit_cast_ptr<T>(ptr); |
| 122 | } |
| 123 | |
| 124 | static void Free(T *p) FL_NOEXCEPT { |
| 125 | if (p == nullptr) { |
nothing calls this directly
no test coverage detected