A surrogate for serializing a dictionary.
More...
Inherits UnitySurrogateBase.
|
| override void | Init (int capacity) |
| | Initializes the UnityDictionarySurrogate with a specified capacity.
|
| override void | Read (int *data, int capacity) |
| | Reads data into the UnityDictionarySurrogate from a specified memory location.
|
| override void | Write (int *data, int capacity) |
| | Writes data from the UnityDictionarySurrogate 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.
|
A surrogate for serializing a dictionary.
- Template Parameters
-
| TKeyType | The type of the key. |
| TKeyReaderWriter | The type of the key reader writer. |
| TValueType | The type of the value. |
| TValueReaderWriter | The type of the value reader writer. |
- See also
- Fusion.Internal.UnitySurrogateBase
- Type Constraints
-
| TKeyType | : | unmanaged | |
| TKeyReaderWriter | : | unmanaged | |
| TKeyReaderWriter | : | IElementReaderWriter<TKeyType> | |
| TValueType | : | unmanaged | |
| TValueReaderWriter | : | unmanaged | |
| TValueReaderWriter | : | IElementReaderWriter<TValueType> | |
◆ Init()
| override void Init |
( |
int | capacity | ) |
|
Initializes the UnityDictionarySurrogate with a specified capacity.
- Parameters
-
| capacity | The capacity to initialize the UnityDictionarySurrogate with. |
◆ Read()
| override void Read |
( |
int * | data, |
|
|
int | capacity ) |
Reads data into the UnityDictionarySurrogate 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 UnityDictionarySurrogate to a specified memory location.
- Parameters
-
| data | The memory location to write to. |
| capacity | The number of elements to write. |
Implements IUnitySurrogate.