class UShortArray

Summary

This class represents an unsigned 16-bit array managed by the Max Environment.

syntax:
public class UShortArray : Array<ushort>

Constructors

UShortArray(IntPtr Pointer, ulong Count, ulong Alignment)

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

syntax:
public UShortArray(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

UShortArray(ulong Count)

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

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

Parameters

Type Name Description
ulong Count Number of elements

UShortArray(ushort[] Elements)

Instantiates an array of ushorts with an array.

syntax:
public UShortArray(ushort[] Elements) : base(Elements)

Parameters

Type Name Description
ushort[] Elements Elements

Methods

CopyFromLength(ushort[] Array, int Length)

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

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

Parameters

Type Name Description
ushort[] Array Source
int Length Length

InstanceCreate(ulong Length)

Creates an instance of UShortArray of a specified length.

syntax:
public override IDataType InstanceCreate(ulong Length)

Parameters

Type Name Description
ulong Length Length

Returns: Instance ( override IDataType )

Operators

UShortArray

Implicitly converts a ushort array to an instance of UShortArray.

syntax:
public static implicit operator UShortArray(ushort[] Value) => new UShortArray(Value);