public static HotAirBalloon Deserialize(Stream stream) { HotAirBalloon hotAirBalloon = Pool.Get <HotAirBalloon>(); HotAirBalloon.Deserialize(stream, hotAirBalloon, false); return(hotAirBalloon); }
public static HotAirBalloon Deserialize(byte[] buffer, HotAirBalloon instance, bool isDelta = false) { using (MemoryStream memoryStream = new MemoryStream(buffer)) { HotAirBalloon.Deserialize(memoryStream, instance, isDelta); } return(instance); }
public static HotAirBalloon Deserialize(byte[] buffer) { HotAirBalloon hotAirBalloon = Pool.Get <HotAirBalloon>(); using (MemoryStream memoryStream = new MemoryStream(buffer)) { HotAirBalloon.Deserialize(memoryStream, hotAirBalloon, false); } return(hotAirBalloon); }
public void FromProto(Stream stream, bool isDelta = false) { HotAirBalloon.Deserialize(stream, this, isDelta); }