class FloatArray

Summary

This class represents a float array managed by the Max Environment.

syntax:
public class FloatArray : Array<float>

Constructors

FloatArray(IntPtr Pointer, ulong Count, ulong Alignment)

Instantiates an array of floats with a given pointer, element count and alignment.

syntax:
public FloatArray(IntPtr Pointer, ulong Count, ulong Alignment) : base(Pointer, Count, Alignment)

Parameters

Type Name Description
IntPtr Pointer Array pointer
ulong Count Number of elements
ulong Alignment Alignment

FloatArray(ulong Count)

Instantiates an array of floats with a certain number of elements.

syntax:
public FloatArray(ulong Count) : base(Count)

Parameters

Type Name Description
ulong Count Number of elements

FloatArray(float[] Elements)

Instantiates an array of floats with an array.

syntax:
public FloatArray(float[] Elements) : base(Elements)

Parameters

Type Name Description
float[] Elements Elements

Methods

CopyFromLength(float[] Array, int Length)

Copies a source array to this one, of a certain length of elements.

syntax:
protected override void CopyFromLength(float[] Array, int Length)

Parameters

Type Name Description
float[] Array Source
int Length Length

InstanceCreate(ulong Length)

Creates an instance of FloatArray of a specified length.

syntax:
public override IDataType InstanceCreate(ulong Length)

Parameters

Type Name Description
ulong Length Length

Returns: Instance ( override IDataType )

Operators

FloatArray

Implicitly converts a float array to an instance of FloatArray.

syntax:
public static implicit operator FloatArray(float[] Value) => new FloatArray(Value);