public object Deserialize(Stream inStream)
        {
            VehicleEventMessage msg = (VehicleEventMessage)_serialize.Deserialize(inStream);
            var rc = VehicleEventMessageConverter.FromProtoBuf(msg);

            msg.ReleaseReference();
            return(rc);
        }
        public void Serialize(Stream outStream, object message)
        {
            var syncEvent           = (IVehicleSyncEvent)message;
            VehicleEventMessage msg = VehicleEventMessage.Allocate();

            VehicleEventMessageConverter.ToProtoBuf(msg, syncEvent);
            _serialize.Serialize(outStream, msg);
            msg.ReleaseReference();
        }