ezEngine  Milestone 7
ezMemoryPolicies::ezAlignedAllocation< T > Class Template Reference

Allocation policy to support custom alignment per allocation. More...

#include <AlignedAllocation.h>

Public Member Functions

 ezAlignedAllocation (ezAllocatorBase *pParent)
 
void * Allocate (size_t uiSize, size_t uiAlign)
 
void Deallocate (void *ptr)
 
size_t AllocatedSize (const void *ptr)
 
size_t UsedMemorySize (const void *ptr)
 
EZ_FORCE_INLINE ezAllocatorBaseGetParent () const
 

Private Types

enum  { MetadataSize = sizeof(ezUInt32) }
 

Private Member Functions

ezUInt32 * GetMetadataPtr (void *pAlignedMemory)
 
ezUInt32 GetMetadata (const void *pAlignedMemory)
 
EZ_FORCE_INLINE ezUInt32 PackMetadata (ezUInt32 uiOffset, ezUInt32 uiAlignment)
 
EZ_FORCE_INLINE ezUInt32 UnpackOffset (ezUInt32 uiMetadata)
 
EZ_FORCE_INLINE ezUInt32 UnpackAlignment (ezUInt32 uiMetadata)
 

Private Attributes

m_allocator
 

Detailed Description

template<typename T>
class ezMemoryPolicies::ezAlignedAllocation< T >

Allocation policy to support custom alignment per allocation.

See Also
ezAllocator

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