FastLED 3.9.15
Loading...
Searching...
No Matches

◆ Alloc()

template<typename T>
static T * fl::PSRamAllocator< T >::Alloc ( fl::size n)
inlinestatic

Definition at line 119 of file allocator.h.

119 {
120 void *ptr = PSRamAllocate(sizeof(T) * n, true);
121 return fl::bit_cast_ptr<T>(ptr);
122 }
To * bit_cast_ptr(void *storage) FL_NOEXCEPT
Definition bit_cast.h:60
void * PSRamAllocate(fl::size size, bool zero)

References fl::bit_cast_ptr(), FL_NOEXCEPT, and fl::PSRamAllocate().

Referenced by fl::LUT< u16 >::LUT(), fl::allocator_psram< U >::allocate(), and fl::RectangularDrawBuffer::onQueuingDone().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: