esp32-audio-player 0.1.0
Audio player engine for ESP32
Loading...
Searching...
No Matches
core_allocator_t Struct Reference

Memory. More...

#include <base.h>

Data Fields

void *(* alloc_large )(size_t size)
 big buffers: decoders, readahead, caches (PSRAM)
 
void *(* alloc_fast )(size_t size)
 small hot buffers (internal RAM)
 
void *(* realloc_large )(void *ptr, size_t size)
 grows memory from either allocator
 
void(* free )(void *ptr)
 frees memory from either allocator
 

Detailed Description

Memory.

On ESP32 the platform routes "large" allocations to PSRAM and "fast" allocations to internal RAM. On the host both map to malloc.

Field Documentation

◆ alloc_fast

void *(* core_allocator_t::alloc_fast) (size_t size)

small hot buffers (internal RAM)

◆ alloc_large

void *(* core_allocator_t::alloc_large) (size_t size)

big buffers: decoders, readahead, caches (PSRAM)

◆ free

void(* core_allocator_t::free) (void *ptr)

frees memory from either allocator

◆ realloc_large

void *(* core_allocator_t::realloc_large) (void *ptr, size_t size)

grows memory from either allocator


The documentation for this struct was generated from the following file: