libpromeki main
PROfessional MEdia toolKIt
 
Loading...
Searching...
No Matches
MemAllocation Struct Reference

Describes a memory allocation from a MemSpace. More...

#include <memspace.h>

Collaboration diagram for MemAllocation:

Public Member Functions

bool isValid () const
 Returns true if this allocation is valid.
 

Public Attributes

voidptr = 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.
 
voidpriv = nullptr
 Private data for the allocator implementation.
 

Detailed Description

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.


The documentation for this struct was generated from the following file: