CMSIS-DSP  
CMSIS DSP Software Library
 
Loading...
Searching...
No Matches
Vector / matrix buffer allocator

Data Structures

struct  malloc_allocator< L >
 Default memory allocator for vectors and matrixes. More...
 

Description

Allocators for allocating vector / matrix buffers


Data Structure Documentation

◆ arm_cmsis_dsp::malloc_allocator

struct arm_cmsis_dsp::malloc_allocator
template<int L>
struct arm_cmsis_dsp::malloc_allocator< L >

Default memory allocator for vectors and matrixes.

Template Parameters
LSize known at build time in bytes

Static Public Member Functions

static char * allocate (vector_length_t sz) noexcept
 Allocate a buffer with size known at runtime.
 
static char * allocate () noexcept
 Allocate a buffer with size known at build time.
 
static void destroy (char *ptr) noexcept
 Destroys the given pointer.
 

Member Function Documentation

◆ allocate() [1/2]

static char * allocate ( )
inlinestaticnoexcept

Allocate a buffer with size known at build time.

Returns
Pointer to the buffer

◆ allocate() [2/2]

static char * allocate ( vector_length_t  sz)
inlinestaticnoexcept

Allocate a buffer with size known at runtime.

Parameters
[in]szThe size
Returns
Pointer to the buffer

◆ destroy()

static void destroy ( char *  ptr)
inlinestaticnoexcept

Destroys the given pointer.

Parameters
ptrThe pointer