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 >.
|
| override void | Init (int capacity) |
| | Initializes the UnityValueSurrogate with a specified capacity.
|
| override void | Read (int *data, int capacity) |
| | Reads data into the UnityValueSurrogate from a specified memory location.
|
| override void | Write (int *data, int capacity) |
| | Writes data from the UnityValueSurrogate to a specified memory location.
|
| void | Init (int capacity) |
| | Initializes the UnitySurrogateBase with a specified capacity.
|
| void | Read (int *data, int capacity) |
| | Reads data from a specified memory location into the UnitySurrogateBase.
|
| void | Write (int *data, int capacity) |
| | Writes data from the UnitySurrogateBase to a specified memory location.
|
|
|
T | DataProperty [get, set] |
| | Gets or sets the data for the UnityValueSurrogate.
|
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}. |
- Type Constraints
-
| TReaderWriter | : | unmanaged | |
| TReaderWriter | : | IElementReaderWriter<T> | |
◆ Init()
| override void Init |
( |
int | capacity | ) |
|
Initializes the UnityValueSurrogate with a specified capacity.
- Parameters
-
| capacity | The capacity to initialize the UnityValueSurrogate with. |
◆ Read()
| override void Read |
( |
int * | data, |
|
|
int | capacity ) |
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 IUnitySurrogate.
◆ Write()
| override void Write |
( |
int * | data, |
|
|
int | capacity ) |
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 IUnitySurrogate.