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