Photon Fusion 2.0.4

Public Member Functions | List of all members
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. More...
 
void Write (int *data, int capacity)
 Writes data to a specified memory location. More...
 

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 UnityValueSurrogate< T, TReaderWriter >, UnitySurrogateBase, UnityLinkedListSurrogate< T, ReaderWriter >, UnityDictionarySurrogate< TKeyType, TKeyReaderWriter, TValueType, TValueReaderWriter >, and UnityArraySurrogate< T, ReaderWriter >.

◆ 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 UnityValueSurrogate< T, TReaderWriter >, UnitySurrogateBase, UnityLinkedListSurrogate< T, ReaderWriter >, UnityDictionarySurrogate< TKeyType, TKeyReaderWriter, TValueType, TValueReaderWriter >, and UnityArraySurrogate< T, ReaderWriter >.