示例#1
0
        public static SpinnerWheel Deserialize(Stream stream)
        {
            SpinnerWheel spinnerWheel = Pool.Get <SpinnerWheel>();

            SpinnerWheel.Deserialize(stream, spinnerWheel, false);
            return(spinnerWheel);
        }
示例#2
0
 public static SpinnerWheel Deserialize(byte[] buffer, SpinnerWheel instance, bool isDelta = false)
 {
     using (MemoryStream memoryStream = new MemoryStream(buffer))
     {
         SpinnerWheel.Deserialize(memoryStream, instance, isDelta);
     }
     return(instance);
 }
示例#3
0
        public static SpinnerWheel Deserialize(byte[] buffer)
        {
            SpinnerWheel spinnerWheel = Pool.Get <SpinnerWheel>();

            using (MemoryStream memoryStream = new MemoryStream(buffer))
            {
                SpinnerWheel.Deserialize(memoryStream, spinnerWheel, false);
            }
            return(spinnerWheel);
        }
示例#4
0
 public void FromProto(Stream stream, bool isDelta = false)
 {
     SpinnerWheel.Deserialize(stream, this, isDelta);
 }