This website uses cookies to improve our services and deliver relevant ads.
By interacting with this site, you agree to this use. For more information, see our Cookies Policy

Unity 1.25 Reference Guide

OVRNativeBuffer Class Reference

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

Private Data Fields

bool
int
IntPtr
m_ptr ( )

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.

Private Member Functions

Releases unmanaged resources and performs other cleanup operations before the OVRNativeBuffer is reclaimed by garbage collection.
void
Dispose ( bool disposing )
void
Reallocate ( int numBytes )
void
Release ( )

Object Data Documentation

bool OVRNativeBuffer.disposed ( )
int OVRNativeBuffer.m_numBytes ( )
IntPtr OVRNativeBuffer.m_ptr ( )

Member Function Documentation

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 Documentation

OVRNativeBuffer.~OVRNativeBuffer ( )
Releases unmanaged resources and performs other cleanup operations before the OVRNativeBuffer is reclaimed by garbage collection.
void OVRNativeBuffer.Dispose ( bool disposing )
void OVRNativeBuffer.Reallocate ( int numBytes )
void OVRNativeBuffer.Release ( )
The documentation for this class was generated from the following file: OVR/Scripts/OVRCommon.cs