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

◆ Push()

object System.Xml.HWStack.Push ( )
inlinepackage

Definition at line 52 of file HWStack.cs.

53 {
54 if (_used == _size)
55 {
56 if (_limit <= _used)
57 {
58 throw new XmlException(System.SR.Xml_StackOverflow, string.Empty);
59 }
60 object[] array = new object[_size + _growthRate];
61 if (_used > 0)
62 {
63 Array.Copy(_stack, array, _used);
64 }
65 _stack = array;
67 }
68 return _stack[_used++];
69 }
static string Xml_StackOverflow
Definition SR.cs:22
Definition SR.cs:7
object[] _stack
Definition HWStack.cs:5
readonly int _growthRate
Definition HWStack.cs:7
readonly int _limit
Definition HWStack.cs:13

References System.Xml.HWStack._growthRate, System.Xml.HWStack._limit, System.Xml.HWStack._size, System.Xml.HWStack._stack, System.Xml.HWStack._used, System.array, System.Array.Copy(), System.SR.Xml_StackOverflow, and System.Xml.XmlException.

Referenced by System.Xml.Xsl.XsltOld.OutputScopeManager.OutputScopeManager(), System.Xml.Schema.XdrBuilder.Push(), System.Xml.Schema.XsdBuilder.Push(), System.Xml.Schema.DtdValidator.Push(), System.Xml.Schema.XdrValidator.Push(), System.Xml.Schema.XmlSchemaValidator.Push(), System.Xml.Schema.XsdValidator.Push(), System.Xml.Schema.XdrBuilder.PushGroupInfo(), System.Xml.Xsl.XsltOld.Processor.PushNewFrame(), and System.Xml.Xsl.XsltOld.OutputScopeManager.PushScope().