Memory allocateator which uses ps_malloc (on the ESP32) and if this fails it resorts to malloc.
More...
#include <Allocator.h>
|
| virtual void * | allocate (size_t size) |
| | Allocates memory.
|
| |
| template<class T > |
| T * | create () |
| |
| template<class T > |
| T * | createArray (int len) |
| |
| virtual void | free (void *memory) |
| | frees memory
|
| |
| template<class T > |
| void | remove (T *obj) |
| | deletes an object
|
| |
| template<class T > |
| void | removeArray (T *obj, int len) |
| |
Memory allocateator which uses ps_malloc (on the ESP32) and if this fails it resorts to malloc.
- Author
- Phil Schatzmann
- Copyright
- GPLv3
◆ allocate()
| virtual void * allocate |
( |
size_t |
size | ) |
|
|
inlinevirtualinherited |
◆ create()
◆ createArray()
template<class T >
| T * createArray |
( |
int |
len | ) |
|
|
inlineinherited |
◆ free()
| virtual void free |
( |
void * |
memory | ) |
|
|
inlinevirtualinherited |
◆ remove()
◆ removeArray()
template<class T >
| void removeArray |
( |
T * |
obj, |
|
|
int |
len |
|
) |
| |
|
inlineinherited |
The documentation for this class was generated from the following file:
- src/AudioTools/CoreAudio/AudioBasic/Collections/Allocator.h