コード例 #1
0
        public static BaseResource Deserialize(Stream stream)
        {
            BaseResource baseResource = Pool.Get <BaseResource>();

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

            using (MemoryStream memoryStream = new MemoryStream(buffer))
            {
                BaseResource.Deserialize(memoryStream, baseResource, false);
            }
            return(baseResource);
        }
コード例 #4
0
 public void FromProto(Stream stream, bool isDelta = false)
 {
     BaseResource.Deserialize(stream, this, isDelta);
 }