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

OVRNativeBuffer Class

Encapsulates an 8-byte-aligned of unmanaged memory.
OVRNativeBuffer extends IDisposable.

Overview

Object Data

bool
int
IntPtr
m_ptr[Get]

Public Member Functions

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

Object Data

void
Dispose
( bool disposing )
void
Reallocate
( int numBytes )
void
Release ( )

Details

Object Data

bool OVRNativeBuffer.disposed
No description available.
int OVRNativeBuffer.m_numBytes
No description available.
IntPtr OVRNativeBuffer.m_ptr
No description available.

Member Functions

OVRNativeBuffer.OVRNativeBuffer
( int numBytes )
Creates a buffer of the specified size.
void OVRNativeBuffer.Reset
( int numBytes )
Reallocates the buffer with the specified new size.
int OVRNativeBuffer.GetCapacity ( )
The current number of bytes in the buffer.
IntPtr OVRNativeBuffer.GetPointer
( int byteOffset )
A pointer to the unmanaged memory in the buffer, starting at the given offset in bytes.
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.

Object Data

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