Obi  6.4
Unified particle physics for Unity
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
Obi.ObiNativeList< T > Class Template Reference
Inheritance diagram for Obi.ObiNativeList< T >:
Obi.ObiNativeAabbList Obi.ObiNativeAffineTransformList Obi.ObiNativeBIHNodeList Obi.ObiNativeBoneWeightList Obi.ObiNativeByteList Obi.ObiNativeCellSpanList Obi.ObiNativeColliderShapeList Obi.ObiNativeCollisionMaterialList Obi.ObiNativeContactShapeList Obi.ObiNativeDFNodeList Obi.ObiNativeDistanceFieldHeaderList Obi.ObiNativeEdgeList Obi.ObiNativeEdgeMeshHeaderList Obi.ObiNativeFloatList Obi.ObiNativeHeightFieldHeaderList Obi.ObiNativeInt4List Obi.ObiNativeIntList Obi.ObiNativeIntPtrList Obi.ObiNativeMatrix4x4List Obi.ObiNativeQuaternionList Obi.ObiNativeQueryResultList Obi.ObiNativeQueryShapeList Obi.ObiNativeRigidbodyList Obi.ObiNativeTriangleList Obi.ObiNativeTriangleMeshHeaderList Obi.ObiNativeVector2List Obi.ObiNativeVector3List Obi.ObiNativeVector4List

Public Member Functions

 ObiNativeList (int capacity=8, int alignment=16)
 
void Dispose ()
 
void OnBeforeSerialize ()
 
void OnAfterDeserialize ()
 
NativeArray< U > AsNativeArray< U > ()
 
NativeArray< U > AsNativeArray< U > (int arrayLength)
 
ComputeBuffer AsComputeBuffer< U > ()
 
bool Compare (ObiNativeList< T > other)
 
void CopyFrom (ObiNativeList< T > source)
 
void CopyFrom (ObiNativeList< T > source, int sourceIndex, int destIndex, int length)
 
void CopyReplicate (T value, int destIndex, int length)
 
void CopyTo (T[] dest, int sourceIndex, int length)
 
void Clear ()
 
void Add (T item)
 
void AddRange (IEnumerable< T > enumerable)
 
void RemoveRange (int index, int count)
 
void RemoveAt (int index)
 
bool ResizeUninitialized (int newCount)
 
bool ResizeInitialized (int newCount, T value=default(T))
 
bool EnsureCapacity (int min)
 
void WipeToZero ()
 
override string ToString ()
 
void * AddressOfElement (int index)
 
IntPtr GetIntPtr ()
 
void Swap (int index1, int index2)
 
IEnumerator< T > GetEnumerator ()
 

Public Attributes

T[] serializedContents
 

Protected Member Functions

void Dispose (bool disposing)
 
void ChangeCapacity (int newCapacity)
 

Protected Attributes

void * m_AlignedPtr = null
 
int m_Stride
 
int m_Capacity
 
int m_Count
 
int m_AlignBytes = 16
 
ComputeBuffer m_ComputeBuffer
 

Properties

int count [get, set]
 
int capacity [get, set]
 
bool isCreated [get]
 
this[int index] [get, set]
 

Member Function Documentation

bool Obi.ObiNativeList< T >.ResizeUninitialized ( int  newCount)

Ensures a minimal capacity of count elements, then sets the new count. Useful when passing the backing array to C++ for being filled with new data.


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