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

Memory allocateator which uses malloc. More...

#include <CodecOpusOgg.h>

Inheritance diagram for Allocator:
AllocatorExt AllocatorZephyr AllocatorESP32 AllocatorESP32 AllocatorExt AllocatorExt AllocatorPSRAM AllocatorPSRAM AllocatorZephyr AllocatorZephyr

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)

Protected Member Functions

virtual void * do_allocate (size_t size)
virtual void * do_allocate (size_t size)

Detailed Description

Memory allocateator which uses malloc.

Author
Phil Schatzmann

Member Function Documentation

◆ allocate() [1/2]

virtual void * allocate ( size_t size)
inlinevirtual

Allocates memory.

◆ allocate() [2/2]

virtual void * allocate ( size_t size)
inlinevirtual

Allocates memory.

◆ create() [1/2]

template<class T>
T * create ( )
inline

◆ create() [2/2]

template<class T>
T * create ( )
inline

◆ createArray() [1/2]

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

◆ createArray() [2/2]

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

◆ do_allocate() [1/2]

virtual void * do_allocate ( size_t size)
inlineprotectedvirtual

◆ do_allocate() [2/2]

virtual void * do_allocate ( size_t size)
inlineprotectedvirtual

◆ free() [1/2]

virtual void free ( void * memory)
inlinevirtual

frees memory

Reimplemented in AllocatorZephyr, AllocatorZephyr, and AllocatorZephyr.

◆ free() [2/2]

virtual void free ( void * memory)
inlinevirtual

frees memory

Reimplemented in AllocatorZephyr, AllocatorZephyr, and AllocatorZephyr.

◆ remove() [1/2]

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

deletes an object

◆ remove() [2/2]

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

deletes an object

◆ removeArray() [1/2]

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

◆ removeArray() [2/2]

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

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