Represents a base class for Unity value surrogates. This class is serializable and provides methods for reading, writing, and initializing data.
More...
Inherits UnitySurrogateBase, and IUnityValueSurrogate< T >.
Represents a base class for Unity value surrogates. This class is serializable and provides methods for reading, writing, and initializing data.
- Template Parameters
-
T | The type of the data. |
TReaderWriter | The type of the reader/writer for the data. Must be unmanaged and implement IElementReaderWriter{T}. |
◆ Init()
override void Init |
( |
int |
capacity | ) |
|
|
virtual |
◆ Read()
override void Read |
( |
int * |
data, |
|
|
int |
capacity |
|
) |
| |
|
virtual |
Reads data into the UnityValueSurrogate from a specified memory location.
- Parameters
-
data | The memory location to read from. |
capacity | The number of elements to read. |
Implements UnitySurrogateBase.
◆ Write()
override void Write |
( |
int * |
data, |
|
|
int |
capacity |
|
) |
| |
|
virtual |
Writes data from the UnityValueSurrogate to a specified memory location.
- Parameters
-
data | The memory location to write to. |
capacity | The number of elements to write. |
Implements UnitySurrogateBase.
◆ DataProperty