OSVR-Core
Enumerations | Functions
AlignedMemoryC.h File Reference

Header. More...

#include <osvr/Util/Export.h>
#include <osvr/Util/APIBaseC.h>
#include <stdlib.h>

Go to the source code of this file.

Enumerations

enum  { OSVR_DEFAULT_ALIGN_SIZE = 16 }
 

Functions

OSVR_UTIL_EXPORT void * osvrAlignedAlloc (size_t bytes, size_t alignment OSVR_CPP_ONLY(=OSVR_DEFAULT_ALIGN_SIZE))
 Aligned allocation function, gives a pointer to a block of memory aligned to a memory boundary.
 
OSVR_UTIL_EXPORT void osvrAlignedFree (void *p)
 Aligned deallocation function, uses the pointer to the original memory block to deallocate it.
 

Detailed Description

Header.

Must be c-safe!

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

Enumeration Type Documentation

§ anonymous enum

anonymous enum
Enumerator
OSVR_DEFAULT_ALIGN_SIZE 

The default (and core-utilized) alignment of imaging buffers, etc.