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

OVRNativeList Class

Extends IDisposable, IReadOnlyList< T >
Internal.

Fields

NativeArray< T > _array[Get]
readonly Allocator _allocator[Get]

Properties

int Count[Get]
int Capacity[Get]
bool IsCreated[Get]
unsafe T * Data[Get]
T this[int index][Get]

Member Functions

OVRNativeList
( int? initialCapacity,
Allocator allocator )
OVRNativeList
( Allocator allocator )
unsafe T * PtrToElementAt
( int index )
NativeArray< T > AsNativeArray ( )
unsafe Span< T > AsSpan ( )
unsafe ReadOnlySpan< T > AsReadOnlySpan ( )
NativeArray< T >.Enumerator GetEnumerator ( )
void Add
( T item )
unsafe void AddRange
( IEnumerable< T > collection )
void Clear ( )
void Dispose ( )
IEnumerator< T > IEnumerable< T >. GetEnumerator ( )
IEnumerator IEnumerable. GetEnumerator ( )
unsafe void EnsureCapacity
( int capacity )

Static Member Functions

static unsafe implicit operator T*
( OVRNativeList< T > list )
static implicit operator Span
( OVRNativeList< T > list )
static implicit operator ReadOnlySpan
( OVRNativeList< T > list )
static CapacityHelper WithSuggestedCapacityFrom< T >
( IEnumerable< T > collection )
static OVRNativeList< T > ToNativeList< T >
( this IEnumerable< T > collection,
Allocator allocator )
Did you find this page helpful?
Thumbs up icon
Thumbs down icon