DHART
Loading...
Searching...
No Matches
DHARTAPI.NativeUtils.DependentNativeArray< T > Class Template Reference

A native array 2D that doesn't require destruction. More...

+ Inheritance diagram for DHARTAPI.NativeUtils.DependentNativeArray< T >:

Protected Member Functions

override bool ReleaseHandle ()
 Doesn't do anything since it's managed by it's parent MeshInfo.
 

Additional Inherited Members

- Public Member Functions inherited from DHARTAPI.NativeUtils.NativeArray< T >
unsafe override string ToString ()
 Get a string representation of this array. More...
 
virtual T[] CopyArray ()
 Copy the unmanaged array pointed to by this object into a managed array. More...
 
bool Equals (NativeArray< T > arr2)
 Check equality of this array and another. More...
 
- Public Member Functions inherited from DHARTAPI.NativeUtils.NativeObject
void UpdatePressure (int new_pressure)
 Update the pressure of this object.
 
- Public Attributes inherited from DHARTAPI.NativeUtils.NativeObject
int pressure
 the size of the object pointed to in unmanaged memory in bytes. Used to exert pressure on the GC. More...
 
- Properties inherited from DHARTAPI.NativeUtils.NativeArray2D< T >
unsafe override Span< T > array [get]
 Get a view of the entire array as a flattened one dimensional array. More...
 
unsafe Span< T > this[int i] [get]
 Get a view to a to a row of this array. More...
 
- Properties inherited from DHARTAPI.NativeUtils.NativeArray< T >
virtual unsafe Span< T > array [get]
 Read only access to this unmanaged array as a span. More...
 
unsafe T this[int key] [get]
 Get the element at location i. More...
 
virtual int size [get]
 The number of elements in the array.
 
- Properties inherited from DHARTAPI.NativeUtils.NativeObject
override bool IsInvalid [get]
 There is no way to invalidate this class without destroying it, so will always return false.
 

Detailed Description

A native array 2D that doesn't require destruction.

Remarks
Use this for arrays that don't need to be destructed, but instead are destroyed by some other means. An example of this is the vertex and index arrays for an instance of MeshInfo, in which both are destroyed when the meshinfo is destroyed.
Type Constraints
T :unmanaged 

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