arduino-audio-tools
Loading...
Searching...
No Matches
AllocatorExt Class Reference

Memory allocateator which uses ps_malloc (on the ESP32) and if this fails it resorts to malloc. More...

#include <CodecOpusOgg.h>

Inheritance diagram for AllocatorExt:
Allocator Allocator

Public Member Functions

virtual void * allocate (size_t size)
 Allocates memory.
virtual void * allocate (size_t size)
 Allocates memory.
template<class T>
T * create ()
template<class T>
T * create ()
template<class T>
T * createArray (int len)
template<class T>
T * createArray (int len)
virtual void free (void *memory)
 frees memory
virtual void free (void *memory)
 frees memory
template<class T>
void remove (T *obj)
 deletes an object
template<class T>
void remove (T *obj)
 deletes an object
template<class T>
void removeArray (T *obj, int len)
template<class T>
void removeArray (T *obj, int len)

Detailed Description

Memory allocateator which uses ps_malloc (on the ESP32) and if this fails it resorts to malloc.

Author
Phil Schatzmann

Member Function Documentation

◆ allocate() [1/2]

virtual void * allocate ( size_t size)
inlinevirtualinherited

Allocates memory.

◆ allocate() [2/2]

virtual void * allocate ( size_t size)
inlinevirtualinherited

Allocates memory.

◆ create() [1/2]

template<class T>
T * create ( )
inlineinherited

◆ create() [2/2]

template<class T>
T * create ( )
inlineinherited

◆ createArray() [1/2]

template<class T>
T * createArray ( int len)
inlineinherited

◆ createArray() [2/2]

template<class T>
T * createArray ( int len)
inlineinherited

◆ free() [1/2]

virtual void free ( void * memory)
inlinevirtualinherited

frees memory

Reimplemented in AllocatorZephyr, AllocatorZephyr, and AllocatorZephyr.

◆ free() [2/2]

virtual void free ( void * memory)
inlinevirtualinherited

frees memory

Reimplemented in AllocatorZephyr, AllocatorZephyr, and AllocatorZephyr.

◆ remove() [1/2]

template<class T>
void remove ( T * obj)
inlineinherited

deletes an object

◆ remove() [2/2]

template<class T>
void remove ( T * obj)
inlineinherited

deletes an object

◆ removeArray() [1/2]

template<class T>
void removeArray ( T * obj,
int len )
inlineinherited

◆ removeArray() [2/2]

template<class T>
void removeArray ( T * obj,
int len )
inlineinherited

The documentation for this class was generated from the following files: