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

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

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