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
UriHelper.cs
Go to the documentation of this file.
1using System;
4using System.Text;
5
6namespace System
7{
8 // Token: 0x02000090 RID: 144
9 internal static class UriHelper
10 {
11 // Token: 0x06000280 RID: 640 RVA: 0x0000A128 File Offset: 0x00008328
12 internal unsafe static bool TestForSubPath(char* pMe, ushort meLength, char* pShe, ushort sheLength, bool ignoreCase)
13 {
14 /*
15An exception occurred when decompiling this method (06000280)
16
17ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean System.UriHelper::TestForSubPath(System.Char*,System.UInt16,System.Char*,System.UInt16,System.Boolean)
18
19 ---> System.Exception: Basic block has to end with unconditional control flow.
20{
21 Block_0:
22 stloc:CultureInfo(var_2_09, callgetter:CultureInfo(CultureInfo::get_InvariantCulture))
23 stloc:CultureInfo(var_5_12, callgetter:CultureInfo(CultureInfo::get_InvariantCulture))
24}
25
26 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
27 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
28 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
29 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
30 --- End of inner exception stack trace ---
31 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
32 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
33*/;
34 }
35
36 // Token: 0x06000281 RID: 641 RVA: 0x0000A150 File Offset: 0x00008350
37 internal static char[] EscapeString(string input, int start, int end, char[] dest, int destPos, bool isUriString, char force1, char force2, char rsvd)
38 {
40 char c;
41 return c;
42 }
43
44 // Token: 0x06000282 RID: 642 RVA: 0x0000A1A0 File Offset: 0x000083A0
45 private unsafe static char[] EnsureDestinationSize(char* pStr, char[] dest, int currentInputPos, short charsToAdd, short minReallocateChars, int destPos, int prevInputPos)
46 {
47 /*
48An exception occurred when decompiling this method (06000282)
49
50ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Char[] System.UriHelper::EnsureDestinationSize(System.Char*,System.Char[],System.Int32,System.Int16,System.Int16,System.Int32,System.Int32)
51
52 ---> System.Exception: Basic block has to end with unconditional control flow.
53{
54 IL_0003:
55 brtrue(IL_0000, logicnot:bool(ldloc:char*[exp:bool](pStr)))
56}
57
58 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
59 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
60 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
61 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
62 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
63 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
64 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
65 --- End of inner exception stack trace ---
66 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
67 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
68*/;
69 }
70
71 // Token: 0x06000283 RID: 643 RVA: 0x0000A1B4 File Offset: 0x000083B4
72 internal static char[] UnescapeString(string input, int start, int end, char[] dest, int destPosition, char rsvd1, char rsvd2, char rsvd3, global::System.UnescapeMode unescapeMode, global::System.UriParser syntax, bool isQuery)
73 {
74 int num = 1;
76 if (num == 0)
77 {
78 }
79 char[] array;
80 return array;
81 }
82
83 // Token: 0x06000284 RID: 644 RVA: 0x0000A1D0 File Offset: 0x000083D0
84 internal unsafe static char[] UnescapeString(char* pStr, int start, int end, char[] dest, int destPosition, char rsvd1, char rsvd2, char rsvd3, global::System.UnescapeMode unescapeMode, global::System.UriParser syntax, bool isQuery)
85 {
86 if (!true)
87 {
88 }
89 int num = 10;
90 if (end != 0)
91 {
92 }
93 if (num != 0)
94 {
95 return global::System.UriHelper.EscapedAscii('\0', (char)end);
96 }
97 string @string = SR.GetString("Invalid URI: There is an invalid sequence in the string.");
98 string string2 = SR.GetString("Invalid URI: There is an invalid sequence in the string.");
99 throw new InvalidCastException();
100 }
101
102 // Token: 0x06000285 RID: 645 RVA: 0x0000A27C File Offset: 0x0000847C
103 internal unsafe static void MatchUTF8Sequence(char* pDest, char[] dest, int destOffset, char[] unescapedChars, int charCount, byte[] bytes, int byteCount, bool isQuery, bool iriParsing)
104 {
105 int num = 1;
106 if (unescapedChars != null && num != 0)
107 {
108 return;
109 }
111 CodePageDataItem dataItem = utf.dataItem;
112 }
113
114 // Token: 0x06000286 RID: 646 RVA: 0x0000A2FC File Offset: 0x000084FC
115 internal static void EscapeAsciiChar(char ch, char[] to, int pos)
116 {
117 int num = 1;
118 int num2 = 37;
119 pos.m_value = num;
120 if (num2 == 0)
121 {
122 }
123 }
124
125 // Token: 0x06000287 RID: 647 RVA: 0x0000A318 File Offset: 0x00008518
126 internal static char EscapedAscii(char digit, char next)
127 {
128 }
129
130 // Token: 0x06000288 RID: 648 RVA: 0x0000A334 File Offset: 0x00008534
131 internal static bool IsNotSafeForUnescape(char ch)
132 {
133 }
134
135 // Token: 0x06000289 RID: 649 RVA: 0x0000A344 File Offset: 0x00008544
136 private static bool IsReservedUnreservedOrHash(char c)
137 {
138 if (!true)
139 {
140 }
141 return true;
142 }
143
144 // Token: 0x0600028A RID: 650 RVA: 0x0000A35C File Offset: 0x0000855C
145 internal static bool IsUnreserved(char c)
146 {
147 if (!true)
148 {
149 }
150 return true;
151 }
152
153 // Token: 0x0600028B RID: 651 RVA: 0x0000A378 File Offset: 0x00008578
154 internal static bool Is3986Unreserved(char c)
155 {
156 if (!true)
157 {
158 }
159 return true;
160 }
161
162 // Token: 0x0600028C RID: 652 RVA: 0x0000A38C File Offset: 0x0000858C
163 // Note: this type is marked as 'beforefieldinit'.
164 static UriHelper()
165 {
166 }
167
168 // Token: 0x04000222 RID: 546
169 private static readonly char[] HexUpperChars;
170 }
171}
class f__AnonymousType0<< Count > j__TPar
static string GetString(string name, params object[] args)
Definition SR.cs:9
Definition SR.cs:7
static Encoding UTF8
Definition Encoding.cs:828
static char EscapedAscii(char digit, char next)
Definition UriHelper.cs:126
static readonly char[] HexUpperChars
Definition UriHelper.cs:169
static bool IsNotSafeForUnescape(char ch)
Definition UriHelper.cs:131
static UriHelper()
Definition UriHelper.cs:164
static char[] EscapeString(string input, int start, int end, char[] dest, int destPos, bool isUriString, char force1, char force2, char rsvd)
Definition UriHelper.cs:37
static bool IsReservedUnreservedOrHash(char c)
Definition UriHelper.cs:136
static unsafe bool TestForSubPath(char *pMe, ushort meLength, char *pShe, ushort sheLength, bool ignoreCase)
Definition UriHelper.cs:12
static char[] UnescapeString(string input, int start, int end, char[] dest, int destPosition, char rsvd1, char rsvd2, char rsvd3, global::System.UnescapeMode unescapeMode, global::System.UriParser syntax, bool isQuery)
Definition UriHelper.cs:72
static unsafe void MatchUTF8Sequence(char *pDest, char[] dest, int destOffset, char[] unescapedChars, int charCount, byte[] bytes, int byteCount, bool isQuery, bool iriParsing)
Definition UriHelper.cs:103
static unsafe char[] UnescapeString(char *pStr, int start, int end, char[] dest, int destPosition, char rsvd1, char rsvd2, char rsvd3, global::System.UnescapeMode unescapeMode, global::System.UriParser syntax, bool isQuery)
Definition UriHelper.cs:84
static void EscapeAsciiChar(char ch, char[] to, int pos)
Definition UriHelper.cs:115
static bool Is3986Unreserved(char c)
Definition UriHelper.cs:154
static unsafe char[] EnsureDestinationSize(char *pStr, char[] dest, int currentInputPos, short charsToAdd, short minReallocateChars, int destPos, int prevInputPos)
Definition UriHelper.cs:45
static bool IsUnreserved(char c)
Definition UriHelper.cs:145