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

◆ Mp3MemoryAllocate()

FL_NO_INLINE void * fl::third_party::Mp3MemoryAllocate ( fl::size bytes,
Mp3MemoryTag tag )

Definition at line 80 of file mp3.cpp.hpp.

81 {
82#if defined(FASTLED_TESTING)
83 if (mp3MemoryHook() && !mp3MemoryHook()->allowAllocate(bytes, tag)) {
84 return nullptr;
85 }
86#endif
87 void* ptr = fl::Malloc(bytes);
88#if defined(FASTLED_TESTING)
89 if (ptr && mp3MemoryHook()) {
90 mp3MemoryHook()->onAllocate(ptr, bytes, tag);
91 }
92#else
93 FL_UNUSED(tag);
94#endif
95 return ptr;
96}
#define FL_UNUSED(x)
void * Malloc(fl::size size)

References fl::FL_NO_EXCEPT, FL_NO_INLINE, FL_UNUSED, and fl::Malloc().

Referenced by Mp3MemoryAllocateArray().

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