CMSIS-DSP  
CMSIS DSP Software Library
 
Loading...
Searching...
No Matches
Memory buffer allocator

Data Structures

struct  default_user_allocator_malloc_free
 Malloc memory allocator. More...
 
struct  user_allocator_aligned_malloc
 Memory allocation for aligned buffers. More...
 

Functions

void * aligned_malloc (std::size_t alignment, std::size_t size)
 Aligned memory allocation.
 
void aligned_free (void *ptr)
 Free an aligned buffer.
 

Description

Allocators for allocating memory buffers


Data Structure Documentation

◆ arm_cmsis_dsp::default_user_allocator_malloc_free

struct arm_cmsis_dsp::default_user_allocator_malloc_free

Malloc memory allocator.

Static Public Member Functions

static char * malloc (const std::size_t bytes)
 Allocate a buffer.
 
static void free (char *const block)
 Free a buffer.
 

Member Function Documentation

◆ free()

static void free ( char *const  block)
inlinestatic

Free a buffer.

Parameters
blockThe buffer to free

◆ malloc()

static char * malloc ( const std::size_t  bytes)
inlinestatic

Allocate a buffer.

Parameters
[in]bytesThe bytes
Returns
A pointer to the allocated buffer

◆ arm_cmsis_dsp::user_allocator_aligned_malloc

struct arm_cmsis_dsp::user_allocator_aligned_malloc

Memory allocation for aligned buffers.

Static Public Member Functions

static char * malloc (const size_type bytes)
 Allocate a new buffer.
 
static void free (char *const block)
 Free a buffer.
 

Member Function Documentation

◆ free()

static void free ( char *const  block)
inlinestatic

Free a buffer.

Parameters
blockPointer to the buffer

◆ malloc()

static char * malloc ( const size_type  bytes)
inlinestatic

Allocate a new buffer.

Parameters
[in]bytesThe bytes
Returns
Pointer to the new buffer

Function Documentation

◆ aligned_free()

void aligned_free ( void *  ptr)
inline

Free an aligned buffer.

Parameters
ptrThe pointer

◆ aligned_malloc()

void * aligned_malloc ( std::size_t  alignment,
std::size_t  size 
)
inline

Aligned memory allocation.

Parameters
[in]alignmentThe alignment of the buffer
[in]sizeThe size of the buffer
Returns
A pointer to the new buffer