class SByteArray

Summary

This class represents a signed byte array managed by the Max Environment.

syntax:
public class SByteArray : Array<sbyte>

Constructors

SByteArray(IntPtr Pointer, ulong Count, ulong Alignment)

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

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

SByteArray(ulong Count)

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

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

Parameters

Type Name Description
ulong Count Number of elements

SByteArray(sbyte[] Elements)

Instantiates an array of sbytes with an array.

syntax:
public SByteArray(sbyte[] Elements) : base(Elements)

Parameters

Type Name Description
sbyte[] Elements Elements

Methods

CopyFromLength(sbyte[] Array, int Length)

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

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

Parameters

Type Name Description
sbyte[] Array Source
int Length Length

InstanceCreate(ulong Length)

Creates an instance of SByteArray of a specified length.

syntax:
public override IDataType InstanceCreate(ulong Length)

Parameters

Type Name Description
ulong Length Length

Returns: Instance ( override IDataType )

Operators

SByteArray

Implicitly converts a sbyte array to an instance of SByteArray.

syntax:
public static implicit operator SByteArray(sbyte[] Value) => new SByteArray(Value);