Photon Fusion
2.0.8
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 >.
Public Member Functions | |
| abstract void | Init (int capacity) |
| Initializes the UnitySurrogateBase with a specified capacity. More... | |
| abstract void | Read (int *data, int capacity) |
| Reads data from a specified memory location into the UnitySurrogateBase. More... | |
| abstract void | Write (int *data, int capacity) |
| Writes data from the UnitySurrogateBase to a specified memory location. More... | |
Represents a base class for Unity surrogates. This class is serializable and provides abstract methods for reading, writing, and initializing data.
|
pure virtual |
Initializes the UnitySurrogateBase with a specified capacity.
| capacity | The capacity to initialize the UnitySurrogateBase with. |
Implemented in UnityValueSurrogate< T, TReaderWriter >, UnityLinkedListSurrogate< T, ReaderWriter >, UnityDictionarySurrogate< TKeyType, TKeyReaderWriter, TValueType, TValueReaderWriter >, and UnityArraySurrogate< T, ReaderWriter >.
|
pure virtual |
Reads data from a specified memory location into the UnitySurrogateBase.
| data | The memory location to read from. |
| capacity | The number of elements to read. |
Implements IUnitySurrogate.
Implemented in UnityValueSurrogate< T, TReaderWriter >, UnityLinkedListSurrogate< T, ReaderWriter >, UnityDictionarySurrogate< TKeyType, TKeyReaderWriter, TValueType, TValueReaderWriter >, and UnityArraySurrogate< T, ReaderWriter >.
|
pure virtual |
Writes data from the UnitySurrogateBase to a specified memory location.
| data | The memory location to write to. |
| capacity | The number of elements to write. |
Implements IUnitySurrogate.
Implemented in UnityValueSurrogate< T, TReaderWriter >, UnityLinkedListSurrogate< T, ReaderWriter >, UnityDictionarySurrogate< TKeyType, TKeyReaderWriter, TValueType, TValueReaderWriter >, and UnityArraySurrogate< T, ReaderWriter >.