示例#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);
 }