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
OptionalUInt32.cs
Go to the documentation of this file.
1using System;
4using UnityEngine;
5
6namespace InControl
7{
8 // Token: 0x0200006A RID: 106
10 public struct OptionalUInt32
11 {
12 // Token: 0x060004E9 RID: 1257 RVA: 0x0000FAF8 File Offset: 0x0000DCF8
13 public OptionalUInt32(uint value)
14 {
16 this.hasValue = true;
17 }
18
19 // Token: 0x1700015F RID: 351
20 // (get) Token: 0x060004EA RID: 1258 RVA: 0x000025E1 File Offset: 0x000007E1
21 public bool HasValue
22 {
23 get
24 {
25 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
26 }
27 }
28
29 // Token: 0x17000160 RID: 352
30 // (get) Token: 0x060004EB RID: 1259 RVA: 0x000025E1 File Offset: 0x000007E1
31 public bool HasNoValue
32 {
33 get
34 {
35 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
36 }
37 }
38
39 // Token: 0x17000161 RID: 353
40 // (get) Token: 0x060004EC RID: 1260 RVA: 0x0000FB14 File Offset: 0x0000DD14
41 // (set) Token: 0x060004ED RID: 1261 RVA: 0x0000FB28 File Offset: 0x0000DD28
42 public uint Value
43 {
44 get
45 {
46 return this.value;
47 }
48 set
49 {
51 this.hasValue = true;
52 }
53 }
54
55 // Token: 0x060004EE RID: 1262 RVA: 0x0000FB44 File Offset: 0x0000DD44
56 public void Clear()
57 {
58 }
59
60 // Token: 0x060004EF RID: 1263 RVA: 0x0000FB54 File Offset: 0x0000DD54
61 public uint GetValueOrDefault(uint defaultValue)
62 {
63 return this.value;
64 }
65
66 // Token: 0x060004F0 RID: 1264 RVA: 0x0000FB68 File Offset: 0x0000DD68
67 public uint GetValueOrZero()
68 {
69 return this.value;
70 }
71
72 // Token: 0x060004F1 RID: 1265 RVA: 0x0000FB80 File Offset: 0x0000DD80
73 public void SetValue(uint value)
74 {
75 this.hasValue = true;
76 }
77
78 // Token: 0x060004F2 RID: 1266 RVA: 0x0000FB94 File Offset: 0x0000DD94
79 public override bool Equals(object other)
80 {
81 if (other == null)
82 {
83 }
84 bool flag;
85 return flag;
86 }
87
88 // Token: 0x060004F3 RID: 1267 RVA: 0x0000FBA8 File Offset: 0x0000DDA8
90 {
91 /*
92An exception occurred when decompiling this method (060004F3)
93
94ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean InControl.OptionalUInt32::Equals(InControl.OptionalUInt32)
95
96 ---> System.Exception: Basic block has to end with unconditional control flow.
97{
98 Block_0:
99 stloc:uint32(var_1_08, ldfld:uint32(OptionalUInt32::value, ldloc:valuetype InControl.OptionalUInt32&(this)))
100}
101
102 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
103 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
104 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
105 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
106 --- End of inner exception stack trace ---
107 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
108 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
109*/;
110 }
111
112 // Token: 0x060004F4 RID: 1268 RVA: 0x0000FBC0 File Offset: 0x0000DDC0
113 public bool Equals(uint other)
114 {
115 /*
116An exception occurred when decompiling this method (060004F4)
117
118ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean InControl.OptionalUInt32::Equals(System.UInt32)
119
120 ---> System.Exception: Basic block has to end with unconditional control flow.
121{
122 Block_0:
123 stloc:uint32(var_0_06, ldfld:uint32(OptionalUInt32::value, ldloc:valuetype InControl.OptionalUInt32&(this)))
124}
125
126 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
127 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
128 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
129 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
130 --- End of inner exception stack trace ---
131 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
132 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
133*/;
134 }
135
136 // Token: 0x060004F5 RID: 1269 RVA: 0x0000FBD4 File Offset: 0x0000DDD4
138 {
139 }
140
141 // Token: 0x060004F6 RID: 1270 RVA: 0x0000FBE4 File Offset: 0x0000DDE4
143 {
144 return true;
145 }
146
147 // Token: 0x060004F7 RID: 1271 RVA: 0x000025E1 File Offset: 0x000007E1
148 public static bool operator ==(OptionalUInt32 a, uint b)
149 {
150 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
151 }
152
153 // Token: 0x060004F8 RID: 1272 RVA: 0x000025E1 File Offset: 0x000007E1
154 public static bool operator !=(OptionalUInt32 a, uint b)
155 {
156 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
157 }
158
159 // Token: 0x060004F9 RID: 1273 RVA: 0x000025E1 File Offset: 0x000007E1
160 private static int CombineHashCodes(int h1, int h2)
161 {
162 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
163 }
164
165 // Token: 0x060004FA RID: 1274 RVA: 0x0000FBF4 File Offset: 0x0000DDF4
166 public override int GetHashCode()
167 {
168 int num;
169 return num;
170 }
171
172 // Token: 0x060004FB RID: 1275 RVA: 0x0000FC04 File Offset: 0x0000DE04
173 public override string ToString()
174 {
176 string text;
177 return text;
178 }
179
180 // Token: 0x060004FC RID: 1276 RVA: 0x0000FC20 File Offset: 0x0000DE20
181 public static implicit operator OptionalUInt32(uint value)
182 {
183 return 1;
184 }
185
186 // Token: 0x060004FD RID: 1277 RVA: 0x0000FC30 File Offset: 0x0000DE30
187 public static explicit operator uint(OptionalUInt32 optional)
188 {
189 uint num;
190 return num;
191 }
192
193 // Token: 0x040003EE RID: 1006
195 private bool hasValue;
196
197 // Token: 0x040003EF RID: 1007
199 private uint value;
200 }
201}
class f__AnonymousType0<< Count > j__TPar
static CultureInfo InvariantCulture
override string ToString()
static bool operator!=(OptionalUInt32 a, OptionalUInt32 b)
uint GetValueOrDefault(uint defaultValue)
bool Equals(OptionalUInt32 other)
void SetValue(uint value)
override bool Equals(object other)
static int CombineHashCodes(int h1, int h2)
static bool operator==(OptionalUInt32 a, OptionalUInt32 b)