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
XmlUtf8RawTextWriterIndent.cs
Go to the documentation of this file.
1using System;
2using System.IO;
3
4namespace System.Xml
5{
6 // Token: 0x0200004D RID: 77
8 {
9 // Token: 0x060003B1 RID: 945 RVA: 0x0000EC88 File Offset: 0x0000CE88
11 : base(stream, settings)
12 {
13 this.Init(settings);
14 }
15
16 // Token: 0x060003B2 RID: 946 RVA: 0x0000ECA4 File Offset: 0x0000CEA4
17 public override void WriteDocType(string name, string pubid, string sysid, string subset)
18 {
19 if (!this.mixedContent)
20 {
21 int bufPos = this.bufPos;
22 int contentPos = this.contentPos;
23 this.WriteIndent();
24 }
25 base.WriteDocType(name, pubid, sysid, subset);
26 }
27
28 // Token: 0x060003B3 RID: 947 RVA: 0x0000ECD8 File Offset: 0x0000CED8
29 public override void WriteStartElement(string prefix, string localName, string ns)
30 {
31 if (this.mixedContent)
32 {
33 return;
34 }
35 int bufPos = this.bufPos;
36 int contentPos = this.contentPos;
37 }
38
39 // Token: 0x060003B4 RID: 948 RVA: 0x0000ED38 File Offset: 0x0000CF38
40 internal override void StartElementContent()
41 {
42 int num = this.indentLevel;
44 }
45
46 // Token: 0x060003B5 RID: 949 RVA: 0x0000ED84 File Offset: 0x0000CF84
51
52 // Token: 0x060003B6 RID: 950 RVA: 0x0000ED98 File Offset: 0x0000CF98
53 internal override void WriteEndElement(string prefix, string localName, string ns)
54 {
55 int num = this.indentLevel;
56 bool flag = this.mixedContent;
57 this.indentLevel = num;
58 int bufPos;
59 if (!flag)
60 {
61 int contentPos = this.contentPos;
62 bufPos = this.bufPos;
63 int textPos = this.textPos;
64 this.WriteIndent();
65 }
66 bool flag2 = this.mixedContentStack.PopBit();
67 this.mixedContent = bufPos != 0;
68 base.WriteEndElement(prefix, localName, ns);
69 }
70
71 // Token: 0x060003B7 RID: 951 RVA: 0x0000EDF8 File Offset: 0x0000CFF8
72 internal override void WriteFullEndElement(string prefix, string localName, string ns)
73 {
74 int num = this.indentLevel;
75 bool flag = this.mixedContent;
76 this.indentLevel = num;
77 int bufPos;
78 if (!flag)
79 {
80 int contentPos = this.contentPos;
81 bufPos = this.bufPos;
82 int textPos = this.textPos;
83 this.WriteIndent();
84 }
85 bool flag2 = this.mixedContentStack.PopBit();
86 this.mixedContent = bufPos != 0;
87 base.WriteFullEndElement(prefix, localName, ns);
88 }
89
90 // Token: 0x060003B8 RID: 952 RVA: 0x0000EE58 File Offset: 0x0000D058
91 public override void WriteStartAttribute(string prefix, string localName, string ns)
92 {
93 if (this.newLineOnAttributes)
94 {
95 this.WriteIndent();
96 }
97 base.WriteStartAttribute(prefix, localName, ns);
98 }
99
100 // Token: 0x060003B9 RID: 953 RVA: 0x0000EE7C File Offset: 0x0000D07C
101 public override void WriteCData(string text)
102 {
103 this.mixedContent = true;
104 base.WriteCData(text);
105 }
106
107 // Token: 0x060003BA RID: 954 RVA: 0x0000EE98 File Offset: 0x0000D098
108 public override void WriteComment(string text)
109 {
110 if (!this.mixedContent)
111 {
112 int bufPos = this.bufPos;
113 int contentPos = this.contentPos;
114 this.WriteIndent();
115 }
116 base.WriteComment(text);
117 }
118
119 // Token: 0x060003BB RID: 955 RVA: 0x0000EEC8 File Offset: 0x0000D0C8
120 public override void WriteProcessingInstruction(string target, string text)
121 {
122 if (!this.mixedContent)
123 {
124 int bufPos = this.bufPos;
125 int contentPos = this.contentPos;
126 this.WriteIndent();
127 }
128 base.WriteProcessingInstruction(target, text);
129 }
130
131 // Token: 0x060003BC RID: 956 RVA: 0x0000EEFC File Offset: 0x0000D0FC
132 public override void WriteEntityRef(string name)
133 {
134 this.mixedContent = true;
135 base.WriteEntityRef(name);
136 }
137
138 // Token: 0x060003BD RID: 957 RVA: 0x0000EF18 File Offset: 0x0000D118
139 public override void WriteCharEntity(char ch)
140 {
141 this.mixedContent = true;
142 base.WriteCharEntity(ch);
143 }
144
145 // Token: 0x060003BE RID: 958 RVA: 0x0000EF34 File Offset: 0x0000D134
146 public override void WriteSurrogateCharEntity(char lowChar, char highChar)
147 {
148 this.mixedContent = true;
149 base.WriteSurrogateCharEntity(lowChar, highChar);
150 }
151
152 // Token: 0x060003BF RID: 959 RVA: 0x0000EF50 File Offset: 0x0000D150
153 public override void WriteWhitespace(string ws)
154 {
155 this.mixedContent = true;
156 base.WriteWhitespace(ws);
157 }
158
159 // Token: 0x060003C0 RID: 960 RVA: 0x0000EF6C File Offset: 0x0000D16C
160 public override void WriteString(string text)
161 {
162 this.mixedContent = true;
163 base.WriteString(text);
164 }
165
166 // Token: 0x060003C1 RID: 961 RVA: 0x0000EF88 File Offset: 0x0000D188
167 public override void WriteChars(char[] buffer, int index, int count)
168 {
169 this.mixedContent = true;
170 base.WriteChars(buffer, index, count);
171 }
172
173 // Token: 0x060003C2 RID: 962 RVA: 0x0000EFA8 File Offset: 0x0000D1A8
174 public override void WriteRaw(char[] buffer, int index, int count)
175 {
176 int num = 1;
177 this.mixedContent = num != 0;
178 int bufPos = this.bufPos;
180 }
181
182 // Token: 0x060003C3 RID: 963 RVA: 0x0000EFCC File Offset: 0x0000D1CC
183 public override void WriteRaw(string data)
184 {
185 this.mixedContent = true;
186 base.WriteRaw(data);
187 }
188
189 // Token: 0x060003C4 RID: 964 RVA: 0x0000EFE8 File Offset: 0x0000D1E8
190 public override void WriteBase64(byte[] buffer, int index, int count)
191 {
192 this.mixedContent = true;
193 base.WriteBase64(buffer, index, count);
194 }
195
196 // Token: 0x060003C5 RID: 965 RVA: 0x0000F008 File Offset: 0x0000D208
197 private void Init(XmlWriterSettings settings)
198 {
199 string text = settings.indentChars;
201 bool flag = settings.newLineOnAttributes;
203 if (this.checkCharacters)
204 {
205 bool flag2 = this.newLineOnAttributes;
206 string text2 = this.indentChars;
207 string newLineChars;
208 if (flag2)
209 {
210 base.ValidateContentChars(text2, "IndentChars", true);
212 return;
213 }
214 long num = 0L;
215 base.ValidateContentChars(newLineChars, "NewLineChars", num != 0L);
216 if (this.newLineHandling != NewLineHandling.Replace)
217 {
218 string newLineChars2 = this.newLineChars;
219 long num2 = 0L;
220 base.ValidateContentChars(newLineChars2, "NewLineChars", num2 != 0L);
221 return;
222 }
223 }
224 }
225
226 // Token: 0x060003C6 RID: 966 RVA: 0x0000F098 File Offset: 0x0000D298
227 private void WriteIndent()
228 {
229 string newLineChars = this.newLineChars;
230 base.RawText(newLineChars);
231 int num = this.indentLevel;
232 string text = this.indentChars;
233 base.RawText(text);
234 }
235
236 // Token: 0x040001D8 RID: 472
237 protected int indentLevel;
238
239 // Token: 0x040001D9 RID: 473
240 protected bool newLineOnAttributes;
241
242 // Token: 0x040001DA RID: 474
243 protected string indentChars;
244
245 // Token: 0x040001DB RID: 475
246 protected bool mixedContent;
247
248 // Token: 0x040001DC RID: 476
250
251 // Token: 0x040001DD RID: 477
253 }
254}
class f__AnonymousType0<< Count > j__TPar
override void OnRootElement(ConformanceLevel currentConformanceLevel)
XmlUtf8RawTextWriterIndent(Stream stream, XmlWriterSettings settings)
override void WriteProcessingInstruction(string target, string text)
override void WriteDocType(string name, string pubid, string sysid, string subset)
override void WriteStartAttribute(string prefix, string localName, string ns)
override void WriteFullEndElement(string prefix, string localName, string ns)
override void WriteBase64(byte[] buffer, int index, int count)
override void WriteStartElement(string prefix, string localName, string ns)
override void WriteChars(char[] buffer, int index, int count)
override void WriteRaw(char[] buffer, int index, int count)
override void WriteEndElement(string prefix, string localName, string ns)
override void WriteSurrogateCharEntity(char lowChar, char highChar)