Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ AddItem()

void System.Xml.XmlWellFormedWriter.AttributeValueCache.AddItem ( ItemType type,
object data )
inlineprivate

Definition at line 588 of file XmlWellFormedWriter.cs.

589 {
590 int num = _lastItem + 1;
591 if (_items == null)
592 {
593 _items = new Item[4];
594 }
595 else if (_items.Length == num)
596 {
597 Item[] array = new Item[num * 2];
598 Array.Copy(_items, array, num);
599 _items = array;
600 }
601 if (_items[num] == null)
602 {
603 _items[num] = new Item(type, data);
604 }
605 else
606 {
607 _items[num].Set(type, data);
608 }
609 _lastItem = num;
610 }

References System.Xml.XmlWellFormedWriter.AttributeValueCache._items, System.Xml.XmlWellFormedWriter.AttributeValueCache._lastItem, System.array, System.Array.Copy(), System.Xml.Item, System.Xml.XmlWellFormedWriter.AttributeValueCache.Item.Set(), and System.type.

Referenced by System.Xml.XmlWellFormedWriter.AttributeValueCache.StartComplexValue(), System.Xml.XmlWellFormedWriter.AttributeValueCache.WriteCharEntity(), System.Xml.XmlWellFormedWriter.AttributeValueCache.WriteChars(), System.Xml.XmlWellFormedWriter.AttributeValueCache.WriteEntityRef(), System.Xml.XmlWellFormedWriter.AttributeValueCache.WriteRaw(), System.Xml.XmlWellFormedWriter.AttributeValueCache.WriteRaw(), System.Xml.XmlWellFormedWriter.AttributeValueCache.WriteString(), System.Xml.XmlWellFormedWriter.AttributeValueCache.WriteSurrogateCharEntity(), System.Xml.XmlWellFormedWriter.AttributeValueCache.WriteValue(), and System.Xml.XmlWellFormedWriter.AttributeValueCache.WriteWhitespace().