Пример #1
0
        public static SleepingBag Deserialize(Stream stream)
        {
            SleepingBag sleepingBag = Pool.Get <SleepingBag>();

            SleepingBag.Deserialize(stream, sleepingBag, false);
            return(sleepingBag);
        }
Пример #2
0
 public static SleepingBag Deserialize(byte[] buffer, SleepingBag instance, bool isDelta = false)
 {
     using (MemoryStream memoryStream = new MemoryStream(buffer))
     {
         SleepingBag.Deserialize(memoryStream, instance, isDelta);
     }
     return(instance);
 }
Пример #3
0
        public static SleepingBag Deserialize(byte[] buffer)
        {
            SleepingBag sleepingBag = Pool.Get <SleepingBag>();

            using (MemoryStream memoryStream = new MemoryStream(buffer))
            {
                SleepingBag.Deserialize(memoryStream, sleepingBag, false);
            }
            return(sleepingBag);
        }
Пример #4
0
 public void FromProto(Stream stream, bool isDelta = false)
 {
     SleepingBag.Deserialize(stream, this, isDelta);
 }