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
XmlAutoDetectWriter.cs
Go to the documentation of this file.
1using System;
2using System.IO;
3
4namespace System.Xml
5{
6 // Token: 0x02000031 RID: 49
8 {
9 // Token: 0x0600012B RID: 299 RVA: 0x000047C0 File Offset: 0x000029C0
16
17 // Token: 0x0600012C RID: 300 RVA: 0x000047E8 File Offset: 0x000029E8
22
23 // Token: 0x0600012D RID: 301 RVA: 0x000047FC File Offset: 0x000029FC
28
29 // Token: 0x0600012E RID: 302 RVA: 0x00004810 File Offset: 0x00002A10
30 public override void WriteDocType(string name, string pubid, string sysid, string subset)
31 {
32 if (this.wrapped == null)
33 {
35 }
36 }
37
38 // Token: 0x0600012F RID: 303 RVA: 0x0000482C File Offset: 0x00002A2C
39 public override void WriteStartElement(string prefix, string localName, string ns)
40 {
41 if (this.wrapped == null && ns._stringLength == 0)
42 {
43 bool flag = XmlAutoDetectWriter.IsHtmlTag(localName);
44 return;
45 }
47 }
48
49 // Token: 0x06000130 RID: 304 RVA: 0x00004858 File Offset: 0x00002A58
50 public override void WriteStartAttribute(string prefix, string localName, string ns)
51 {
52 if (this == null)
53 {
55 }
56 }
57
58 // Token: 0x06000131 RID: 305 RVA: 0x00004870 File Offset: 0x00002A70
59 public override void WriteEndAttribute()
60 {
62 }
63
64 // Token: 0x06000132 RID: 306 RVA: 0x00004884 File Offset: 0x00002A84
65 public override void WriteCData(string text)
66 {
67 bool flag = this.TextBlockCreatesWriter(text);
69 }
70
71 // Token: 0x06000133 RID: 307 RVA: 0x000048A8 File Offset: 0x00002AA8
72 public override void WriteComment(string text)
73 {
74 if (this.wrapped == null)
75 {
77 }
78 }
79
80 // Token: 0x06000134 RID: 308 RVA: 0x000048C4 File Offset: 0x00002AC4
81 public override void WriteProcessingInstruction(string name, string text)
82 {
83 if (this.wrapped == null)
84 {
86 }
87 }
88
89 // Token: 0x06000135 RID: 309 RVA: 0x000048E0 File Offset: 0x00002AE0
90 public override void WriteWhitespace(string ws)
91 {
92 if (this.wrapped == null)
93 {
95 }
96 }
97
98 // Token: 0x06000136 RID: 310 RVA: 0x000048FC File Offset: 0x00002AFC
99 public override void WriteString(string text)
100 {
101 bool flag = this.TextBlockCreatesWriter(text);
103 }
104
105 // Token: 0x06000137 RID: 311 RVA: 0x00004920 File Offset: 0x00002B20
106 public override void WriteChars(char[] buffer, int index, int count)
107 {
108 }
109
110 // Token: 0x06000138 RID: 312 RVA: 0x00004930 File Offset: 0x00002B30
111 public override void WriteRaw(char[] buffer, int index, int count)
112 {
113 }
114
115 // Token: 0x06000139 RID: 313 RVA: 0x00004940 File Offset: 0x00002B40
116 public override void WriteRaw(string data)
117 {
118 bool flag = this.TextBlockCreatesWriter(data);
120 }
121
122 // Token: 0x0600013A RID: 314 RVA: 0x00004964 File Offset: 0x00002B64
123 public override void WriteEntityRef(string name)
124 {
125 if (this.wrapped == null)
126 {
128 }
129 }
130
131 // Token: 0x0600013B RID: 315 RVA: 0x00004980 File Offset: 0x00002B80
132 public override void WriteCharEntity(char ch)
133 {
134 if (this.wrapped == null)
135 {
137 }
138 }
139
140 // Token: 0x0600013C RID: 316 RVA: 0x0000499C File Offset: 0x00002B9C
141 public override void WriteSurrogateCharEntity(char lowChar, char highChar)
142 {
143 if (this.wrapped == null)
144 {
146 }
147 }
148
149 // Token: 0x0600013D RID: 317 RVA: 0x000049B8 File Offset: 0x00002BB8
150 public override void WriteBase64(byte[] buffer, int index, int count)
151 {
152 if (this.wrapped == null)
153 {
155 }
156 }
157
158 // Token: 0x0600013E RID: 318 RVA: 0x000049D4 File Offset: 0x00002BD4
159 public override void WriteBinHex(byte[] buffer, int index, int count)
160 {
161 if (this.wrapped == null)
162 {
164 }
165 }
166
167 // Token: 0x0600013F RID: 319 RVA: 0x000049F0 File Offset: 0x00002BF0
168 public override void Close()
169 {
170 if (this.wrapped == null)
171 {
173 }
174 }
175
176 // Token: 0x06000140 RID: 320 RVA: 0x00004A0C File Offset: 0x00002C0C
177 public override void Flush()
178 {
179 if (this.wrapped == null)
180 {
182 }
183 }
184
185 // Token: 0x06000141 RID: 321 RVA: 0x00004A28 File Offset: 0x00002C28
186 public override void WriteValue(string value)
187 {
188 if (this.wrapped == null)
189 {
191 }
192 }
193
194 // Token: 0x17000038 RID: 56
195 // (set) Token: 0x06000142 RID: 322 RVA: 0x00004A44 File Offset: 0x00002C44
197 {
198 set
199 {
202 if (xmlRawWriter == null)
203 {
205 }
206 }
207 }
208
209 // Token: 0x06000143 RID: 323 RVA: 0x00004A6C File Offset: 0x00002C6C
210 internal override void WriteXmlDeclaration(XmlStandalone standalone)
211 {
212 if (this.wrapped == null)
213 {
215 }
216 }
217
218 // Token: 0x06000144 RID: 324 RVA: 0x00004A88 File Offset: 0x00002C88
219 internal override void WriteXmlDeclaration(string xmldecl)
220 {
221 if (this.wrapped == null)
222 {
224 }
225 }
226
227 // Token: 0x06000145 RID: 325 RVA: 0x00004AA4 File Offset: 0x00002CA4
228 internal override void StartElementContent()
229 {
231 }
232
233 // Token: 0x06000146 RID: 326 RVA: 0x00004AB8 File Offset: 0x00002CB8
234 internal override void WriteEndElement(string prefix, string localName, string ns)
235 {
237 }
238
239 // Token: 0x06000147 RID: 327 RVA: 0x00004ACC File Offset: 0x00002CCC
240 internal override void WriteFullEndElement(string prefix, string localName, string ns)
241 {
243 }
244
245 // Token: 0x06000148 RID: 328 RVA: 0x00004AE0 File Offset: 0x00002CE0
246 internal override void WriteNamespaceDeclaration(string prefix, string ns)
247 {
248 if (this.wrapped == null)
249 {
251 }
252 }
253
254 // Token: 0x17000039 RID: 57
255 // (get) Token: 0x06000149 RID: 329 RVA: 0x00004AFC File Offset: 0x00002CFC
257 {
258 get
259 {
260 /*
261An exception occurred when decompiling this method (06000149)
262
263ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean System.Xml.XmlAutoDetectWriter::get_SupportsNamespaceDeclarationInChunks()
264
265 ---> System.Exception: Basic block has to end with unconditional control flow.
266{
267 Block_0:
268 stloc:XmlRawWriter(var_0_06, ldfld:XmlRawWriter(XmlAutoDetectWriter::wrapped, ldloc:XmlAutoDetectWriter(this)))
269}
270
271 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
272 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
273 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
274 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
275 --- End of inner exception stack trace ---
276 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
277 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
278*/;
279 }
280 }
281
282 // Token: 0x0600014A RID: 330 RVA: 0x00004B10 File Offset: 0x00002D10
283 internal override void WriteStartNamespaceDeclaration(string prefix)
284 {
285 if (this == null)
286 {
288 }
289 }
290
291 // Token: 0x0600014B RID: 331 RVA: 0x00004B28 File Offset: 0x00002D28
292 internal override void WriteEndNamespaceDeclaration()
293 {
295 }
296
297 // Token: 0x0600014C RID: 332 RVA: 0x00004B3C File Offset: 0x00002D3C
298 private static bool IsHtmlTag(string tagName)
299 {
300 return true;
301 }
302
303 // Token: 0x0600014D RID: 333 RVA: 0x00004B54 File Offset: 0x00002D54
305 {
306 if (this.wrapped != null)
307 {
308 return;
309 }
310 this.CreateWrappedWriter(outMethod);
311 }
312
313 // Token: 0x0600014E RID: 334 RVA: 0x00004B74 File Offset: 0x00002D74
315 {
316 if (this.wrapped == null)
317 {
319 }
320 return true;
321 }
322
323 // Token: 0x0600014F RID: 335 RVA: 0x00004B9C File Offset: 0x00002D9C
325 {
329 int num = 1;
330 xmlWriterSettings.Indent = num != 0;
332 int num2 = 1;
335 if (textWriter != null)
336 {
338 {
339 return;
340 }
341 }
342 else if (XmlWriter.Create(this.strm, xmlWriterSettings2) != null)
343 {
344 }
348 if (xmlEventCache.singleText.idxStr == 0)
349 {
350 int num3 = xmlEventCache.NewEvent();
351 XmlEventCache.XmlEvent[] pageCurr = xmlEventCache.pageCurr;
353 xmlRawWriter = this.wrapped;
354 }
355 xmlEventCache2.EventsToWriter(xmlRawWriter);
357 if (onRemoveWriter != null)
358 {
360 IntPtr invoke_impl = onRemoveWriter.invoke_impl;
361 IntPtr method_code = onRemoveWriter.method_code;
362 IntPtr method = onRemoveWriter.method;
363 return;
364 }
365 }
366
367 // Token: 0x04000081 RID: 129
369
370 // Token: 0x04000082 RID: 130
372
373 // Token: 0x04000083 RID: 131
375
376 // Token: 0x04000084 RID: 132
378
379 // Token: 0x04000085 RID: 133
381
382 // Token: 0x04000086 RID: 134
383 private Stream strm;
384 }
385}
class f__AnonymousType0<< Count > j__TPar
override void WriteBase64(byte[] buffer, int index, int count)
void EnsureWrappedWriter(XmlOutputMethod outMethod)
XmlAutoDetectWriter(XmlWriterSettings writerSettings)
override void WriteXmlDeclaration(XmlStandalone standalone)
override void WriteXmlDeclaration(string xmldecl)
override void WriteBinHex(byte[] buffer, int index, int count)
override void WriteString(string text)
override void WriteCData(string text)
bool TextBlockCreatesWriter(string textBlock)
override void WriteRaw(char[] buffer, int index, int count)
override void WriteRaw(string data)
override void WriteStartNamespaceDeclaration(string prefix)
override void WriteProcessingInstruction(string name, string text)
override void WriteNamespaceDeclaration(string prefix, string ns)
override void WriteSurrogateCharEntity(char lowChar, char highChar)
override void WriteChars(char[] buffer, int index, int count)
override void WriteWhitespace(string ws)
XmlAutoDetectWriter(Stream strm, XmlWriterSettings writerSettings)
override void WriteValue(string value)
override void WriteStartAttribute(string prefix, string localName, string ns)
override void WriteComment(string text)
override void WriteEntityRef(string name)
void CreateWrappedWriter(XmlOutputMethod outMethod)
XmlAutoDetectWriter(TextWriter textWriter, XmlWriterSettings writerSettings)
static bool IsHtmlTag(string tagName)
override void WriteDocType(string name, string pubid, string sysid, string subset)
override void WriteStartElement(string prefix, string localName, string ns)
override void WriteCharEntity(char ch)
override void WriteFullEndElement(string prefix, string localName, string ns)
override void WriteEndElement(string prefix, string localName, string ns)
override IXmlNamespaceResolver NamespaceResolver
void EventsToWriter(XmlWriter writer)
static XmlWriter Create(Stream output, XmlWriterSettings settings)
Definition XmlWriter.cs:118
static XmlCharType Instance
bool IsOnlyWhitespace(string str)