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

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

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