terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches
XmlEncodedRawTextWriterIndent.cs
Go to the documentation of this file.
1using System;
2using System.IO;
3
4namespace System.Xml
5{
6 // Token: 0x02000033 RID: 51
8 {
9 // Token: 0x06000188 RID: 392 RVA: 0x00005EE8 File Offset: 0x000040E8
11 : base(writer, settings)
12 {
13 this.Init(settings);
14 }
15
16 // Token: 0x06000189 RID: 393 RVA: 0x00005F04 File Offset: 0x00004104
18 : base(stream, settings)
19 {
20 this.Init(settings);
21 }
22
23 // Token: 0x0600018A RID: 394 RVA: 0x00005F20 File Offset: 0x00004120
24 public override void WriteDocType(string name, string pubid, string sysid, string subset)
25 {
26 if (!this.mixedContent)
27 {
28 int bufPos = this.bufPos;
29 int contentPos = this.contentPos;
30 this.WriteIndent();
31 }
32 base.WriteDocType(name, pubid, sysid, subset);
33 }
34
35 // Token: 0x0600018B RID: 395 RVA: 0x00005F54 File Offset: 0x00004154
36 public override void WriteStartElement(string prefix, string localName, string ns)
37 {
38 if (this.mixedContent)
39 {
40 return;
41 }
42 int bufPos = this.bufPos;
43 int contentPos = this.contentPos;
44 }
45
46 // Token: 0x0600018C RID: 396 RVA: 0x00005FC8 File Offset: 0x000041C8
47 internal override void StartElementContent()
48 {
49 int num = this.indentLevel;
51 }
52
53 // Token: 0x0600018D RID: 397 RVA: 0x00006000 File Offset: 0x00004200
58
59 // Token: 0x0600018E RID: 398 RVA: 0x00006014 File Offset: 0x00004214
60 internal override void WriteEndElement(string prefix, string localName, string ns)
61 {
62 int num = this.indentLevel;
63 bool flag = this.mixedContent;
64 this.indentLevel = num;
65 if (!flag)
66 {
67 int contentPos = this.contentPos;
68 int bufPos = this.bufPos;
69 int textPos = this.textPos;
70 this.WriteIndent();
71 }
72 BitStack bitStack = this.mixedContentStack;
73 uint curr = bitStack.curr;
74 int stackPos = bitStack.stackPos;
75 uint[] bitStack2 = bitStack.bitStack;
76 bitStack.stackPos = stackPos;
77 bitStack.curr = (uint)stackPos;
78 this.mixedContent = curr != 0U;
79 base.WriteEndElement(prefix, localName, ns);
80 }
81
82 // Token: 0x0600018F RID: 399 RVA: 0x0000609C File Offset: 0x0000429C
83 internal override void WriteFullEndElement(string prefix, string localName, string ns)
84 {
85 int num = this.indentLevel;
86 bool flag = this.mixedContent;
87 this.indentLevel = num;
88 if (!flag)
89 {
90 int contentPos = this.contentPos;
91 int bufPos = this.bufPos;
92 int textPos = this.textPos;
93 this.WriteIndent();
94 }
95 BitStack bitStack = this.mixedContentStack;
96 uint curr = bitStack.curr;
97 int stackPos = bitStack.stackPos;
98 uint[] bitStack2 = bitStack.bitStack;
99 bitStack.stackPos = stackPos;
100 bitStack.curr = (uint)stackPos;
101 this.mixedContent = curr != 0U;
102 base.WriteFullEndElement(prefix, localName, ns);
103 }
104
105 // Token: 0x06000190 RID: 400 RVA: 0x00006124 File Offset: 0x00004324
106 public override void WriteStartAttribute(string prefix, string localName, string ns)
107 {
108 if (this.newLineOnAttributes)
109 {
110 this.WriteIndent();
111 }
112 base.WriteStartAttribute(prefix, localName, ns);
113 }
114
115 // Token: 0x06000191 RID: 401 RVA: 0x00006148 File Offset: 0x00004348
116 public override void WriteCData(string text)
117 {
118 this.mixedContent = true;
119 base.WriteCData(text);
120 }
121
122 // Token: 0x06000192 RID: 402 RVA: 0x00006164 File Offset: 0x00004364
123 public override void WriteComment(string text)
124 {
125 if (!this.mixedContent)
126 {
127 int bufPos = this.bufPos;
128 int contentPos = this.contentPos;
129 this.WriteIndent();
130 }
131 base.WriteComment(text);
132 }
133
134 // Token: 0x06000193 RID: 403 RVA: 0x00006194 File Offset: 0x00004394
135 public override void WriteProcessingInstruction(string target, string text)
136 {
137 if (!this.mixedContent)
138 {
139 int bufPos = this.bufPos;
140 int contentPos = this.contentPos;
141 this.WriteIndent();
142 }
143 base.WriteProcessingInstruction(target, text);
144 }
145
146 // Token: 0x06000194 RID: 404 RVA: 0x000061C8 File Offset: 0x000043C8
147 public override void WriteEntityRef(string name)
148 {
149 this.mixedContent = true;
150 base.WriteEntityRef(name);
151 }
152
153 // Token: 0x06000195 RID: 405 RVA: 0x000061E4 File Offset: 0x000043E4
154 public override void WriteCharEntity(char ch)
155 {
156 this.mixedContent = true;
157 base.WriteCharEntity(ch);
158 }
159
160 // Token: 0x06000196 RID: 406 RVA: 0x00006200 File Offset: 0x00004400
161 public override void WriteSurrogateCharEntity(char lowChar, char highChar)
162 {
163 this.mixedContent = true;
164 base.WriteSurrogateCharEntity(lowChar, highChar);
165 }
166
167 // Token: 0x06000197 RID: 407 RVA: 0x0000621C File Offset: 0x0000441C
168 public override void WriteWhitespace(string ws)
169 {
170 this.mixedContent = true;
171 base.WriteWhitespace(ws);
172 }
173
174 // Token: 0x06000198 RID: 408 RVA: 0x00006238 File Offset: 0x00004438
175 public override void WriteString(string text)
176 {
177 this.mixedContent = true;
178 base.WriteString(text);
179 }
180
181 // Token: 0x06000199 RID: 409 RVA: 0x00006254 File Offset: 0x00004454
182 public override void WriteChars(char[] buffer, int index, int count)
183 {
184 this.mixedContent = true;
185 base.WriteChars(buffer, index, count);
186 }
187
188 // Token: 0x0600019A RID: 410 RVA: 0x00006274 File Offset: 0x00004474
189 public override void WriteRaw(char[] buffer, int index, int count)
190 {
191 this.mixedContent = true;
192 base.WriteRaw(buffer, index, count);
193 }
194
195 // Token: 0x0600019B RID: 411 RVA: 0x00006294 File Offset: 0x00004494
196 public override void WriteRaw(string data)
197 {
198 this.mixedContent = true;
199 base.WriteRaw(data);
200 }
201
202 // Token: 0x0600019C RID: 412 RVA: 0x000062B0 File Offset: 0x000044B0
203 public override void WriteBase64(byte[] buffer, int index, int count)
204 {
205 this.mixedContent = true;
206 base.WriteBase64(buffer, index, count);
207 }
208
209 // Token: 0x0600019D RID: 413 RVA: 0x000062D0 File Offset: 0x000044D0
210 private void Init(XmlWriterSettings settings)
211 {
212 string text = settings.indentChars;
214 bool flag = settings.newLineOnAttributes;
216 if (this.checkCharacters)
217 {
218 bool flag2 = this.newLineOnAttributes;
219 string text2 = this.indentChars;
220 string newLineChars;
221 if (flag2)
222 {
223 base.ValidateContentChars(text2, "IndentChars", true);
225 return;
226 }
227 long num = 0L;
228 base.ValidateContentChars(newLineChars, "NewLineChars", num != 0L);
229 if (this.newLineHandling != NewLineHandling.Replace)
230 {
231 string newLineChars2 = this.newLineChars;
232 long num2 = 0L;
233 base.ValidateContentChars(newLineChars2, "NewLineChars", num2 != 0L);
234 return;
235 }
236 }
237 }
238
239 // Token: 0x0600019E RID: 414 RVA: 0x00006360 File Offset: 0x00004560
240 private void WriteIndent()
241 {
242 string newLineChars = this.newLineChars;
243 base.RawText(newLineChars);
244 int num = this.indentLevel;
245 string text = this.indentChars;
246 base.RawText(text);
247 }
248
249 // Token: 0x040000A7 RID: 167
250 protected int indentLevel;
251
252 // Token: 0x040000A8 RID: 168
253 protected bool newLineOnAttributes;
254
255 // Token: 0x040000A9 RID: 169
256 protected string indentChars;
257
258 // Token: 0x040000AA RID: 170
259 protected bool mixedContent;
260
261 // Token: 0x040000AB RID: 171
263
264 // Token: 0x040000AC RID: 172
266 }
267}
class f__AnonymousType0<< Count > j__TPar
override void WriteRaw(char[] buffer, int index, int count)
override void WriteSurrogateCharEntity(char lowChar, char highChar)
override void WriteFullEndElement(string prefix, string localName, string ns)
override void WriteStartAttribute(string prefix, string localName, string ns)
override void WriteChars(char[] buffer, int index, int count)
override void WriteEndElement(string prefix, string localName, string ns)
override void WriteDocType(string name, string pubid, string sysid, string subset)
XmlEncodedRawTextWriterIndent(TextWriter writer, XmlWriterSettings settings)
override void WriteBase64(byte[] buffer, int index, int count)
override void WriteProcessingInstruction(string target, string text)
override void WriteStartElement(string prefix, string localName, string ns)
XmlEncodedRawTextWriterIndent(Stream stream, XmlWriterSettings settings)
override void OnRootElement(ConformanceLevel currentConformanceLevel)