FastLED 3.10.6
Loading...
Searching...
No Matches

◆ PSRamAllocate()

void * fl::PSRamAllocate ( fl::size size,
bool zero )

Definition at line 131 of file allocator.cpp.hpp.

131 {
132
133 void *ptr = Alloc(size);
134 if (ptr && zero) {
135 fl::memset(ptr, 0, size);
136 }
137
138#if defined(FASTLED_TESTING)
139 if (malloc_free_hook() && ptr) {
140 MemoryGuard allows_hook;
141 if (allows_hook.enabled()) {
142 malloc_free_hook()->onMalloc(ptr, size);
143 }
144 }
145#endif
146
147 return ptr;
148}
void * memset(void *s, int c, size_t n) FL_NO_EXCEPT

References memset().

Referenced by fl::PSRamAllocator< T >::Alloc(), and fl::anonymous_namespace{memory_resource.cpp.hpp}::PSRamMemoryResource::do_allocate().

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