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

◆ setup_malloc()

static void * fl::third_party::vorbis::setup_malloc ( vorb * f,
int32_t sz )
static

Definition at line 684 of file stb_vorbis.cpp.hpp.

685{
686 sz = (sz+7) & ~7; // round up to nearest 8 for alignment of future allocs.
687 f->setup_memory_required += sz;
688 if (f->alloc.alloc_buffer) {
689 void *p = (char *) f->alloc.alloc_buffer + f->setup_offset;
690 if (f->setup_offset + sz > f->temp_offset) return nullptr;
691 f->setup_offset += sz;
692 return p;
693 }
694 return sz ? fl::malloc(sz) : nullptr;
695}
void * malloc(size_t size)
Definition malloc.cpp.hpp:9

References FL_NOEXCEPT, and fl::malloc().

Referenced by init_blocksize(), start_decoder(), and vorbis_alloc().

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