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

◆ Malloc()

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

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

152 {
153 void* ptr = Alloc(size);
154
155#if defined(FASTLED_TESTING)
156 if (gMallocFreeHook && ptr) {
157 MemoryGuard allows_hook;
158 if (allows_hook.enabled()) {
159 gMallocFreeHook->onMalloc(ptr, size);
160 }
161 }
162#endif
163
164 return ptr;
165}

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::nsgif__get_frame(), fl::third_party::nsgif__record_frame(), and fl::third_party::nsgif_create().

+ Here is the caller graph for this function: