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