class
ScriptArray
Helper class for creating and parsing managed arrays.
Public
Constructors
ScriptArray
Wraps an existing array and allows you to get/set its values.
ScriptArray
Creates a new array of specified size with elements of the specified type.
ScriptArray
Creates a new array of specified size with elements of the specified type.
Methods
SetRaw
Assigns some data represented as raw memory to the array at the specified index.
User must provide the size of the data, and it must match the element size expected by the array. Multiple array elements can be provided sequentially by setting the parameter.
GetRaw
Returns the raw memory of the data at the specified array index.
Returned value should not be used for writing to the array and set() or setRaw() methods should be used instead.
Size
Returns number of elements in the array.
ElementSize
Returns the size of an individual element in the array, in bytes.
GetInternal
Returns the managed object representing this array.
staticGetElementClass
Returns the class of the elements within an array class.
staticGetRank
Returns the rank of the provided array class.
Internal
Methods
staticGetArrayAddrInternal
Returns the address of an array item at the specified index.
- array
- Array from which to retrieve the item.
- size
- Size of a single item in the array.
- idx
- Index of the item to retrieve.
Returns: Address of the array item at the requested index.
staticSetArrayValInternal
Sets one or multiple entries from the array at the specified index, from raw memory.
User must provide the size of the element, and it must match the element size expected by the array.