OSVR-Core
Classes | Namespaces | Functions
AlignedMemory.h File Reference

Header defining an aligned memory allocator. More...

#include <osvr/Util/AlignedMemoryC.h>
#include <stdlib.h>
#include <stdexcept>

Go to the source code of this file.

Classes

class  osvr::util::AlignedAllocDeleter
 Deleter class matching alignedAlloc. More...
 

Namespaces

 osvr
 The main namespace for all C++ elements of the framework, internal and external.
 
 osvr::util
 The Util library: Functionality not necessarily coupled to any particular core library, serving more as a common base layer behind all systems.
 

Functions

void * osvr::util::alignedAlloc (size_t bytes, size_t alignment=OSVR_DEFAULT_ALIGN_SIZE)
 Aligned allocation function, gives a pointer to a block of memory aligned to a memory boundary. More...
 
void osvr::util::alignedFree (void *p)
 Aligned deallocation function, uses the pointer to the original memory block to deallocate it. More...
 

Detailed Description

Header defining an aligned memory allocator.

Date
2015
Author
Sensics, Inc. http://sensics.com/osvr