DHART
|
A read-only array stored in unmanaged memory. More...
Public Member Functions | |
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. | |
Properties | |
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. | |
Additional Inherited Members | |
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... | |
A read-only array stored in unmanaged memory.
T | The type of the array pointed to in unmanaged memory. |
This type supports many of the facilities of standard arrays, however, doesn't actually hold any memory itself. Instead it simply owns a map to the array in native memory which can be accessed through spans.
T | : | struct |
|
virtual |
Copy the unmanaged array pointed to by this object into a managed array.
bool DHARTAPI.NativeUtils.NativeArray< T >.Equals | ( | NativeArray< T > | arr2 | ) |
Check equality of this array and another.
arr2 | Array to check equality against |
arr2
Two arrays are considered equal if they contain the same elements in the same positions, and are of the same length.
References DHARTAPI.NativeUtils.NativeArray< T >.array, and DHARTAPI.NativeUtils.NativeArray< T >.Equals().
Referenced by DHARTAPI.NativeUtils.NativeArray< T >.Equals().
unsafe override string DHARTAPI.NativeUtils.NativeArray< T >.ToString | ( | ) |
Get a string representation of this array.
References DHARTAPI.NativeUtils.NativeArray< T >.array.
|
get |
Read only access to this unmanaged array as a span.
Referenced by DHARTAPI.NativeUtils.NativeArray< T >.Equals(), and DHARTAPI.NativeUtils.NativeArray< T >.ToString().
|
get |
Get the element at location i.
i | Index of the element to get |
ArgumentOutOfRangeException | the key was beyond the bounds of this array. |