LibJuno 0.22.0
LibJuno is a lightweight C99 library designed specifically for embedded systems.
|
Go to the source code of this file.
Functions | |
JUNO_MODULE_DERIVE_DECLARE (JUNO_MEMORY_ALLOC_BLOCK_T) | |
JUNO_MODULE_DERIVE (JUNO_MEMORY_ALLOC_BLOCK_T, JUNO_MEMORY_ALLOC_BASE_T, uint8_t *pvMemory;JUNO_MEMORY_BLOCK_METADATA_T *ptMetadata;size_t zTypeSize;size_t zLength;size_t zUsed;size_t zFreed;) | |
JUNO_STATUS_T | JunoMemory_BlockApi (JUNO_MEMORY_ALLOC_T *ptJunoMemory, void *pvMemory, JUNO_MEMORY_BLOCK_METADATA_T *ptMetadata, size_t zTypeSize, size_t zLength, JUNO_FAILURE_HANDLER_T pfcnFailureHandler, JUNO_USER_DATA_T *pvFailureUserData) |
Initializes a memory block for allocation. Sets up a memory block with an associated free stack for managing fixed-size allocations. | |
JUNO_MODULE_DERIVE | ( | JUNO_MEMORY_ALLOC_BLOCK_T | , |
JUNO_MEMORY_ALLOC_BASE_T | , | ||
uint8_t *pvMemory;JUNO_MEMORY_BLOCK_METADATA_T *ptMetadata;size_t zTypeSize;size_t zLength;size_t zUsed;size_t zFreed; | |||
) |
JUNO_MODULE_DERIVE_DECLARE | ( | JUNO_MEMORY_ALLOC_BLOCK_T | ) |
This API has been generated by LibJuno: https://www.robinonsay.com/libjuno/ This header contains the juno_memory block blockementation
JUNO_STATUS_T JunoMemory_BlockApi | ( | JUNO_MEMORY_ALLOC_T * | ptJunoMemory, |
void * | pvMemory, | ||
JUNO_MEMORY_BLOCK_METADATA_T * | ptMetadata, | ||
size_t | zTypeSize, | ||
size_t | zLength, | ||
JUNO_FAILURE_HANDLER_T | pfcnFailureHandler, | ||
JUNO_USER_DATA_T * | pvFailureUserData | ||
) |
Initializes a memory block for allocation. Sets up a memory block with an associated free stack for managing fixed-size allocations.
ptMemBlk | Pointer to the memory block structure to initialize. |
pvMemory | Pointer to the contiguous memory used for allocations. |
pvMetadata | Pointer to an array for block metadata tracking. |
zTypeSize | Size in bytes of each element in the block. |
zLength | Total number of possible allocations. |
pfcnFailureHandler | Callback function to handle failures. |
pvUserData | User data passed to the failure handler. |