Esempio n. 1
0
        public static ItemContainer Deserialize(Stream stream)
        {
            ItemContainer itemContainer = Pool.Get <ItemContainer>();

            ItemContainer.Deserialize(stream, itemContainer, false);
            return(itemContainer);
        }
Esempio n. 2
0
 public static ItemContainer Deserialize(byte[] buffer, ItemContainer instance, bool isDelta = false)
 {
     using (MemoryStream memoryStream = new MemoryStream(buffer))
     {
         ItemContainer.Deserialize(memoryStream, instance, isDelta);
     }
     return(instance);
 }
Esempio n. 3
0
        public static ItemContainer Deserialize(byte[] buffer)
        {
            ItemContainer itemContainer = Pool.Get <ItemContainer>();

            using (MemoryStream memoryStream = new MemoryStream(buffer))
            {
                ItemContainer.Deserialize(memoryStream, itemContainer, false);
            }
            return(itemContainer);
        }
Esempio n. 4
0
 public void FromProto(Stream stream, bool isDelta = false)
 {
     ItemContainer.Deserialize(stream, this, isDelta);
 }