Castor3D 0.16.0
Multiplatform 3D engine
Static Public Member Functions | List of all members
castor::AlignedMemoryAllocator< Align > Class Template Reference

Memory allocator. More...

#include <AlignedMemoryAllocator.hpp>

Static Public Member Functions

static uint8_t * allocate (size_t size)
 Allocates memory.
 
static void deallocate (uint8_t *space) noexcept
 Frees the given memory.
 

Detailed Description

template<size_t Align>
class castor::AlignedMemoryAllocator< Align >

Memory allocator.

Remarks
Allocates aligned memory.

Member Function Documentation

◆ allocate()

template<size_t Align>
static uint8_t * castor::AlignedMemoryAllocator< Align >::allocate ( size_t size)
inlinestatic

Allocates memory.

Returns
The allocated space memory address.

References castor::alignedAlloc().

Here is the call graph for this function:

◆ deallocate()

template<size_t Align>
static void castor::AlignedMemoryAllocator< Align >::deallocate ( uint8_t * space)
inlinestaticnoexcept

Frees the given memory.

Parameters
[in]spaceThe memory to free.

References castor::alignedFree().

Here is the call graph for this function:

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