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

A wrapper for a two dimensional array in unmanaged memory. More...

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

Properties

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.
 

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...
 

Detailed Description

A wrapper for a two dimensional array in unmanaged memory.

Template Parameters
TThe type of object pointed to in unmanaged memory.
Type Constraints
T :unmanaged 

Property Documentation

◆ array

unsafe override Span<T> DHARTAPI.NativeUtils.NativeArray2D< T >.array
get

Get a view of the entire array as a flattened one dimensional array.

Returns
A span mapped to the unmanaged array pointed to by this object.

◆ this[int i]

unsafe Span<T> DHARTAPI.NativeUtils.NativeArray2D< T >.this[int i]
get

Get a view to a to a row of this array.

Parameters
iThe row to reference.
Returns
A new span from the beginning of row i to the end of row i

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