OSVR-Core  0.6-1962-g59773924
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
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

void * osvrAlignedAlloc (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.
 
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

Definition in file AlignedMemoryC.h.

Enumeration Type Documentation

anonymous enum
Enumerator
OSVR_DEFAULT_ALIGN_SIZE 

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

Definition at line 44 of file AlignedMemoryC.h.