public object Deserialize(Stream inStream) { SimulationTimeMessageItem msg = (SimulationTimeMessageItem)_serialize.Deserialize(inStream); var rc = SimulationTimeMessageConverter.FromProtoBuf(msg); msg.ReleaseReference(); return(rc); }
public static SimulationTimeMessageItem ToProtoBuf(SimulationTimeMessage msg) { var item = SimulationTimeMessageItem.Allocate(); item.ClientSimulationTime = msg.ClientSimulationTime; item.ServerSimulationTime = msg.ServerSimulationTime; return(item); }
public static SimulationTimeMessage FromProtoBuf(SimulationTimeMessageItem item) { var msg = new SimulationTimeMessage() { ClientSimulationTime = item.ClientSimulationTime, ServerSimulationTime = item.ServerSimulationTime }; return(msg); }