BSL v1.1.1 - 39.g9f43410
AMMOS Bundle Protocol Security Library (BSL)
Loading...
Searching...
No Matches
BSLMemory.h File Reference

Memory management function declarations. More...

#include <stddef.h>
+ Include dependency graph for BSLMemory.h:
+ This graph shows which files directly or indirectly include this file:

Functions

void * BSL_malloc (size_t size)
 Dynamic memory allocation.
 
void * BSL_realloc (void *ptr, size_t size)
 Dynamic memory reallocation.
 
void * BSL_calloc (size_t nmemb, size_t size)
 Contiguous dynamic memory allocation.
 
void BSL_free (void *ptr)
 Free dynamically allocated memory.
 

Detailed Description

Memory management function declarations.

Function Documentation

◆ BSL_calloc()

◆ BSL_free()

◆ BSL_malloc()

void * BSL_malloc ( size_t  size)

◆ BSL_realloc()

void * BSL_realloc ( void *  ptr,
size_t  size 
)

Dynamic memory reallocation.

Note
This has the same signature as libc realloc().
Parameters
[in]ptrOptional existing dynamic memory pointer
sizenew allocation size
Returns
valid heap pointer or null if failed.

References BSL_HostDescriptors_t::dyn_mem_desc, HostDescriptorTable, and BSL_DynMemHostDescriptors_t::realloc_cb.

Referenced by BSL_Data_Resize(), and MockBPA_ReallocBTSD().