Photon Fusion 2.1.1

IUnitySurrogate Interface Reference

Represents an interface for Unity surrogates. This interface provides methods for reading and writing data. More...

Inherited by IUnityValueSurrogate< T >, and UnitySurrogateBase.

Public Member Functions

void Read (int *data, int capacity)
 Reads data from a specified memory location.
void Write (int *data, int capacity)
 Writes data to a specified memory location.

Detailed Description

Represents an interface for Unity surrogates. This interface provides methods for reading and writing data.

Member Function Documentation

◆ Read()

void Read ( int * data,
int capacity )

Reads data from a specified memory location.

Parameters
dataThe memory location to read from.
capacityThe number of elements to read.

Implemented in UnityArraySurrogate< T, ReaderWriter >, UnityDictionarySurrogate< TKeyType, TKeyReaderWriter, TValueType, TValueReaderWriter >, UnityLinkedListSurrogate< T, ReaderWriter >, UnitySurrogateBase, and UnityValueSurrogate< T, TReaderWriter >.

◆ Write()

void Write ( int * data,
int capacity )

Writes data to a specified memory location.

Parameters
dataThe memory location to write to.
capacityThe number of elements to write.

Implemented in UnityArraySurrogate< T, ReaderWriter >, UnityDictionarySurrogate< TKeyType, TKeyReaderWriter, TValueType, TValueReaderWriter >, UnityLinkedListSurrogate< T, ReaderWriter >, UnitySurrogateBase, and UnityValueSurrogate< T, TReaderWriter >.