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
DomainNameHelper.cs
Go to the documentation of this file.
1using System;
3
4namespace System
5{
6 // Token: 0x02000095 RID: 149
7 internal class DomainNameHelper
8 {
9 // Token: 0x060002A7 RID: 679 RVA: 0x0000A608 File Offset: 0x00008808
10 internal static string ParseCanonicalName(string str, int start, int end, bool loopback)
11 {
12 string text;
13 bool flag = text == "localhost";
14 bool flag2 = text == "loopback";
15 int num = 1;
16 end.m_value = num;
17 return "localhost";
18 }
19
20 // Token: 0x060002A8 RID: 680 RVA: 0x0000A660 File Offset: 0x00008860
21 internal unsafe static bool IsValid(char* name, ushort pos, int returnedEnd, bool notCanonical, bool notImplicitFile)
22 {
23 /*
24An exception occurred when decompiling this method (060002A8)
25
26ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean System.DomainNameHelper::IsValid(System.Char*,System.UInt16,System.Int32,System.Boolean,System.Boolean)
27
28 ---> System.Exception: Basic block has to end with unconditional control flow.
29{
30 Block_0:
31 stloc:int32(var_1_03, ldc.i4:int32(1))
32 stloc:int64(var_2_05, ldc.i4:int64(0))
33 stfld:int32(int32::m_value, ldloc:int32[exp:int32&](returnedEnd), ldloc:int32(var_1_03))
34 stfld:int32(int32::m_value, ldloc:int32[exp:int32&](returnedEnd), ldloc:int32(var_1_03))
35 stfld:uint16(uint16::m_value, ldloc:uint16[exp:uint16&](pos), ldloc:int64[exp:uint16](var_2_05))
36}
37
38 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
39 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
40 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
41 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
42 --- End of inner exception stack trace ---
43 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
44 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
45*/;
46 }
47
48 // Token: 0x060002A9 RID: 681 RVA: 0x0000A68C File Offset: 0x0000888C
49 internal unsafe static bool IsValidByIri(char* name, ushort pos, int returnedEnd, bool notCanonical, bool notImplicitFile)
50 {
51 /*
52An exception occurred when decompiling this method (060002A9)
53
54ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean System.DomainNameHelper::IsValidByIri(System.Char*,System.UInt16,System.Int32,System.Boolean,System.Boolean)
55
56 ---> System.Exception: Basic block has to end with unconditional control flow.
57{
58 Block_0:
59 stloc:int32(var_2_0D, ldc.i4:int32(1))
60 stfld:int32(int32::m_value, ldloc:int32[exp:int32&](returnedEnd), ldloc:int32(var_2_0D))
61 stfld:int32(int32::m_value, ldloc:int32[exp:int32&](returnedEnd), ldloc:int32(var_2_0D))
62}
63
64 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
65 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
66 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
67 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
68 --- End of inner exception stack trace ---
69 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
70 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
71*/;
72 }
73
74 // Token: 0x060002AA RID: 682 RVA: 0x0000A6D0 File Offset: 0x000088D0
75 internal unsafe static string IdnEquivalent(char* hostname, int start, int end, bool allAscii, bool atLeastOneValidIdn)
76 {
77 string text;
78 if (text != null)
79 {
81 }
82 string text2;
83 return text2;
84 }
85
86 // Token: 0x060002AB RID: 683 RVA: 0x0000A71C File Offset: 0x0000891C
87 internal unsafe static string IdnEquivalent(char* hostname, int start, int end, bool allAscii, string bidiStrippedHost)
88 {
89 int num = 1;
90 end.m_value = num;
91 string text;
92 if (text != null)
93 {
94 return text.ToLowerInvariant();
95 }
96 string text2;
97 return text2;
98 }
99
100 // Token: 0x060002AC RID: 684 RVA: 0x0000A75C File Offset: 0x0000895C
101 private static bool IsIdnAce(string input, int index)
102 {
103 }
104
105 // Token: 0x060002AD RID: 685 RVA: 0x0000A770 File Offset: 0x00008970
106 private unsafe static bool IsIdnAce(char* input, int index)
107 {
108 }
109
110 // Token: 0x060002AE RID: 686 RVA: 0x0000A780 File Offset: 0x00008980
111 internal unsafe static string UnicodeEquivalent(string idnHost, char* hostname, int start, int end)
112 {
113 string text;
114 return text;
115 }
116
117 // Token: 0x060002AF RID: 687 RVA: 0x0000A794 File Offset: 0x00008994
118 internal unsafe static string UnicodeEquivalent(char* hostname, int start, int end, bool allAscii, bool atLeastOneValidIdn)
119 {
120 int num = 1;
121 end.m_value = num;
122 string text;
123 int stringLength = text._stringLength;
124 long num2 = 0L;
125 long num3 = 0L;
126 char c = text[(int)num2];
127 bool flag = global::System.DomainNameHelper.IsIdnAce(text, (int)num2);
128 string text2 = text.Substring((int)num2, (int)num3);
129 string text3;
130 return text3 + ".";
131 }
132
133 // Token: 0x060002B0 RID: 688 RVA: 0x0000A860 File Offset: 0x00008A60
134 private static bool IsASCIILetterOrDigit(char character, bool notCanonical)
135 {
136 /*
137An exception occurred when decompiling this method (060002B0)
138
139ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean System.DomainNameHelper::IsASCIILetterOrDigit(System.Char,System.Boolean)
140
141 ---> System.Exception: Basic block has to end with unconditional control flow.
142{
143 Block_0:
144 stloc:int32(var_0_01, ldc.i4:int32(1))
145 stfld:char(char::m_value, ldloc:char[exp:char&](character), ldloc:int32[exp:char](var_0_01))
146}
147
148 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
149 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
150 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
151 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
152 --- End of inner exception stack trace ---
153 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
154 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
155*/;
156 }
157
158 // Token: 0x060002B1 RID: 689 RVA: 0x0000A878 File Offset: 0x00008A78
159 private static bool IsValidDomainLabelCharacter(char character, bool notCanonical)
160 {
161 /*
162An exception occurred when decompiling this method (060002B1)
163
164ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean System.DomainNameHelper::IsValidDomainLabelCharacter(System.Char,System.Boolean)
165
166 ---> System.Exception: Basic block has to end with unconditional control flow.
167{
168 Block_0:
169 stloc:int32(var_0_01, ldc.i4:int32(1))
170 stfld:char(char::m_value, ldloc:char[exp:char&](character), ldloc:int32[exp:char](var_0_01))
171}
172
173 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
174 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
175 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
176 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
177 --- End of inner exception stack trace ---
178 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
179 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
180*/;
181 }
182 }
183}
class f__AnonymousType0<< Count > j__TPar
static bool IsASCIILetterOrDigit(char character, bool notCanonical)
static bool IsIdnAce(string input, int index)
static unsafe string IdnEquivalent(char *hostname, int start, int end, bool allAscii, bool atLeastOneValidIdn)
static unsafe bool IsValidByIri(char *name, ushort pos, int returnedEnd, bool notCanonical, bool notImplicitFile)
static string ParseCanonicalName(string str, int start, int end, bool loopback)
static unsafe bool IsValid(char *name, ushort pos, int returnedEnd, bool notCanonical, bool notImplicitFile)
static unsafe string UnicodeEquivalent(char *hostname, int start, int end, bool allAscii, bool atLeastOneValidIdn)
static bool IsValidDomainLabelCharacter(char character, bool notCanonical)
static unsafe string IdnEquivalent(char *hostname, int start, int end, bool allAscii, string bidiStrippedHost)
static unsafe string UnicodeEquivalent(string idnHost, char *hostname, int start, int end)
static unsafe bool IsIdnAce(char *input, int index)