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

◆ setup_temp_malloc()

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

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

704{
705 sz = (sz+7) & ~7; // round up to nearest 8 for alignment of future allocs.
706 if (f->alloc.alloc_buffer) {
707 if (f->temp_offset - sz < f->setup_offset) return nullptr;
708 f->temp_offset -= sz;
709 return (char *) f->alloc.alloc_buffer + f->temp_offset;
710 }
711 return fl::malloc(sz);
712}
void * malloc(size_t size)
Definition malloc.cpp.hpp:9

References FL_NOEXCEPT, and fl::malloc().

Referenced by fl_stbv_temp_alloc_impl(), and start_decoder().

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