Method Deserialize
Deserialize(ref DataStreamReader, in RpcDeserializerState, ref T)
Method called by the RpcSystem when an rpc is dequeued from the
IncomingRpcDataStreamBuffer. Copies the data from the
reader
to the output data
.
The deserialization code is automatically generated when your struct implements the
IRpcCommand interface.
You must implement this method yourself when you opt-in for manual serialization.
Declaration
void Deserialize(ref DataStreamReader reader, in RpcDeserializerState state, ref T data)
Parameters
Type | Name | Description |
---|---|---|
DataStreamReader | reader | |
RpcDeserializerState | state | |
T | data |