SimpleArrayFloat

References
Wrapper for ON_SimpleArray<float>. If you are not writing C++ code then this class is not for you.

Constructors

SimpleArrayFloat

#Since v7.0
public SimpleArrayFloat()
Initializes a new SimpleArrayFloat class.

SimpleArrayFloat

#Since v7.0
public SimpleArrayFloat(IEnumerable<float> values)
Initializes a new SimpleArrayFloat class
values (IEnumerable<float>)initial set of integers to add to the array

SimpleArrayFloat

#Since v7.0
public SimpleArrayFloat(int initialSize)
Initializes a new SimpleArrayFloat class. Initial size of the array - all values are set to zero.
initialSize (int)

SimpleArrayFloat

#Since v7.0
public SimpleArrayFloat(SimpleArrayFloat other)
Initializes a new SimpleArrayFloat with the contents of another SimpleArrayFloat.
other (SimpleArrayFloat)

Finalizer

~SimpleArrayFloat

#
~SimpleArrayFloat()
Passively reclaims unmanaged resources when the class user did not explicitly call Dispose().

Properties

Count

#Since v7.0
public int Count { get; }
Gets the amount of elements in this array.

Methods

Array

#Since v7.0
public nint Array()
Return the raw data.

ConstPointer

#Since v7.0
public nint ConstPointer()
Gets the constant (immutable) pointer of this array.
The constant pointer.

CopyTo

#Since v7.0
public void CopyTo(SimpleArrayFloat other)
Copies the contents of a SimpleArrayFloat into another SimpleArrayFloat.
other (SimpleArrayFloat)

Dispose

#Since v7.0
public void Dispose()
Actively reclaims unmanaged resources that this instance uses.

NonConstPointer

#Since v7.0
public nint NonConstPointer()
Gets the non-constant pointer (for modification) of this array.
The non-constant pointer.

ToArray

#Since v7.0
public float[] ToArray()
Returns the managed counterpart of the unmanaged array.
The managed array.