LibJuno 0.1.0
LibJuno is a lightweight C99 library designed specifically for embedded systems.
|
Structure representing a block-based memory allocator. Manages a fixed-size memory area along with associated free memory tracking. More...
#include <memory_types.h>
Data Fields | |
JUNO_MEMORY_ALLOC_HDR_T | tHdr |
Header indicating the allocation type. | |
uint8_t * | pvMemory |
Pointer to the allocated memory area. | |
JUNO_MEMORY_BLOCK_METADATA_T * | ptMetadata |
Array of metadata for each block. | |
size_t | zTypeSize |
Size of each block element. | |
size_t | zLength |
Total number of blocks available. | |
size_t | zUsed |
Current count of allocated blocks. | |
size_t | zFreed |
Current count of freed blocks in the free stack. | |
DECLARE_FAILURE_HANDLER | |
Macro to declare a failure handler. | |
Structure representing a block-based memory allocator. Manages a fixed-size memory area along with associated free memory tracking.
JUNO_MEMORY_BLOCK_TAG::DECLARE_FAILURE_HANDLER |
Macro to declare a failure handler.
JUNO_MEMORY_BLOCK_METADATA_T* JUNO_MEMORY_BLOCK_TAG::ptMetadata |
Array of metadata for each block.
uint8_t* JUNO_MEMORY_BLOCK_TAG::pvMemory |
Pointer to the allocated memory area.
JUNO_MEMORY_ALLOC_HDR_T JUNO_MEMORY_BLOCK_TAG::tHdr |
Header indicating the allocation type.
size_t JUNO_MEMORY_BLOCK_TAG::zFreed |
Current count of freed blocks in the free stack.
size_t JUNO_MEMORY_BLOCK_TAG::zLength |
Total number of blocks available.
size_t JUNO_MEMORY_BLOCK_TAG::zTypeSize |
Size of each block element.
size_t JUNO_MEMORY_BLOCK_TAG::zUsed |
Current count of allocated blocks.