public static InputMessage Deserialize(Stream stream) { InputMessage inputMessage = Pool.Get <InputMessage>(); InputMessage.Deserialize(stream, inputMessage, false); return(inputMessage); }
public static InputMessage Deserialize(byte[] buffer, InputMessage instance, bool isDelta = false) { using (MemoryStream memoryStream = new MemoryStream(buffer)) { InputMessage.Deserialize(memoryStream, instance, isDelta); } return(instance); }
public static InputMessage Deserialize(byte[] buffer) { InputMessage inputMessage = Pool.Get <InputMessage>(); using (MemoryStream memoryStream = new MemoryStream(buffer)) { InputMessage.Deserialize(memoryStream, inputMessage, false); } return(inputMessage); }
private void Instance_Message(Socketer socketer, MessageEvent messageEvent) { InputMessage inputMessage = InputMessage.Deserialize(messageEvent.Message); switch (inputMessage.type) { case InputMessageType.Button: sourceCanvas.InvokeButton(inputMessage.id); break; case InputMessageType.Slider: sourceCanvas.MoveSlider(inputMessage.id, inputMessage.value); break; } }
public void FromProto(Stream stream, bool isDelta = false) { InputMessage.Deserialize(stream, this, isDelta); }