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

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

#include <CodecOpusOgg.h>

Inheritance diagram for AllocatorZephyr:
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)
void * do_allocate (size_t size) override
void * do_allocate (size_t size) override
void free (void *memory) override
 frees memory
void free (void *memory) override
 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

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

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)
inlineoverridevirtual

Reimplemented from Allocator.

◆ do_allocate() [2/2]

void * do_allocate ( size_t size)
inlineoverridevirtual

Reimplemented from Allocator.

◆ free() [1/2]

void free ( void * memory)
inlineoverridevirtual

frees memory

Reimplemented from Allocator.

◆ free() [2/2]

void free ( void * memory)
inlineoverridevirtual

frees memory

Reimplemented from Allocator.

◆ 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: