25 #ifndef INCLUDED_AlignedMemoryUniquePtr_h_GUID_E68E5347_3A15_4289_4D16_1C9E7B1BCF45 26 #define INCLUDED_AlignedMemoryUniquePtr_h_GUID_E68E5347_3A15_4289_4D16_1C9E7B1BCF45 41 using AlignedPtr = unique_ptr<void, AlignedAllocDeleter>;
42 using AlignedImageBufferPtr =
43 unique_ptr<OSVR_ImageBufferElement, AlignedAllocDeleter>;
46 makeAlignedBuffer(
size_t bytes,
51 inline AlignedImageBufferPtr
52 makeAlignedImageBuffer(
size_t bytes,
54 AlignedImageBufferPtr ret(reinterpret_cast<OSVR_ImageBufferElement *>(
61 #endif // INCLUDED_AlignedMemoryUniquePtr_h_GUID_E68E5347_3A15_4289_4D16_1C9E7B1BCF45 Definition: RunLoopManager.h:42
The default (and core-utilized) alignment of imaging buffers, etc.
Definition: AlignedMemoryC.h:47
The main namespace for all C++ elements of the framework, internal and external.
Definition: namespace_osvr.dox:3
Header to bring unique_ptr into the osvr namespace.
Header defining an aligned memory allocator.
void * 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...
Definition: AlignedMemory.h:45