OVRNativeBuffer Class Reference

Encapsulates an 8-byte-aligned of unmanaged memory. More...

Inheritance diagram for OVRNativeBuffer:

Public Member Functions

 OVRNativeBuffer (int numBytes)
 Creates a buffer of the specified size. More...
 
void Reset (int numBytes)
 Reallocates the buffer with the specified new size. More...
 
int GetCapacity ()
 The current number of bytes in the buffer. More...
 
IntPtr GetPointer (int byteOffset=0)
 A pointer to the unmanaged memory in the buffer, starting at the given offset in bytes. More...
 
void Dispose ()
 Releases all resource used by the OVRNativeBuffer object. More...
 

Detailed Description

Encapsulates an 8-byte-aligned of unmanaged memory.

Constructor & Destructor Documentation

◆ OVRNativeBuffer()

OVRNativeBuffer.OVRNativeBuffer ( int  numBytes)

Creates a buffer of the specified size.

Member Function Documentation

◆ Dispose()

void OVRNativeBuffer.Dispose ( )

Releases all resource used by the OVRNativeBuffer object.

Call Dispose when you are finished using the OVRNativeBuffer. The Dispose method leaves the OVRNativeBuffer in an unusable state. After calling Dispose, you must release all references to the OVRNativeBuffer so the garbage collector can reclaim the memory that the OVRNativeBuffer was occupying.

◆ GetCapacity()

int OVRNativeBuffer.GetCapacity ( )

The current number of bytes in the buffer.

◆ GetPointer()

IntPtr OVRNativeBuffer.GetPointer ( int  byteOffset = 0)

A pointer to the unmanaged memory in the buffer, starting at the given offset in bytes.

◆ Reset()

void OVRNativeBuffer.Reset ( int  numBytes)

Reallocates the buffer with the specified new size.


The documentation for this class was generated from the following file: