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

ESP32 Memory allocateator which forces the allocation with the defined attributes (default MALLOC_CAP_8BIT | MALLOC_CAP_INTERNAL). More...

#include <CodecOpusOgg.h>

Inheritance diagram for AllocatorESP32:
Allocator Allocator

Public Member Functions

 AllocatorESP32 (int caps=MALLOC_CAP_8BIT|MALLOC_CAP_INTERNAL)
 AllocatorESP32 (int caps=MALLOC_CAP_8BIT|MALLOC_CAP_INTERNAL)
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)
void * do_allocate (size_t size)
void * do_allocate (size_t size)
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)

Protected Attributes

int caps = 0

Detailed Description

ESP32 Memory allocateator which forces the allocation with the defined attributes (default MALLOC_CAP_8BIT | MALLOC_CAP_INTERNAL).

Author
Phil Schatzmann

Constructor & Destructor Documentation

◆ AllocatorESP32() [1/2]

AllocatorESP32 ( int caps = MALLOC_CAP_8BIT | MALLOC_CAP_INTERNAL)
inline

◆ AllocatorESP32() [2/2]

AllocatorESP32 ( int caps = MALLOC_CAP_8BIT | MALLOC_CAP_INTERNAL)
inline

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

◆ do_allocate() [1/2]

void * do_allocate ( size_t size)
inlinevirtual

Reimplemented from Allocator.

◆ do_allocate() [2/2]

void * do_allocate ( size_t size)
inlinevirtual

Reimplemented from Allocator.

◆ 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

Member Data Documentation

◆ caps

int caps = 0
protected

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