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

◆ AllocNode()

NodeData System.Xml.XmlTextReaderImpl.AllocNode ( int nodeIndex,
int nodeDepth )
inlineprivate

Definition at line 6944 of file XmlTextReaderImpl.cs.

6945 {
6946 if (nodeIndex >= _nodes.Length - 1)
6947 {
6948 NodeData[] array = new NodeData[_nodes.Length * 2];
6949 Array.Copy(_nodes, array, _nodes.Length);
6950 _nodes = array;
6951 }
6952 NodeData nodeData = _nodes[nodeIndex];
6953 if (nodeData == null)
6954 {
6955 nodeData = new NodeData();
6957 }
6959 return nodeData;
6960 }

References System.Xml.XmlTextReaderImpl._nodes, System.array, System.Array.Copy(), and System.Xml.Dictionary.

Referenced by System.Xml.XmlTextReaderImpl.AddNode().