Represents a base class for Unity surrogates. This class is serializable and provides abstract methods for reading, writing, and initializing data.
More...
Inherits IUnitySurrogate.
Inherited by UnityArraySurrogate< T, ReaderWriter >, UnityDictionarySurrogate< TKeyType, TKeyReaderWriter, TValueType, TValueReaderWriter >, UnityLinkedListSurrogate< T, ReaderWriter >, and UnityValueSurrogate< T, TReaderWriter >.
Represents a base class for Unity surrogates. This class is serializable and provides abstract methods for reading, writing, and initializing data.
◆ Init()
| void Init |
( |
int | capacity | ) |
|
|
abstract |
◆ Read()
| void Read |
( |
int * | data, |
|
|
int | capacity ) |
|
abstract |
Reads data from a specified memory location into the UnitySurrogateBase.
- Parameters
-
| data | The memory location to read from. |
| capacity | The number of elements to read. |
Implements IUnitySurrogate.
◆ Write()
| void Write |
( |
int * | data, |
|
|
int | capacity ) |
|
abstract |
Writes data from the UnitySurrogateBase to a specified memory location.
- Parameters
-
| data | The memory location to write to. |
| capacity | The number of elements to write. |
Implements IUnitySurrogate.