A base class for Unity array surrogates. More...
Inherits UnitySurrogateBase.
Public Member Functions | |
override void | Init (int capacity) |
Initializes the UnityArraySurrogate with a specified capacity. More... | |
override void | Read (int *data, int capacity) |
Reads data into the UnityArraySurrogate from a specified memory location. More... | |
override void | Write (int *data, int capacity) |
Writes data from the UnityArraySurrogate to a specified memory location. More... | |
Properties | |
abstract T[] | DataProperty [get, set] |
Gets or sets the data array for the UnityArraySurrogate. More... | |
A base class for Unity array surrogates.
T | Unmanaged type of the array elements. |
ReaderWriter | Unmanaged type of the reader/writer for the array elements. |
T | : | unmanaged | |
ReaderWriter | : | unmanaged | |
ReaderWriter | : | IElementReaderWriter<T> |
|
virtual |
Initializes the UnityArraySurrogate with a specified capacity.
capacity | The capacity to initialize the UnityArraySurrogate with. |
Implements UnitySurrogateBase.
|
virtual |
Reads data into the UnityArraySurrogate from a specified memory location.
data | The memory location to read from. |
capacity | The number of elements to read. |
Implements UnitySurrogateBase.
|
virtual |
Writes data from the UnityArraySurrogate to a specified memory location.
data | The memory location to write to. |
capacity | The number of elements to write. |
Implements UnitySurrogateBase.
|
getset |
Gets or sets the data array for the UnityArraySurrogate.