libmetal
Loading...
Searching...
No Matches
Functions
Allocation Interfaces

Functions

static void * metal_allocate_memory (unsigned int size)
 allocate requested memory size return a pointer to the allocated memory
 
static void metal_free_memory (void *ptr)
 free the memory previously allocated
 

Detailed Description

Function Documentation

◆ metal_allocate_memory()

static void * metal_allocate_memory ( unsigned int size)
inlinestatic

allocate requested memory size return a pointer to the allocated memory

Parameters
[in]sizesize in byte of requested memory
Returns
memory pointer, or 0 if it failed to allocate

◆ metal_free_memory()

static void metal_free_memory ( void * ptr)
inlinestatic

free the memory previously allocated

Parameters
[in]ptrpointer to memory