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