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
Guid.cs
Go to the documentation of this file.
1using System;
6
7namespace System
8{
9 // Token: 0x020000BD RID: 189
13 {
14 // Token: 0x06000728 RID: 1832 RVA: 0x0000207A File Offset: 0x0000027A
15 public static Guid NewGuid()
16 {
17 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
18 }
19
20 // Token: 0x06000729 RID: 1833 RVA: 0x00011B54 File Offset: 0x0000FD54
21 public Guid(byte[] b)
22 {
23 while (b == null)
24 {
25 }
26 }
27
28 // Token: 0x0600072A RID: 1834 RVA: 0x00011B64 File Offset: 0x0000FD64
30 {
31 int length = b._length;
32 this._d = (byte)length;
33 this._e = (byte)length;
34 this._f = (byte)length;
35 this._g = (byte)length;
36 this._h = (byte)length;
37 this._i = (byte)length;
38 this._j = (byte)length;
39 this._k = (byte)length;
40 }
41
42 // Token: 0x0600072B RID: 1835 RVA: 0x00011BC0 File Offset: 0x0000FDC0
43 public Guid(int a, short b, short c, byte d, byte e, byte f, byte g, byte h, byte i, byte j, byte k)
44 {
45 this._a = a;
46 this._b = b;
47 this._c = c;
48 this._d = d;
49 this._e = e;
50 this._f = f;
51 this._g = g;
52 }
53
54 // Token: 0x0600072C RID: 1836 RVA: 0x00011C04 File Offset: 0x0000FE04
55 public Guid(string g)
56 {
57 if (g != null)
58 {
59 char rawStringData = g.GetRawStringData();
60 int stringLength = g._stringLength;
61 return;
62 }
63 }
64
65 // Token: 0x0600072D RID: 1837 RVA: 0x00011C24 File Offset: 0x0000FE24
66 public static Guid Parse(string input)
67 {
68 Guid guid;
69 return guid;
70 }
71
72 // Token: 0x0600072E RID: 1838 RVA: 0x0000207A File Offset: 0x0000027A
74 {
75 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
76 }
77
78 // Token: 0x0600072F RID: 1839 RVA: 0x00011C34 File Offset: 0x0000FE34
79 public static bool TryParse(string input, [Out] Guid result)
80 {
81 return true;
82 }
83
84 // Token: 0x06000730 RID: 1840 RVA: 0x00011C44 File Offset: 0x0000FE44
85 public static bool TryParse(ReadOnlySpan<char> input, [Out] Guid result)
86 {
87 return true;
88 }
89
90 // Token: 0x06000731 RID: 1841 RVA: 0x00011C54 File Offset: 0x0000FE54
92 {
95 if (guidString != null)
96 {
97 bool flag;
98 return flag;
99 }
100 bool flag2;
101 return flag2;
102 }
103
104 // Token: 0x06000732 RID: 1842 RVA: 0x00011C80 File Offset: 0x0000FE80
119
120 // Token: 0x06000733 RID: 1843 RVA: 0x00011CD8 File Offset: 0x0000FED8
122 {
123 if (!true)
124 {
125 return;
126 }
127 }
128
129 // Token: 0x06000734 RID: 1844 RVA: 0x00011CF8 File Offset: 0x0000FEF8
131 {
132 return "Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx)." != null;
133 }
134
135 // Token: 0x06000735 RID: 1845 RVA: 0x00011D24 File Offset: 0x0000FF24
136 private static bool StringToShort(ReadOnlySpan<char> str, int requiredLength, int flags, [Out] short result, Guid.GuidResult parseResult)
137 {
138 bool flag;
139 return flag;
140 }
141
142 // Token: 0x06000736 RID: 1846 RVA: 0x00011D34 File Offset: 0x0000FF34
143 private static bool StringToShort(ReadOnlySpan<char> str, int parsePos, int requiredLength, int flags, [Out] short result, Guid.GuidResult parseResult)
144 {
145 bool flag;
146 return flag;
147 }
148
149 // Token: 0x06000737 RID: 1847 RVA: 0x00011D44 File Offset: 0x0000FF44
150 private static bool StringToInt(ReadOnlySpan<char> str, int requiredLength, int flags, [Out] int result, Guid.GuidResult parseResult)
151 {
152 bool flag;
153 return flag;
154 }
155
156 // Token: 0x06000738 RID: 1848 RVA: 0x00011D54 File Offset: 0x0000FF54
157 private static bool StringToInt(ReadOnlySpan<char> str, int parsePos, int requiredLength, int flags, [Out] int result, Guid.GuidResult parseResult)
158 {
159 do
160 {
161 int num;
162 result.m_value = num;
164 int num2 = 4;
166 }
167 while (parseResult._throwStyle == Guid.GuidParseThrowStyle.None);
168 throw new OutOfMemoryException();
169 }
170
171 // Token: 0x06000739 RID: 1849 RVA: 0x00011D98 File Offset: 0x0000FF98
172 private static bool StringToLong(ReadOnlySpan<char> str, int parsePos, int flags, [Out] long result, Guid.GuidResult parseResult)
173 {
174 do
175 {
176 long num;
177 result.m_value = num;
179 int num2 = 4;
181 }
182 while (parseResult._throwStyle == Guid.GuidParseThrowStyle.None);
183 throw new OutOfMemoryException();
184 }
185
186 // Token: 0x0600073A RID: 1850 RVA: 0x00011DD8 File Offset: 0x0000FFD8
188 {
189 if (!true)
190 {
191 }
192 long num = 0L;
193 if (num != 0L)
194 {
196 }
197 if (num == 0L)
198 {
199 }
201 if (num != 0L)
202 {
204 return;
205 }
206 }
207
208 // Token: 0x0600073B RID: 1851 RVA: 0x00011E14 File Offset: 0x00010014
209 private static bool IsHexPrefix(ReadOnlySpan<char> str, int i)
210 {
211 /*
212An exception occurred when decompiling this method (0600073B)
213
214ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean System.Guid::IsHexPrefix(System.ReadOnlySpan`1<System.Char>,System.Int32)
215
216 ---> System.Exception: Basic block has to end with unconditional control flow.
217{
218 Block_0:
219 stloc:char(var_3_0C, call:char(char::ToLowerInvariant, ldloc:int32[exp:char](i)))
220}
221
222 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
223 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
224 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
225 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
226 --- End of inner exception stack trace ---
227 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
228 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
229*/;
230 }
231
232 // Token: 0x0600073C RID: 1852 RVA: 0x00011E30 File Offset: 0x00010030
234 {
235 short b = this._b;
236 short c = this._c;
237 byte d = this._d;
238 destination._length = (int)d;
239 byte e = this._e;
240 byte f = this._f;
241 byte g = this._g;
242 byte h = this._h;
243 byte i = this._i;
244 byte j = this._j;
245 byte k = this._k;
246 }
247
248 // Token: 0x0600073D RID: 1853 RVA: 0x00011E90 File Offset: 0x00010090
249 public byte[] ToByteArray()
250 {
251 /*
252An exception occurred when decompiling this method (0600073D)
253
254ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Byte[] System.Guid::ToByteArray()
255
256 ---> System.Exception: Basic block has to end with unconditional control flow.
257{
258 Block_0:
259 stloc:int16(var_1_06, ldfld:int16(Guid::_b, ldloc:valuetype System.Guid&(this)))
260 stloc:int16(var_2_0D, ldfld:int16(Guid::_c, ldloc:valuetype System.Guid&(this)))
261 stloc:uint8(var_3_14, ldfld:uint8(Guid::_d, ldloc:valuetype System.Guid&(this)))
262 stfld:int32(Span`1::_length, ldloc:Span`1[exp:valuetype System.Span`1&](var_0), ldloc:uint8[exp:int32](var_3_14))
263 stloc:uint8(var_4_22, ldfld:uint8(Guid::_e, ldloc:valuetype System.Guid&(this)))
264 stloc:uint8(var_5_2A, ldfld:uint8(Guid::_f, ldloc:valuetype System.Guid&(this)))
265 stloc:uint8(var_6_32, ldfld:uint8(Guid::_g, ldloc:valuetype System.Guid&(this)))
266 stloc:uint8(var_7_3A, ldfld:uint8(Guid::_h, ldloc:valuetype System.Guid&(this)))
267 stloc:uint8(var_8_42, ldfld:uint8(Guid::_i, ldloc:valuetype System.Guid&(this)))
268 stloc:uint8(var_9_4A, ldfld:uint8(Guid::_j, ldloc:valuetype System.Guid&(this)))
269 stloc:uint8(var_10_52, ldfld:uint8(Guid::_k, ldloc:valuetype System.Guid&(this)))
270}
271
272 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
273 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
274 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
275 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
276 --- End of inner exception stack trace ---
277 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
278 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
279*/;
280 }
281
282 // Token: 0x0600073E RID: 1854 RVA: 0x00011EF0 File Offset: 0x000100F0
283 public override string ToString()
284 {
285 string text;
286 return text;
287 }
288
289 // Token: 0x0600073F RID: 1855 RVA: 0x00011F00 File Offset: 0x00010100
290 public override int GetHashCode()
291 {
292 /*
293An exception occurred when decompiling this method (0600073F)
294
295ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 System.Guid::GetHashCode()
296
297 ---> System.Exception: Basic block has to end with unconditional control flow.
298{
299 Block_0:
300 stloc:int32(var_0_06, ldfld:int32(Guid::_a, ldloc:valuetype System.Guid&(this)))
301 stloc:uint8(var_1_0D, ldfld:uint8(Guid::_d, ldloc:valuetype System.Guid&(this)))
302 stloc:uint8(var_2_14, ldfld:uint8(Guid::_d, ldloc:valuetype System.Guid&(this)))
303}
304
305 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
306 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
307 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
308 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
309 --- End of inner exception stack trace ---
310 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
311 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
312*/;
313 }
314
315 // Token: 0x06000740 RID: 1856 RVA: 0x00011F24 File Offset: 0x00010124
316 public override bool Equals(object o)
317 {
318 if (o != null)
319 {
320 short b = this._b;
321 byte d = this._d;
322 byte h = this._h;
323 return;
324 }
325 }
326
327 // Token: 0x06000741 RID: 1857 RVA: 0x00011F4C File Offset: 0x0001014C
328 public bool Equals(Guid g)
329 {
330 /*
331An exception occurred when decompiling this method (06000741)
332
333ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean System.Guid::Equals(System.Guid)
334
335 ---> System.Exception: Basic block has to end with unconditional control flow.
336{
337 Block_0:
338 stloc:int16(var_0_06, ldfld:int16(Guid::_b, ldloc:valuetype System.Guid&(this)))
339 stloc:uint8(var_1_0D, ldfld:uint8(Guid::_d, ldloc:valuetype System.Guid&(this)))
340 stloc:uint8(var_2_14, ldfld:uint8(Guid::_h, ldloc:valuetype System.Guid&(this)))
341}
342
343 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
344 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
345 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
346 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
347 --- End of inner exception stack trace ---
348 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
349 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
350*/;
351 }
352
353 // Token: 0x06000742 RID: 1858 RVA: 0x0000207A File Offset: 0x0000027A
354 private int GetResult(uint me, uint them)
355 {
356 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
357 }
358
359 // Token: 0x06000743 RID: 1859 RVA: 0x00011F70 File Offset: 0x00010170
360 public int CompareTo(object value)
361 {
362 if (value != null)
363 {
364 short b = this._b;
365 short c = this._c;
366 byte d = this._d;
367 byte e = this._e;
368 byte f = this._f;
369 byte g = this._g;
370 byte h = this._h;
371 byte i = this._i;
372 byte j = this._j;
373 byte k = this._k;
374 }
375 return 1;
376 }
377
378 // Token: 0x06000744 RID: 1860 RVA: 0x00011FD0 File Offset: 0x000101D0
379 public int CompareTo(Guid value)
380 {
381 /*
382An exception occurred when decompiling this method (06000744)
383
384ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 System.Guid::CompareTo(System.Guid)
385
386 ---> System.Exception: Basic block has to end with unconditional control flow.
387{
388 Block_0:
389 stloc:int16(var_0_06, ldfld:int16(Guid::_b, ldloc:valuetype System.Guid&(this)))
390 stloc:int16(var_1_0D, ldfld:int16(Guid::_c, ldloc:valuetype System.Guid&(this)))
391 stloc:uint8(var_2_14, ldfld:uint8(Guid::_d, ldloc:valuetype System.Guid&(this)))
392 stloc:uint8(var_3_1B, ldfld:uint8(Guid::_e, ldloc:valuetype System.Guid&(this)))
393 stloc:uint8(var_4_22, ldfld:uint8(Guid::_f, ldloc:valuetype System.Guid&(this)))
394 stloc:uint8(var_5_2A, ldfld:uint8(Guid::_g, ldloc:valuetype System.Guid&(this)))
395 stloc:uint8(var_6_32, ldfld:uint8(Guid::_h, ldloc:valuetype System.Guid&(this)))
396 stloc:uint8(var_7_3A, ldfld:uint8(Guid::_i, ldloc:valuetype System.Guid&(this)))
397 stloc:uint8(var_8_42, ldfld:uint8(Guid::_j, ldloc:valuetype System.Guid&(this)))
398 stloc:uint8(var_9_4A, ldfld:uint8(Guid::_k, ldloc:valuetype System.Guid&(this)))
399}
400
401 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
402 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
403 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
404 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
405 --- End of inner exception stack trace ---
406 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
407 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
408*/;
409 }
410
411 // Token: 0x06000745 RID: 1861 RVA: 0x0001202C File Offset: 0x0001022C
412 public static bool operator ==(Guid a, Guid b)
413 {
414 }
415
416 // Token: 0x06000746 RID: 1862 RVA: 0x0001203C File Offset: 0x0001023C
417 public string ToString(string format)
418 {
419 string text;
420 return text;
421 }
422
423 // Token: 0x06000747 RID: 1863 RVA: 0x0000207A File Offset: 0x0000027A
424 private static char HexToChar(int a)
425 {
426 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
427 }
428
429 // Token: 0x06000748 RID: 1864 RVA: 0x0001204C File Offset: 0x0001024C
430 private unsafe static int HexsToChars(char* guidChars, int a, int b)
431 {
432 return 4;
433 }
434
435 // Token: 0x06000749 RID: 1865 RVA: 0x00012060 File Offset: 0x00010260
436 private unsafe static int HexsToCharsHexOutput(char* guidChars, int a, int b)
437 {
438 return 9;
439 }
440
441 // Token: 0x0600074A RID: 1866 RVA: 0x00012074 File Offset: 0x00010274
442 public string ToString(string format, IFormatProvider provider)
443 {
444 if (format == null || format._stringLength == 0)
445 {
446 }
447 string text = string.FastAllocateString(32);
448 if (text != null)
449 {
451 }
452 int stringLength = text._stringLength;
454 return text;
455 }
456
457 // Token: 0x0600074B RID: 1867 RVA: 0x000120C4 File Offset: 0x000102C4
459 {
460 int num = 123;
461 long num2 = 0L;
462 if (num != 0)
463 {
464 }
465 int num4;
466 int num5;
467 if (num2 != 0L)
468 {
469 int num3 = 48;
471 num4 = 120;
472 byte d = this._d;
473 byte e = this._e;
474 byte f = this._f;
475 byte g = this._g;
476 byte h = this._h;
477 byte i = this._i;
478 byte j = this._j;
479 byte k = this._k;
480 num5 = 125;
481 if (num != 0)
482 {
483 goto IL_00DF;
484 }
485 }
486 if (num4 != 0)
487 {
488 }
489 if (num4 != 0)
490 {
491 }
492 if (num4 != 0)
493 {
494 int num6 = 45;
496 }
497 byte d2 = this._d;
498 byte e2 = this._e;
499 int num7;
500 if (num4 != 0)
501 {
502 num7 = 45;
503 }
504 byte f2 = this._f;
505 byte g2 = this._g;
506 byte h2 = this._h;
507 byte i2 = this._i;
508 byte j2 = this._j;
509 byte k2 = this._k;
510 if (num == 0)
511 {
512 return;
513 }
514 IL_00DF:
516 }
517
518 // Token: 0x0600074C RID: 1868 RVA: 0x000121BC File Offset: 0x000103BC
523
524 // Token: 0x0400032D RID: 813
525 public static readonly Guid Empty;
526
527 // Token: 0x0400032E RID: 814
528 private int _a;
529
530 // Token: 0x0400032F RID: 815
531 private short _b;
532
533 // Token: 0x04000330 RID: 816
534 private short _c;
535
536 // Token: 0x04000331 RID: 817
537 private byte _d;
538
539 // Token: 0x04000332 RID: 818
540 private byte _e;
541
542 // Token: 0x04000333 RID: 819
543 private byte _f;
544
545 // Token: 0x04000334 RID: 820
546 private byte _g;
547
548 // Token: 0x04000335 RID: 821
549 private byte _h;
550
551 // Token: 0x04000336 RID: 822
552 private byte _i;
553
554 // Token: 0x04000337 RID: 823
555 private byte _j;
556
557 // Token: 0x04000338 RID: 824
558 private byte _k;
559
560 // Token: 0x020000BE RID: 190
561 [Flags]
562 private enum GuidStyles
563 {
564 // Token: 0x0400033A RID: 826
565 None = 0,
566 // Token: 0x0400033B RID: 827
568 // Token: 0x0400033C RID: 828
569 AllowBraces = 2,
570 // Token: 0x0400033D RID: 829
571 AllowDashes = 4,
572 // Token: 0x0400033E RID: 830
573 AllowHexPrefix = 8,
574 // Token: 0x0400033F RID: 831
576 // Token: 0x04000340 RID: 832
577 RequireBraces = 32,
578 // Token: 0x04000341 RID: 833
579 RequireDashes = 64,
580 // Token: 0x04000342 RID: 834
581 RequireHexPrefix = 128,
582 // Token: 0x04000343 RID: 835
583 HexFormat = 160,
584 // Token: 0x04000344 RID: 836
585 NumberFormat = 0,
586 // Token: 0x04000345 RID: 837
587 DigitFormat = 64,
588 // Token: 0x04000346 RID: 838
589 BraceFormat = 96,
590 // Token: 0x04000347 RID: 839
592 // Token: 0x04000348 RID: 840
593 Any = 15
594 }
595
596 // Token: 0x020000BF RID: 191
598 {
599 // Token: 0x0400034A RID: 842
600 None,
601 // Token: 0x0400034B RID: 843
602 All,
603 // Token: 0x0400034C RID: 844
605 }
606
607 // Token: 0x020000C0 RID: 192
608 private enum ParseFailureKind
609 {
610 // Token: 0x0400034E RID: 846
611 None,
612 // Token: 0x0400034F RID: 847
614 // Token: 0x04000350 RID: 848
615 Format,
616 // Token: 0x04000351 RID: 849
618 // Token: 0x04000352 RID: 850
620 // Token: 0x04000353 RID: 851
622 }
623
624 // Token: 0x020000C1 RID: 193
625 private struct GuidResult
626 {
627 // Token: 0x0600074D RID: 1869 RVA: 0x000121D4 File Offset: 0x000103D4
628 internal void Init(Guid.GuidParseThrowStyle canThrow)
629 {
630 this._throwStyle = canThrow;
631 }
632
633 // Token: 0x0600074E RID: 1870 RVA: 0x000121E8 File Offset: 0x000103E8
639
640 // Token: 0x0600074F RID: 1871 RVA: 0x00012204 File Offset: 0x00010404
641 internal void SetFailure(Guid.ParseFailureKind failure, string failureMessageID)
642 {
643 }
644
645 // Token: 0x06000750 RID: 1872 RVA: 0x00012214 File Offset: 0x00010414
646 internal void SetFailure(Guid.ParseFailureKind failure, string failureMessageID, object failureMessageFormatArgument)
647 {
648 }
649
650 // Token: 0x06000751 RID: 1873 RVA: 0x00012224 File Offset: 0x00010424
651 internal void SetFailure(Guid.ParseFailureKind failure, string failureMessageID, object failureMessageFormatArgument, string failureArgumentName, Exception innerException)
652 {
653 /*
654An exception occurred when decompiling this method (06000751)
655
656ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void System.Guid/GuidResult::SetFailure(System.Guid/ParseFailureKind,System.String,System.Object,System.String,System.Exception)
657
658 ---> System.Exception: Basic block has to end with unconditional control flow.
659{
660 IL_0030:
661 stloc:Exception(var_1_36, call:Exception(GuidResult::GetGuidParseException, ldloc:valuetype System.Guid/GuidResult&(this)))
662}
663
664 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
665 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
666 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
667 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
668 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
669 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
670 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
671 --- End of inner exception stack trace ---
672 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
673 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
674*/;
675 }
676
677 // Token: 0x06000752 RID: 1874 RVA: 0x00012268 File Offset: 0x00010468
679 {
680 Guid.ParseFailureKind failure = this._failure;
681 return "Unrecognized Guid format.";
682 }
683
684 // Token: 0x04000354 RID: 852
686
687 // Token: 0x04000355 RID: 853
689
690 // Token: 0x04000356 RID: 854
692
693 // Token: 0x04000357 RID: 855
694 private string _failureMessageID;
695
696 // Token: 0x04000358 RID: 856
698
699 // Token: 0x04000359 RID: 857
700 private string _failureArgumentName;
701
702 // Token: 0x0400035A RID: 858
704 }
705 }
706}
class f__AnonymousType0<< Count > j__TPar
static ReadOnlySpan< char > TrimEnd(this ReadOnlySpan< char > span)
static void ThrowArgumentOutOfRangeException()
bool TryFormat(Span< char > destination, [Out] int charsWritten, ReadOnlySpan< char > format, IFormatProvider provider)
string _failureArgumentName
Definition Guid.cs:700
void SetFailure(Guid.ParseFailureKind failure, string failureMessageID, object failureMessageFormatArgument, string failureArgumentName, Exception innerException)
Definition Guid.cs:651
object _failureMessageFormatArgument
Definition Guid.cs:697
Exception GetGuidParseException()
Definition Guid.cs:678
void SetFailure(Exception nativeException)
Definition Guid.cs:634
void SetFailure(Guid.ParseFailureKind failure, string failureMessageID)
Definition Guid.cs:641
void Init(Guid.GuidParseThrowStyle canThrow)
Definition Guid.cs:628
Guid.GuidParseThrowStyle _throwStyle
Definition Guid.cs:688
void SetFailure(Guid.ParseFailureKind failure, string failureMessageID, object failureMessageFormatArgument)
Definition Guid.cs:646
string _failureMessageID
Definition Guid.cs:694
Guid.ParseFailureKind _failure
Definition Guid.cs:691
Exception _innerException
Definition Guid.cs:703
static bool TryParseGuidWithNoStyle(ReadOnlySpan< char > guidString, Guid.GuidResult result)
Definition Guid.cs:121
static bool TryParse(ReadOnlySpan< char > input, [Out] Guid result)
Definition Guid.cs:85
static Guid Parse(ReadOnlySpan< char > input)
Definition Guid.cs:73
int CompareTo(object value)
Definition Guid.cs:360
void WriteByteHelper(Span< byte > destination)
Definition Guid.cs:233
int GetResult(uint me, uint them)
Definition Guid.cs:354
static bool TryParseGuid(ReadOnlySpan< char > guidString, Guid.GuidStyles flags, Guid.GuidResult result)
Definition Guid.cs:91
static unsafe int HexsToChars(char *guidChars, int a, int b)
Definition Guid.cs:430
byte[] ToByteArray()
Definition Guid.cs:249
ParseFailureKind
Definition Guid.cs:609
byte _j
Definition Guid.cs:555
byte _i
Definition Guid.cs:552
static bool StringToLong(ReadOnlySpan< char > str, int parsePos, int flags, [Out] long result, Guid.GuidResult parseResult)
Definition Guid.cs:172
static bool StringToShort(ReadOnlySpan< char > str, int requiredLength, int flags, [Out] short result, Guid.GuidResult parseResult)
Definition Guid.cs:136
byte _g
Definition Guid.cs:546
short _c
Definition Guid.cs:534
byte _d
Definition Guid.cs:537
static bool StringToInt(ReadOnlySpan< char > str, int parsePos, int requiredLength, int flags, [Out] int result, Guid.GuidResult parseResult)
Definition Guid.cs:157
GuidParseThrowStyle
Definition Guid.cs:598
Guid(byte[] b)
Definition Guid.cs:21
byte _f
Definition Guid.cs:543
static char HexToChar(int a)
Definition Guid.cs:424
override int GetHashCode()
Definition Guid.cs:290
static ReadOnlySpan< char > EatAllWhitespace(ReadOnlySpan< char > str)
Definition Guid.cs:187
byte _e
Definition Guid.cs:540
static bool StringToShort(ReadOnlySpan< char > str, int parsePos, int requiredLength, int flags, [Out] short result, Guid.GuidResult parseResult)
Definition Guid.cs:143
bool TryFormat(Span< char > destination, [Out] int charsWritten, [Optional] ReadOnlySpan< char > format)
Definition Guid.cs:458
static bool IsHexPrefix(ReadOnlySpan< char > str, int i)
Definition Guid.cs:209
static bool TryParse(string input, [Out] Guid result)
Definition Guid.cs:79
static bool operator==(Guid a, Guid b)
Definition Guid.cs:412
string ToString(string format)
Definition Guid.cs:417
static bool TryParseGuidWithHexPrefix(ReadOnlySpan< char > guidString, Guid.GuidResult result)
Definition Guid.cs:105
static unsafe int HexsToCharsHexOutput(char *guidChars, int a, int b)
Definition Guid.cs:436
byte _h
Definition Guid.cs:549
static Guid NewGuid()
Definition Guid.cs:15
Guid(string g)
Definition Guid.cs:55
short _b
Definition Guid.cs:531
string ToString(string format, IFormatProvider provider)
Definition Guid.cs:442
byte _k
Definition Guid.cs:558
Guid(int a, short b, short c, byte d, byte e, byte f, byte g, byte h, byte i, byte j, byte k)
Definition Guid.cs:43
int _a
Definition Guid.cs:528
override string ToString()
Definition Guid.cs:283
static bool StringToInt(ReadOnlySpan< char > str, int requiredLength, int flags, [Out] int result, Guid.GuidResult parseResult)
Definition Guid.cs:150
bool Equals(Guid g)
Definition Guid.cs:328
Guid(ReadOnlySpan< byte > b)
Definition Guid.cs:29
override bool Equals(object o)
Definition Guid.cs:316
int CompareTo(Guid value)
Definition Guid.cs:379
static readonly Guid Empty
Definition Guid.cs:525
static Guid Parse(string input)
Definition Guid.cs:66
static bool TryParseGuidWithDashes(ReadOnlySpan< char > guidString, Guid.GuidResult result)
Definition Guid.cs:130
readonly int _length