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

◆ PSRamAllocate()

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

Definition at line 77 of file allocator.cpp.

77 {
78
79 void *ptr = Alloc(size);
80 if (ptr && zero) {
81 memset(ptr, 0, size);
82 }
83
84#if defined(FASTLED_TESTING)
85 if (gMallocFreeHook && ptr) {
86 MemoryGuard allows_hook;
87 if (allows_hook.enabled()) {
88 gMallocFreeHook->onMalloc(ptr, size);
89 }
90 }
91#endif
92
93 return ptr;
94}

Referenced by fl::PSRamAllocator< T >::Alloc().

+ Here is the caller graph for this function: