|
HAllocator
A Simple C++ Memory Allocator
|
Classes | |
| class | Block |
| Manages a contiguous memory block with RB-tree based allocation. More... | |
| class | BlocksContainer |
| Manages multiple memory blocks for scalable allocation. More... | |
| class | Halloc |
| Type-safe allocator using Red-Black tree for best-fit allocation. More... | |
| struct | MemoryNode |
| Node structure for both Red-Black tree and doubly-linked list. More... | |
| class | RBTreeDriver |
| Template wrapper for managing a Red-Black tree. More... | |
Functions | |
| std::size_t | get_actual_value (std::size_t value) |
| Helper function to extract actual size from encoded value. | |
|
inline |
Helper function to extract actual size from encoded value.
Removes the color and status bits (bits 62-63) from the encoded value to get the actual size in bytes.
| value | Encoded value with color and status bits |