Class MonotonicAllocator

Inheritance Relationships

Base Type

Class Documentation

class MonotonicAllocator : public Azura::Memory::Allocator

Public Functions

MonotonicAllocator(MemoryBuffer &buffer, U32 size)
~MonotonicAllocator()
MonotonicAllocator(const MonotonicAllocator &other)
MonotonicAllocator &operator=(const MonotonicAllocator &other)
MonotonicAllocator(MonotonicAllocator &&other)
MonotonicAllocator &operator=(MonotonicAllocator &&other)
void Reset()

Reset the Memory for fresh new use.

Protected Functions

void *Allocate(U32 size, U32 alignment)

Allocates a set number of bytes.

Return
Pointer to Memory
Parameters
  • size: Number of Bytes to Allocate
  • alignment: Alignment for the data

void Deallocate(void *address)

Currently a No Op.

Parameters
  • address: Address to Deallocate