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
Bgra5551.cs
Go to the documentation of this file.
1using System;
3
5{
6 // Token: 0x020003B1 RID: 945
7 public struct Bgra5551 : IPackedVector<ushort>, IPackedVector, IEquatable<Bgra5551>
8 {
9 // Token: 0x17000361 RID: 865
10 // (get) Token: 0x06001971 RID: 6513 RVA: 0x000021DB File Offset: 0x000003DB
11 // (set) Token: 0x06001972 RID: 6514 RVA: 0x0006B334 File Offset: 0x00069534
12 [CLSCompliant(false)]
13 public ushort PackedValue
14 {
15 get
16 {
17 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
18 }
19 set
20 {
22 }
23 }
24
25 // Token: 0x06001973 RID: 6515 RVA: 0x0006B348 File Offset: 0x00069548
26 public Bgra5551(float x, float y, float z, float w)
27 {
28 ushort num = Bgra5551.Pack(x, y, z, w);
29 this.packedValue = num;
30 }
31
32 // Token: 0x06001974 RID: 6516 RVA: 0x0006B368 File Offset: 0x00069568
33 public Bgra5551(Vector4 vector)
34 {
35 ushort num;
36 this.packedValue = num;
37 }
38
39 // Token: 0x06001975 RID: 6517 RVA: 0x000021DB File Offset: 0x000003DB
41 {
42 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
43 }
44
45 // Token: 0x06001976 RID: 6518 RVA: 0x0006B37C File Offset: 0x0006957C
47 {
48 ushort num;
49 this.packedValue = num;
50 }
51
52 // Token: 0x06001977 RID: 6519 RVA: 0x0006B390 File Offset: 0x00069590
53 public override bool Equals(object obj)
54 {
55 if (obj != null)
56 {
57 return;
58 }
59 }
60
61 // Token: 0x06001978 RID: 6520 RVA: 0x000021DB File Offset: 0x000003DB
62 public bool Equals(Bgra5551 other)
63 {
64 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
65 }
66
67 // Token: 0x06001979 RID: 6521 RVA: 0x0006B3A4 File Offset: 0x000695A4
68 public override string ToString()
69 {
70 return this.ToVector4().ToString();
71 }
72
73 // Token: 0x0600197A RID: 6522 RVA: 0x0006B3BC File Offset: 0x000695BC
74 public override int GetHashCode()
75 {
76 int num;
77 return num;
78 }
79
80 // Token: 0x0600197B RID: 6523 RVA: 0x000021DB File Offset: 0x000003DB
81 public static bool operator ==(Bgra5551 lhs, Bgra5551 rhs)
82 {
83 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
84 }
85
86 // Token: 0x0600197C RID: 6524 RVA: 0x000021DB File Offset: 0x000003DB
87 public static bool operator !=(Bgra5551 lhs, Bgra5551 rhs)
88 {
89 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
90 }
91
92 // Token: 0x0600197D RID: 6525 RVA: 0x0006B3CC File Offset: 0x000695CC
93 private static ushort Pack(float x, float y, float z, float w)
94 {
95 /*
96An exception occurred when decompiling this method (0600197D)
97
98ICSharpCode.Decompiler.DecompilerException: Error decompiling System.UInt16 Microsoft.Xna.Framework.Graphics.PackedVector.Bgra5551::Pack(System.Single,System.Single,System.Single,System.Single)
99
100 ---> System.Exception: Basic block has to end with unconditional control flow.
101{
102 IL_000E:
103 stloc:float32(var_3_18, call:float32(MathHelper::Clamp, ldloc:float32(y), ldloc:float32(y), ldloc:float32(z)))
104 stloc:float32(var_5_24, call:float32(MathHelper::Clamp, ldloc:float32(z), ldloc:float32(y), ldloc:float32(z)))
105 stloc:float32(var_7_31, call:float32(MathHelper::Clamp, ldloc:float32(z), ldloc:float32(y), ldloc:float32(z)))
106}
107
108 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
109 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
110 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
111 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
112 --- End of inner exception stack trace ---
113 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
114 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
115*/;
116 }
117
118 // Token: 0x0400279C RID: 10140
119 private ushort packedValue;
120 }
121}
class f__AnonymousType0<< Count > j__TPar
static bool operator==(Bgra5551 lhs, Bgra5551 rhs)
Definition Bgra5551.cs:81
static bool operator!=(Bgra5551 lhs, Bgra5551 rhs)
Definition Bgra5551.cs:87
static ushort Pack(float x, float y, float z, float w)
Definition Bgra5551.cs:93
Bgra5551(float x, float y, float z, float w)
Definition Bgra5551.cs:26
override string ToString()
Definition Vector4.cs:706