arduino-audio-tools
Loading...
Searching...
No Matches
Public Member Functions | List of all members
AllocatorZephyr Class Reference

Zephyr allocator using the kernel heap (k_malloc / k_free). This is the standard allocator for Zephyr builds. More...

#include <Allocator.h>

Inheritance diagram for AllocatorZephyr:
Allocator

Public Member Functions

virtual voidallocate (size_t size)
 Allocates memory.
 
template<class T >
Tcreate ()
 
template<class T >
TcreateArray (int len)
 
voiddo_allocate (size_t size) override
 
void free (void *memory) override
 frees memory
 
template<class T >
void remove (T *obj)
 deletes an object
 
template<class T >
void removeArray (T *obj, int len)
 

Detailed Description

Zephyr allocator using the kernel heap (k_malloc / k_free). This is the standard allocator for Zephyr builds.

Member Function Documentation

◆ allocate()

virtual void * allocate ( size_t  size)
inlinevirtualinherited

Allocates memory.

◆ create()

template<class T >
T * create ( )
inlineinherited

◆ createArray()

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

◆ do_allocate()

void * do_allocate ( size_t  size)
inlineoverridevirtual

Reimplemented from Allocator.

◆ free()

void free ( void memory)
inlineoverridevirtual

frees memory

Reimplemented from Allocator.

◆ remove()

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

deletes an object

◆ removeArray()

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

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