Exemplo n.º 1
0
        public static HotAirBalloon Deserialize(Stream stream)
        {
            HotAirBalloon hotAirBalloon = Pool.Get <HotAirBalloon>();

            HotAirBalloon.Deserialize(stream, hotAirBalloon, false);
            return(hotAirBalloon);
        }
Exemplo n.º 2
0
 public static HotAirBalloon Deserialize(byte[] buffer, HotAirBalloon instance, bool isDelta = false)
 {
     using (MemoryStream memoryStream = new MemoryStream(buffer))
     {
         HotAirBalloon.Deserialize(memoryStream, instance, isDelta);
     }
     return(instance);
 }
Exemplo n.º 3
0
        public static HotAirBalloon Deserialize(byte[] buffer)
        {
            HotAirBalloon hotAirBalloon = Pool.Get <HotAirBalloon>();

            using (MemoryStream memoryStream = new MemoryStream(buffer))
            {
                HotAirBalloon.Deserialize(memoryStream, hotAirBalloon, false);
            }
            return(hotAirBalloon);
        }
Exemplo n.º 4
0
 public void FromProto(Stream stream, bool isDelta = false)
 {
     HotAirBalloon.Deserialize(stream, this, isDelta);
 }