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

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

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