class IntArray
Summary
This class represents a signed 32-bit array managed by the Max Environment.
syntax:
public class IntArray : Array<int>
namespace: max.process.arr.type
Constructors
IntArray(IntPtr Pointer, ulong Count, ulong Alignment)
Instantiates an array of ints with a given pointer, element count and alignment.
syntax:
public IntArray(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 |
IntArray(ulong Count)
Instantiates an array of ints with a certain number of elements.
syntax:
public IntArray(ulong Count) : base(Count)
Parameters
Type | Name | Description |
---|---|---|
ulong | Count | Number of elements |
IntArray(int[] Elements)
Instantiates an array of ints with an array.
syntax:
public IntArray(int[] Elements) : base(Elements)
Parameters
Type | Name | Description |
---|---|---|
int[] | Elements | Elements |
Methods
CopyFromLength(int[] Array, int Length)
Copies a source array to this one, of a certain length of elements.
syntax:
protected override void CopyFromLength(int[] Array, int Length)
Parameters
Type | Name | Description |
---|---|---|
int[] | Array | Source |
int | Length | Length |
InstanceCreate(ulong Length)
Creates an instance of IntArray of a specified length.
syntax:
public override IDataType InstanceCreate(ulong Length)
Parameters
Type | Name | Description |
---|---|---|
ulong | Length | Length |
Returns: Instance ( override IDataType )
Operators
IntArray
Implicitly converts a int array to an instance of IntArray.
syntax:
public static implicit operator IntArray(int[] Value) => new IntArray(Value);