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

◆ XmlQueryStaticData() [2/2]

System.Xml.Xsl.Runtime.XmlQueryStaticData.XmlQueryStaticData ( byte[] data,
Type[] ebTypes )
inline

Definition at line 62 of file XmlQueryStaticData.cs.

63 {
65 XmlQueryDataReader xmlQueryDataReader = new XmlQueryDataReader(input);
66 int num = xmlQueryDataReader.Read7BitEncodedInt();
67 if ((num & -256) > 0)
68 {
69 throw new NotSupportedException();
70 }
71 _defaultWriterSettings = new XmlWriterSettings(xmlQueryDataReader);
72 int num2 = xmlQueryDataReader.ReadInt32();
73 if (num2 != 0)
74 {
76 for (int i = 0; i < num2; i++)
77 {
79 }
80 }
81 num2 = xmlQueryDataReader.ReadInt32();
82 if (num2 != 0)
83 {
84 _names = new string[num2];
85 for (int j = 0; j < num2; j++)
86 {
87 _names[j] = xmlQueryDataReader.ReadString();
88 }
89 }
90 num2 = xmlQueryDataReader.ReadInt32();
91 if (num2 != 0)
92 {
93 _prefixMappingsList = new StringPair[num2][];
94 for (int k = 0; k < num2; k++)
95 {
96 int num3 = xmlQueryDataReader.ReadInt32();
97 _prefixMappingsList[k] = new StringPair[num3];
98 for (int l = 0; l < num3; l++)
99 {
100 _prefixMappingsList[k][l] = new StringPair(xmlQueryDataReader.ReadString(), xmlQueryDataReader.ReadString());
101 }
102 }
103 }
104 num2 = xmlQueryDataReader.ReadInt32();
105 if (num2 != 0)
106 {
107 _filters = new Int32Pair[num2];
108 for (int m = 0; m < num2; m++)
109 {
110 _filters[m] = new Int32Pair(xmlQueryDataReader.Read7BitEncodedInt(), xmlQueryDataReader.Read7BitEncodedInt());
111 }
112 }
113 num2 = xmlQueryDataReader.ReadInt32();
114 if (num2 != 0)
115 {
116 _types = new XmlQueryType[num2];
117 for (int n = 0; n < num2; n++)
118 {
119 _types[n] = XmlQueryTypeFactory.Deserialize(xmlQueryDataReader);
120 }
121 }
122 num2 = xmlQueryDataReader.ReadInt32();
123 if (num2 != 0)
124 {
125 _collations = new XmlCollation[num2];
126 for (int num4 = 0; num4 < num2; num4++)
127 {
128 _collations[num4] = new XmlCollation(xmlQueryDataReader);
129 }
130 }
131 num2 = xmlQueryDataReader.ReadInt32();
132 if (num2 != 0)
133 {
134 _globalNames = new string[num2];
135 for (int num5 = 0; num5 < num2; num5++)
136 {
137 _globalNames[num5] = xmlQueryDataReader.ReadString();
138 }
139 }
140 num2 = xmlQueryDataReader.ReadInt32();
141 if (num2 != 0)
142 {
143 _earlyBound = new EarlyBoundInfo[num2];
144 for (int num6 = 0; num6 < num2; num6++)
145 {
146 _earlyBound[num6] = new EarlyBoundInfo(xmlQueryDataReader.ReadString(), ebTypes[num6]);
147 }
148 }
149 xmlQueryDataReader.Dispose();
150 }
readonly XmlWriterSettings _defaultWriterSettings
readonly IList< WhitespaceRule > _whitespaceRules

References System.Xml.Xsl.Runtime.XmlQueryStaticData._collations, System.Xml.Xsl.Runtime.XmlQueryStaticData._defaultWriterSettings, System.Xml.Xsl.Runtime.XmlQueryStaticData._earlyBound, System.Xml.Xsl.Runtime.XmlQueryStaticData._filters, System.Xml.Xsl.Runtime.XmlQueryStaticData._globalNames, System.Xml.Xsl.Runtime.XmlQueryStaticData._names, System.Xml.Xsl.Runtime.XmlQueryStaticData._prefixMappingsList, System.Xml.Xsl.Runtime.XmlQueryStaticData._types, System.Xml.Xsl.Runtime.XmlQueryStaticData._whitespaceRules, System.Xml.Xsl.XmlQueryTypeFactory.Deserialize(), System.Xml.Dictionary, and System.input.