Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
XmlNavigatorStack.cs
Go to the documentation of this file.
2
4
5internal struct XmlNavigatorStack
6{
8
9 private int _sp;
10
11 public bool IsEmpty => _sp == 0;
12
13 public void Push(XPathNavigator nav)
14 {
15 if (_stkNav == null)
16 {
17 _stkNav = new XPathNavigator[8];
18 }
19 else if (_sp >= _stkNav.Length)
20 {
22 _stkNav = new XPathNavigator[2 * _sp];
24 }
25 _stkNav[_sp++] = nav;
26 }
27
29 {
30 return _stkNav[--_sp];
31 }
32
34 {
35 return _stkNav[_sp - 1];
36 }
37
38 public void Reset()
39 {
40 _sp = 0;
41 }
42}
static unsafe void Copy(Array sourceArray, Array destinationArray, int length)
Definition Array.cs:624