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

◆ Malloc()

void * fl::Malloc ( fl::size size)

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

164 {
165 void* ptr = Alloc(size);
166
167#if defined(FASTLED_TESTING)
168 if (malloc_free_hook() && ptr) {
169 MemoryGuard allows_hook;
170 if (allows_hook.enabled()) {
171 malloc_free_hook()->onMalloc(ptr, size);
172 }
173 }
174#endif
175
176 return ptr;
177}

Referenced by fl::allocator< U >::allocate(), fl::allocator_realloc< U >::allocate(), fl::SlabAllocator< T, SLAB_SIZE >::allocate(), fl::SlabAllocator< T, SLAB_SIZE >::createSlab(), fl::anonymous_namespace{memory_resource.cpp.hpp}::DefaultMemoryResource::do_allocate(), fl::third_party::lzw_context_create(), fl::third_party::Mp3MemoryAllocate(), fl::third_party::nsgif__get_frame(), fl::third_party::nsgif__record_frame(), and fl::third_party::nsgif_create().

+ Here is the caller graph for this function: