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