![]() |
|
Uniot Core
|
| 0.8.1 |
Memory manager for a global static buffer with dynamic allocation capabilities. More...
Classes | |
| class | uniot::GlobalBufferMemoryManager |
Functions | |
| size_t | uniot::alignSize (size_t size) |
| Align a size value to a 4-byte boundary. | |
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.
| 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.
| size | Size to align |
| size_t | Aligned size (rounded up to nearest 4-byte boundary) |