Method Serialize
Serialize(ref DataStreamWriter, in RpcSerializerState, in T)
Serialize the command to the data stream.
Declaration
void Serialize(ref DataStreamWriter writer, in RpcSerializerState state, in T data)
Parameters
| Type | Name | Description |
|---|---|---|
| DataStreamWriter | writer | An instance of a DataStreamWriter |
| RpcSerializerState | state | An instance of RpcSerializerState used to carry some additional data and accessor for serializing the command field type. In particular, used to serialize entity |
| T | data |
Serialize(ref DataStreamWriter, in RpcSerializerState, in T, in T, StreamCompressionModel)
Serialize the command to the data stream using delta compression.
Declaration
void Serialize(ref DataStreamWriter writer, in RpcSerializerState state, in T data, in T baseline, StreamCompressionModel compressionModel)
Parameters
| Type | Name | Description |
|---|---|---|
| DataStreamWriter | writer | An instance of a DataStreamWriter |
| RpcSerializerState | state | An instance of RpcSerializerState used to carry some additional data and accessor for serializing the command field type. In particular, used to serialize entity |
| T | data | |
| T | baseline | |
| StreamCompressionModel | compressionModel |