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
HtmlUtf8RawTextWriter.cs
Go to the documentation of this file.
1using System;
2using System.IO;
4using System.Text;
5
6namespace System.Xml
7{
8 // Token: 0x02000014 RID: 20
10 {
11 // Token: 0x0600004E RID: 78 RVA: 0x000030E8 File Offset: 0x000012E8
13 : base(stream, settings)
14 {
15 this.Init(settings);
16 }
17
18 // Token: 0x0600004F RID: 79 RVA: 0x00003104 File Offset: 0x00001304
20 {
21 }
22
23 // Token: 0x06000050 RID: 80 RVA: 0x00003114 File Offset: 0x00001314
24 internal override void WriteXmlDeclaration(string xmldecl)
25 {
26 }
27
28 // Token: 0x06000051 RID: 81 RVA: 0x00003124 File Offset: 0x00001324
29 public override void WriteDocType(string name, string pubid, string sysid, string subset)
30 {
31 base.RawText("<!DOCTYPE ");
32 if (pubid != null)
33 {
34 base.RawText(" PUBLIC \"");
35 base.RawText(pubid);
36 if (sysid != null)
37 {
38 return;
39 }
40 }
41 else
42 {
43 if (sysid == null)
44 {
45 return;
46 }
47 base.RawText(" SYSTEM \"");
48 base.RawText(sysid);
49 }
50 byte[] bufBytes = this.bufBytes;
51 if (subset != null)
52 {
53 byte[] bufBytes2 = this.bufBytes;
54 base.RawText(subset);
55 byte[] bufBytes3 = this.bufBytes;
56 }
57 byte[] bufBytes4 = this.bufBytes;
58 }
59
60 // Token: 0x06000052 RID: 82 RVA: 0x000031A4 File Offset: 0x000013A4
61 public override void WriteStartElement(string prefix, string localName, string ns)
62 {
65 if (ns._stringLength != 0)
66 {
67 int num = 128;
69 base.WriteStartElement(prefix, localName, ns);
70 return;
71 }
72 byte[] bufBytes = this.bufBytes;
73 base.RawText(localName);
74 int bufPos = this.bufPos;
76 }
77
78 // Token: 0x06000053 RID: 83 RVA: 0x00003200 File Offset: 0x00001400
79 internal override void StartElementContent()
80 {
81 byte[] bufBytes = this.bufBytes;
82 int bufPos = this.bufPos;
85 }
86
87 // Token: 0x06000054 RID: 84 RVA: 0x00003230 File Offset: 0x00001430
88 internal override void WriteEndElement(string prefix, string localName, string ns)
89 {
90 if (ns._stringLength != 0)
91 {
92 base.WriteEndElement(prefix, localName, ns);
93 return;
94 }
96 byte[] bufBytes = this.bufBytes;
97 base.RawText(localName);
98 byte[] bufBytes2 = this.bufBytes;
100 byte[] stack = byteStack.stack;
102 int size = byteStack.size;
103 }
104
105 // Token: 0x06000055 RID: 85 RVA: 0x000032A8 File Offset: 0x000014A8
106 internal override void WriteFullEndElement(string prefix, string localName, string ns)
107 {
108 if (ns._stringLength != 0)
109 {
110 base.WriteFullEndElement(prefix, localName, ns);
111 return;
112 }
114 byte[] bufBytes = this.bufBytes;
115 byte[] bufBytes2 = this.bufBytes;
116 base.RawText(localName);
117 byte[] bufBytes3 = this.bufBytes;
119 byte[] stack = byteStack.stack;
121 int size = byteStack.size;
122 }
123
124 // Token: 0x06000056 RID: 86 RVA: 0x00003328 File Offset: 0x00001528
125 public override void WriteStartAttribute(string prefix, string localName, string ns)
126 {
127 if (ns._stringLength != 0)
128 {
129 base.WriteStartAttribute(prefix, localName, ns);
130 return;
131 }
132 int bufPos = this.bufPos;
133 byte[] bufBytes = this.bufBytes;
134 int num = 32;
135 base.RawText(localName);
139 }
140
141 // Token: 0x06000057 RID: 87 RVA: 0x0000339C File Offset: 0x0000159C
142 public override void WriteEndAttribute()
143 {
145 if (this.endsWithAmpersand)
146 {
147 this.OutputRestAmps();
148 }
149 byte[] bufBytes = this.bufBytes;
150 int bufPos = this.bufPos;
151 }
152
153 // Token: 0x06000058 RID: 88 RVA: 0x000033E8 File Offset: 0x000015E8
154 public override void WriteProcessingInstruction(string target, string text)
155 {
156 byte[] bufBytes = this.bufBytes;
157 byte[] bufBytes2 = this.bufBytes;
158 base.RawText(target);
159 byte[] bufBytes3 = this.bufBytes;
160 int num = 63;
161 base.WriteCommentOrPi(text, num);
162 byte[] bufBytes4 = this.bufBytes;
163 int bufPos = this.bufPos;
164 int bufLen = this.bufLen;
165 }
166
167 // Token: 0x06000059 RID: 89 RVA: 0x00003448 File Offset: 0x00001648
168 public override void WriteString(string text)
169 {
170 if (text != null)
171 {
173 return;
174 }
175 if (this.inAttributeValue)
176 {
177 return;
178 }
179 }
180
181 // Token: 0x0600005A RID: 90 RVA: 0x0000346C File Offset: 0x0000166C
182 public override void WriteEntityRef(string name)
183 {
184 /*
185An exception occurred when decompiling this method (0600005A)
186
187ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void System.Xml.HtmlUtf8RawTextWriter::WriteEntityRef(System.String)
188
189 ---> System.Exception: Basic block has to end with unconditional control flow.
190{
191 Block_0:
192 stloc:string(var_0_0A, call:string(Res::GetString, ldstr:string("Operation is not valid due to the current state of the object.")))
193}
194
195 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
196 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
197 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
198 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
199 --- End of inner exception stack trace ---
200 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
201 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
202*/;
203 }
204
205 // Token: 0x0600005B RID: 91 RVA: 0x00003484 File Offset: 0x00001684
206 public override void WriteCharEntity(char ch)
207 {
208 /*
209An exception occurred when decompiling this method (0600005B)
210
211ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void System.Xml.HtmlUtf8RawTextWriter::WriteCharEntity(System.Char)
212
213 ---> System.Exception: Basic block has to end with unconditional control flow.
214{
215 Block_0:
216 stloc:string(var_0_0A, call:string(Res::GetString, ldstr:string("Operation is not valid due to the current state of the object.")))
217}
218
219 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
220 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
221 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
222 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
223 --- End of inner exception stack trace ---
224 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
225 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
226*/;
227 }
228
229 // Token: 0x0600005C RID: 92 RVA: 0x0000349C File Offset: 0x0000169C
230 public override void WriteSurrogateCharEntity(char lowChar, char highChar)
231 {
232 /*
233An exception occurred when decompiling this method (0600005C)
234
235ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void System.Xml.HtmlUtf8RawTextWriter::WriteSurrogateCharEntity(System.Char,System.Char)
236
237 ---> System.Exception: Basic block has to end with unconditional control flow.
238{
239 Block_0:
240 stloc:string(var_0_0A, call:string(Res::GetString, ldstr:string("Operation is not valid due to the current state of the object.")))
241}
242
243 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
244 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
245 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
246 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
247 --- End of inner exception stack trace ---
248 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
249 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
250*/;
251 }
252
253 // Token: 0x0600005D RID: 93 RVA: 0x000034B4 File Offset: 0x000016B4
254 public override void WriteChars(char[] buffer, int index, int count)
255 {
256 if (this.inAttributeValue)
257 {
258 return;
259 }
260 }
261
262 // Token: 0x0600005E RID: 94 RVA: 0x000034CC File Offset: 0x000016CC
263 private void Init(XmlWriterSettings settings)
264 {
265 string text = settings.mediaType;
267 bool flag = settings.doNotEscapeUriAttributes;
269 }
270
271 // Token: 0x0600005F RID: 95 RVA: 0x000034F8 File Offset: 0x000016F8
272 protected void WriteMetaElement()
273 {
274 base.RawText("<META http-equiv=\"Content-Type\"");
275 if (this.mediaType == null)
276 {
277 this.mediaType = "text/html";
278 }
279 base.RawText(" content=\"");
280 string text = this.mediaType;
281 base.RawText(text);
282 base.RawText("; charset=");
284 base.RawText("\">");
285 }
286
287 // Token: 0x06000060 RID: 96 RVA: 0x0000355C File Offset: 0x0000175C
288 protected unsafe void WriteHtmlElementTextBlock(char* pSrc, char* pSrcEnd)
289 {
291 base.WriteElementTextBlock(pSrc, pSrcEnd);
292 }
293
294 // Token: 0x06000061 RID: 97 RVA: 0x00003584 File Offset: 0x00001784
295 protected unsafe void WriteHtmlAttributeTextBlock(char* pSrc, char* pSrcEnd)
296 {
299 {
301 return;
302 }
303 this.WriteUriAttributeText(pSrc, pSrcEnd);
304 }
305
306 // Token: 0x06000062 RID: 98 RVA: 0x000035CC File Offset: 0x000017CC
307 private unsafe void WriteHtmlAttributeText(char* pSrc, char* pSrcEnd)
308 {
309 if (this.endsWithAmpersand)
310 {
311 this.OutputRestAmps();
312 }
313 if (this.bufBytes != null)
314 {
315 return;
316 }
319 }
320
321 // Token: 0x06000063 RID: 99 RVA: 0x0000363C File Offset: 0x0000183C
322 private unsafe void WriteUriAttributeText(char* pSrc, char* pSrcEnd)
323 {
324 if (this.endsWithAmpersand)
325 {
326 this.OutputRestAmps();
327 }
328 if (this.bufBytes != null)
329 {
330 return;
331 }
334 }
335
336 // Token: 0x06000064 RID: 100 RVA: 0x000036B0 File Offset: 0x000018B0
337 private void OutputRestAmps()
338 {
339 byte[] bufBytes = this.bufBytes;
340 byte[] bufBytes2 = this.bufBytes;
341 byte[] bufBytes3 = this.bufBytes;
342 byte[] bufBytes4 = this.bufBytes;
343 }
344
345 // Token: 0x0400003D RID: 61
347
348 // Token: 0x0400003E RID: 62
350
351 // Token: 0x0400003F RID: 63
353
354 // Token: 0x04000040 RID: 64
355 private bool endsWithAmpersand;
356
357 // Token: 0x04000041 RID: 65
358 private byte[] uriEscapingBuffer;
359
360 // Token: 0x04000042 RID: 66
361 private string mediaType;
362
363 // Token: 0x04000043 RID: 67
365
366 // Token: 0x04000044 RID: 68
368
369 // Token: 0x04000045 RID: 69
371 }
372}
class f__AnonymousType0<< Count > j__TPar
unsafe void WriteHtmlAttributeTextBlock(char *pSrc, char *pSrcEnd)
void Init(XmlWriterSettings settings)
HtmlUtf8RawTextWriter(Stream stream, XmlWriterSettings settings)
override void WriteStartAttribute(string prefix, string localName, string ns)
unsafe void WriteHtmlElementTextBlock(char *pSrc, char *pSrcEnd)
static TernaryTreeReadOnly elementPropertySearch
override void WriteDocType(string name, string pubid, string sysid, string subset)
override void WriteEntityRef(string name)
static TernaryTreeReadOnly attributePropertySearch
unsafe void WriteUriAttributeText(char *pSrc, char *pSrcEnd)
override void WriteFullEndElement(string prefix, string localName, string ns)
override void WriteXmlDeclaration(string xmldecl)
override void WriteString(string text)
unsafe void WriteHtmlAttributeText(char *pSrc, char *pSrcEnd)
override void WriteProcessingInstruction(string target, string text)
override void WriteChars(char[] buffer, int index, int count)
override void WriteStartElement(string prefix, string localName, string ns)
override void WriteXmlDeclaration(XmlStandalone standalone)
override void WriteSurrogateCharEntity(char lowChar, char highChar)
override void WriteEndElement(string prefix, string localName, string ns)