Uniot Core
0.8.1
Loading...
Searching...
No Matches
Memory Manager

Memory manager for a global static buffer with dynamic allocation capabilities. More...

Collaboration diagram for Memory Manager:

Classes

class  uniot::GlobalBufferMemoryManager
 

Functions

size_t uniot::alignSize (size_t size)
 Align a size value to a 4-byte boundary.
 

Detailed Description

Memory manager for a global static buffer with dynamic allocation capabilities.

This class implements a simple memory manager that operates on a static buffer. It provides dynamic memory allocation within the buffer, using a free-list approach to track available memory blocks. The memory manager supports allocation, deallocation, and reallocation operations, making it useful for environments with limited heap availability or when more controlled memory management is required.

Function Documentation

◆ alignSize()

size_t uniot::alignSize ( size_t size)

Align a size value to a 4-byte boundary.

Ensures memory allocations maintain proper alignment for most architectures.

Parameters
sizeSize to align
Return values
size_tAligned size (rounded up to nearest 4-byte boundary)