Address base() const
Get memory base address for allocations.
virtual Size size() const
Get memory size.
Size alignment() const
Get memory alignment in bytes for allocations.
Result
Allocation results.
Address aligned(const Address addr, const Size boundary) const
Align memory address.
BubbleAllocator(const Range range)
Class constructor.
virtual Size available() const
Get memory available.
virtual Result release(const Address addr)
Release memory.
virtual Result allocate(Range &args)
Allocate memory.
Size m_allocated
Number of bytes allocated.
unsigned long Address
A memory address.
unsigned int Size
Any sane size indicator cannot go negative.
Describes a range of memory.
Address address
Starting address of the memory range.
Size size
Amount of memory in bytes.