Describes a memory allocation from a MemSpace. More...
#include <memspace.h>

Public Member Functions | |
| bool | isValid () const |
| Returns true if this allocation is valid. | |
Public Attributes | |
| void * | ptr = nullptr |
| Pointer to the allocated memory. | |
| size_t | size = 0 |
| Size of the allocation in bytes. | |
| size_t | align = 0 |
| Alignment of the allocation in bytes. | |
| MemSpace | ms |
| The memory space this was allocated from. | |
| void * | priv = nullptr |
| Private data for the allocator implementation. | |
Describes a memory allocation from a MemSpace.
Returned by MemSpace::alloc() and passed to MemSpace::release(). Contains the allocation pointer, size, alignment, the originating MemSpace, and an opaque private pointer for allocator-specific data.