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

◆ PSRamAllocate()

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

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

119 {
120
121 void *ptr = Alloc(size);
122 if (ptr && zero) {
123 fl::memset(ptr, 0, size);
124 }
125
126#if defined(FASTLED_TESTING)
127 if (gMallocFreeHook && ptr) {
128 MemoryGuard allows_hook;
129 if (allows_hook.enabled()) {
130 gMallocFreeHook->onMalloc(ptr, size);
131 }
132 }
133#endif
134
135 return ptr;
136}
void * memset(void *s, int c, size_t n) FL_NOEXCEPT

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: