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
OptionalUInt16.cs
Go to the documentation of this file.
1using System;
4using UnityEngine;
5
6namespace InControl
7{
8 // Token: 0x02000069 RID: 105
10 public struct OptionalUInt16
11 {
12 // Token: 0x060004D4 RID: 1236 RVA: 0x0000F9C0 File Offset: 0x0000DBC0
13 public OptionalUInt16(ushort value)
14 {
16 this.hasValue = true;
17 }
18
19 // Token: 0x1700015C RID: 348
20 // (get) Token: 0x060004D5 RID: 1237 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: 0x1700015D RID: 349
30 // (get) Token: 0x060004D6 RID: 1238 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: 0x1700015E RID: 350
40 // (get) Token: 0x060004D7 RID: 1239 RVA: 0x0000F9DC File Offset: 0x0000DBDC
41 // (set) Token: 0x060004D8 RID: 1240 RVA: 0x0000F9F0 File Offset: 0x0000DBF0
42 public ushort Value
43 {
44 get
45 {
46 return this.value;
47 }
48 set
49 {
51 this.hasValue = true;
52 }
53 }
54
55 // Token: 0x060004D9 RID: 1241 RVA: 0x0000FA0C File Offset: 0x0000DC0C
56 public void Clear()
57 {
58 }
59
60 // Token: 0x060004DA RID: 1242 RVA: 0x0000FA1C File Offset: 0x0000DC1C
61 public ushort GetValueOrDefault(ushort defaultValue)
62 {
63 return this.value;
64 }
65
66 // Token: 0x060004DB RID: 1243 RVA: 0x0000FA34 File Offset: 0x0000DC34
67 public ushort GetValueOrZero()
68 {
69 return this.value;
70 }
71
72 // Token: 0x060004DC RID: 1244 RVA: 0x0000FA4C File Offset: 0x0000DC4C
73 public void SetValue(ushort value)
74 {
76 this.hasValue = true;
77 }
78
79 // Token: 0x060004DD RID: 1245 RVA: 0x0000FA68 File Offset: 0x0000DC68
80 public override bool Equals(object other)
81 {
82 if (other == null)
83 {
84 }
85 bool flag;
86 return flag;
87 }
88
89 // Token: 0x060004DE RID: 1246 RVA: 0x0000FA7C File Offset: 0x0000DC7C
91 {
92 /*
93An exception occurred when decompiling this method (060004DE)
94
95ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean InControl.OptionalUInt16::Equals(InControl.OptionalUInt16)
96
97 ---> System.Exception: Basic block has to end with unconditional control flow.
98{
99 Block_0:
100 stloc:uint16(var_1_08, ldfld:uint16(OptionalUInt16::value, ldloc:valuetype InControl.OptionalUInt16&(this)))
101}
102
103 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
104 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
105 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
106 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
107 --- End of inner exception stack trace ---
108 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
109 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
110*/;
111 }
112
113 // Token: 0x060004DF RID: 1247 RVA: 0x0000FA94 File Offset: 0x0000DC94
114 public bool Equals(ushort other)
115 {
116 /*
117An exception occurred when decompiling this method (060004DF)
118
119ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean InControl.OptionalUInt16::Equals(System.UInt16)
120
121 ---> System.Exception: Basic block has to end with unconditional control flow.
122{
123 Block_0:
124 stloc:uint16(var_0_06, ldfld:uint16(OptionalUInt16::value, ldloc:valuetype InControl.OptionalUInt16&(this)))
125}
126
127 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
128 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
129 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
130 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
131 --- End of inner exception stack trace ---
132 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
133 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
134*/;
135 }
136
137 // Token: 0x060004E0 RID: 1248 RVA: 0x000025E1 File Offset: 0x000007E1
139 {
140 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
141 }
142
143 // Token: 0x060004E1 RID: 1249 RVA: 0x000025E1 File Offset: 0x000007E1
145 {
146 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
147 }
148
149 // Token: 0x060004E2 RID: 1250 RVA: 0x000025E1 File Offset: 0x000007E1
150 public static bool operator ==(OptionalUInt16 a, ushort b)
151 {
152 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
153 }
154
155 // Token: 0x060004E3 RID: 1251 RVA: 0x000025E1 File Offset: 0x000007E1
156 public static bool operator !=(OptionalUInt16 a, ushort b)
157 {
158 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
159 }
160
161 // Token: 0x060004E4 RID: 1252 RVA: 0x000025E1 File Offset: 0x000007E1
162 private static int CombineHashCodes(int h1, int h2)
163 {
164 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
165 }
166
167 // Token: 0x060004E5 RID: 1253 RVA: 0x0000FAAC File Offset: 0x0000DCAC
168 public override int GetHashCode()
169 {
170 int num;
171 return num;
172 }
173
174 // Token: 0x060004E6 RID: 1254 RVA: 0x0000FABC File Offset: 0x0000DCBC
175 public override string ToString()
176 {
178 string text;
179 return text;
180 }
181
182 // Token: 0x060004E7 RID: 1255 RVA: 0x0000FAD8 File Offset: 0x0000DCD8
183 public static implicit operator OptionalUInt16(ushort value)
184 {
185 return 1;
186 }
187
188 // Token: 0x060004E8 RID: 1256 RVA: 0x0000FAE8 File Offset: 0x0000DCE8
189 public static explicit operator ushort(OptionalUInt16 optional)
190 {
191 ushort num;
192 return num;
193 }
194
195 // Token: 0x040003EC RID: 1004
197 private bool hasValue;
198
199 // Token: 0x040003ED RID: 1005
201 private ushort value;
202 }
203}
class f__AnonymousType0<< Count > j__TPar
static CultureInfo InvariantCulture
static bool operator!=(OptionalUInt16 a, OptionalUInt16 b)
static int CombineHashCodes(int h1, int h2)
override bool Equals(object other)
override string ToString()
bool Equals(ushort other)
ushort GetValueOrDefault(ushort defaultValue)
static bool operator==(OptionalUInt16 a, OptionalUInt16 b)
bool Equals(OptionalUInt16 other)
void SetValue(ushort value)