BSL v1.0.0 - 16.g9d98179
AMMOS Bundle Protocol Security Library (BSL)
Loading...
Searching...
No Matches
BSL_DynMemHostDescriptors_t Struct Reference

Dynamic memory callback descriptors used by Dynamic BPA descriptor. More...

#include <BPSecLib_Public.h>

+ Collaboration diagram for BSL_DynMemHostDescriptors_t:

Data Fields

void *(* malloc_cb )(size_t size)
 Dynamic memory allocation callback.
 
void *(* realloc_cb )(void *ptr, size_t size)
 Dynamic memory re-allocation callback.
 
void *(* calloc_cb )(size_t nmemb, size_t size)
 Contiguous dynamic memory allocation callback.
 
void(* free_cb )(void *ptr)
 Free dynamic memory allocation callback.
 

Detailed Description

Dynamic memory callback descriptors used by Dynamic BPA descriptor.

These are meant to be used as part of BSL_HostDescriptors_t for registering host callbacks.

Field Documentation

◆ calloc_cb

void *(* BSL_DynMemHostDescriptors_t::calloc_cb) (size_t nmemb, size_t size)

Contiguous dynamic memory allocation callback.

Returns
valid 0-initialized heap pointer on success, NULL on failure.

Referenced by BSL_calloc(), and BSL_HostDescriptors_Set().

◆ free_cb

void(* BSL_DynMemHostDescriptors_t::free_cb) (void *ptr)

Free dynamic memory allocation callback.

Referenced by BSL_free(), and BSL_HostDescriptors_Set().

◆ malloc_cb

void *(* BSL_DynMemHostDescriptors_t::malloc_cb) (size_t size)

Dynamic memory allocation callback.

Returns
valid heap pointer on success, NULL on failure.

Referenced by BSL_HostDescriptors_Set(), BSL_malloc(), and suiteSetUp().

◆ realloc_cb

void *(* BSL_DynMemHostDescriptors_t::realloc_cb) (void *ptr, size_t size)

Dynamic memory re-allocation callback.

Returns
valid heap pointer on success, NULL on failure.

Referenced by BSL_HostDescriptors_Set(), and BSL_realloc().


The documentation for this struct was generated from the following file: