LibJuno 1.0.1
LibJuno is a lightweight C11 library designed specifically for embedded systems.
Loading...
Searching...
No Matches
Memory allocation API

Data Structures

struct  JUNO_MEMORY_ALLOC_API_TAG
 Vtable for memory allocation operations. More...
 

Functions

static JUNO_STATUS_T JunoMemory_AllocApiVerify (const JUNO_MEMORY_ALLOC_API_T *ptAllocApi)
 Verify that a memory allocator API provides required functions.
 
static JUNO_STATUS_T JunoMemory_AllocVerify (const JUNO_MEMORY_ALLOC_ROOT_T *ptAlloc)
 Verify a memory allocator instance and its dependent pointer API.
 

Detailed Description

A small, freestanding-friendly allocation interface used across LibJuno. Concrete allocators (such as the fixed-size block allocator) implement this vtable. Callers interact only through the root's API pointer.

Core concepts:

Contract summary:

Function Documentation

◆ JunoMemory_AllocApiVerify()

static JUNO_STATUS_T JunoMemory_AllocApiVerify ( const JUNO_MEMORY_ALLOC_API_T ptAllocApi)
inlinestatic

Verify that a memory allocator API provides required functions.

Parameters
ptAllocApiAPI vtable to check.
Returns
JUNO_STATUS_SUCCESS if valid; error otherwise.

◆ JunoMemory_AllocVerify()

static JUNO_STATUS_T JunoMemory_AllocVerify ( const JUNO_MEMORY_ALLOC_ROOT_T ptAlloc)
inlinestatic

Verify a memory allocator instance and its dependent pointer API.

Parameters
ptAllocAllocator root object to verify.
Returns
JUNO_STATUS_SUCCESS if valid; error otherwise.