public static ItemContainer Deserialize(Stream stream) { ItemContainer itemContainer = Pool.Get <ItemContainer>(); ItemContainer.Deserialize(stream, itemContainer, false); return(itemContainer); }
public static ItemContainer Deserialize(byte[] buffer, ItemContainer instance, bool isDelta = false) { using (MemoryStream memoryStream = new MemoryStream(buffer)) { ItemContainer.Deserialize(memoryStream, instance, isDelta); } return(instance); }
public static ItemContainer Deserialize(byte[] buffer) { ItemContainer itemContainer = Pool.Get <ItemContainer>(); using (MemoryStream memoryStream = new MemoryStream(buffer)) { ItemContainer.Deserialize(memoryStream, itemContainer, false); } return(itemContainer); }
public void FromProto(Stream stream, bool isDelta = false) { ItemContainer.Deserialize(stream, this, isDelta); }