Class to provide aligned memory allocate functionality. More...
#include <OgreAlignedAllocator.h>
Static Public Member Functions | |
static void * | allocate (size_t size, size_t alignment) |
Allocate memory with given alignment. | |
static void * | allocate (size_t size) |
Allocate memory with default platform dependent alignment. | |
static void | deallocate (void *p) |
Deallocate memory that allocated by this class. |
Class to provide aligned memory allocate functionality.
Definition at line 63 of file OgreAlignedAllocator.h.
static void* Ogre::AlignedMemory::allocate | ( | size_t | size | ) | [static] |
Allocate memory with default platform dependent alignment.
size | The size of memory need to allocate. |
static void* Ogre::AlignedMemory::allocate | ( | size_t | size, | |
size_t | alignment | |||
) | [static] |
Allocate memory with given alignment.
size | The size of memory need to allocate. | |
alignment | The alignment of result pointer, must be power of two and in range [1, 128]. |
static void Ogre::AlignedMemory::deallocate | ( | void * | p | ) | [static] |
Deallocate memory that allocated by this class.
p | Pointer to the memory allocated by this class or NULL pointer. |
Copyright © 2012 Torus Knot Software Ltd
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
Last modified Fri May 25 23:37:05 2012