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

Method Alloc

src/fl/stl/allocator.h:119–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117template <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) {

Callers

nothing calls this directly

Calls 1

PSRamAllocateFunction · 0.85

Tested by

no test coverage detected