Exemple #1
0
        public static HotAirBalloon Deserialize(Stream stream)
        {
            HotAirBalloon hotAirBalloon = Pool.Get <HotAirBalloon>();

            HotAirBalloon.Deserialize(stream, hotAirBalloon, false);
            return(hotAirBalloon);
        }
Exemple #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);
 }
Exemple #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);
        }
Exemple #4
0
 public void FromProto(Stream stream, bool isDelta = false)
 {
     HotAirBalloon.Deserialize(stream, this, isDelta);
 }