public static BaseNetworkable Deserialize(Stream stream)
        {
            BaseNetworkable baseNetworkable = Pool.Get <BaseNetworkable>();

            BaseNetworkable.Deserialize(stream, baseNetworkable, false);
            return(baseNetworkable);
        }
 public static BaseNetworkable Deserialize(byte[] buffer, BaseNetworkable instance, bool isDelta = false)
 {
     using (MemoryStream memoryStream = new MemoryStream(buffer))
     {
         BaseNetworkable.Deserialize(memoryStream, instance, isDelta);
     }
     return(instance);
 }
        public static BaseNetworkable Deserialize(byte[] buffer)
        {
            BaseNetworkable baseNetworkable = Pool.Get <BaseNetworkable>();

            using (MemoryStream memoryStream = new MemoryStream(buffer))
            {
                BaseNetworkable.Deserialize(memoryStream, baseNetworkable, false);
            }
            return(baseNetworkable);
        }
 public void FromProto(Stream stream, bool isDelta = false)
 {
     BaseNetworkable.Deserialize(stream, this, isDelta);
 }