API reference
API reference
Select your platform
No SDKs available
No versions available

OVRNativeBuffer Class

Extends IDisposable
Encapsulates an 8-byte-aligned of unmanaged memory.

Protected Fields

bool disposed[Get]
int m_numBytes[Get]
IntPtr m_ptr[Get]

Member Functions

Creates a buffer of the specified size.
Reallocates the buffer with the specified new size.
The current number of bytes in the buffer.
A pointer to the unmanaged memory in the buffer, starting at the given offset in bytes.
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.

Protected Functions

void Dispose
( bool disposing )
void Reallocate
( int numBytes )
void Release ( )
Did you find this page helpful?
Thumbs up icon
Thumbs down icon