Skip to main content
Header: ar_osal/api/ar_osal_heap.h

Structures

ar_heap_info_t

Heap memory info structure. Members
ar_heap_align_bytes
ar_heap_pool_type
heap memory byte alignment required.
ar_heap_id
pool type to allocate heap memory.
uint32_t
head id to allocate heap memory.

Functions

ar_heap_init

ar_heap_init initialize heap memory interface.
Returns 0 Success Nonzero Failure

ar_heap_deinit

ar_heap_deinit.
Returns 0 Success Nonzero Failure

ar_heap_malloc

Allocates heap memory.
Parameters
size_t
number of bytes to allocate heap memory.
par_heap_info
pointer of type: ar_heap_info.
Returns Nonzero Success: pointer to the allocated heap memory NULL Failure

ar_heap_calloc

Allocates heap memory and initialize with 0.
Parameters
size_t
number of bytes to allocate heap memory.
par_heap_info
pointer of type: ar_heap_info.
Returns Nonzero Success: pointer to the allocated heap memory NULL Failure

ar_heap_free

Frees heap memory.
Parameters
void *
pointer to heap memory obtained from ar_heap_alloc().
Returns 0 Success Nonzero Failure

Type Definitions

ar_heap_align_bytes

enum for heap memory byte alignments

ar_heap_id

enum for heap memory ids

ar_heap_pool_type

enum for heap memory types

ar_heap_info

Heap memory info structure.

par_heap_info

Enumerations

_ar_heap_align_bytes

enum for heap memory byte alignments

Values

_ar_heap_id

enum for heap memory ids

Values

_ar_heap_pool_type

enum for heap memory types

Values

Macros

AR_HEAP_TAG_DEFAULT

default heap memory tag ASCII characters: ‘LASO’->‘OSAL’