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
Rgba64.cs
Go to the documentation of this file.
1using System;
3
5{
6 // Token: 0x020003C0 RID: 960
7 public struct Rgba64 : IPackedVector<ulong>, IPackedVector, IEquatable<Rgba64>
8 {
9 // Token: 0x1700036D RID: 877
10 // (get) Token: 0x06001A0B RID: 6667 RVA: 0x000021DB File Offset: 0x000003DB
11 // (set) Token: 0x06001A0C RID: 6668 RVA: 0x0006BC30 File Offset: 0x00069E30
12 [CLSCompliant(false)]
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: 0x06001A0D RID: 6669 RVA: 0x0006BC44 File Offset: 0x00069E44
26 public Rgba64(float x, float y, float z, float w)
27 {
28 ulong num = Rgba64.Pack(x, y, z, w);
29 this.packedValue = num;
30 }
31
32 // Token: 0x06001A0E RID: 6670 RVA: 0x0006BC64 File Offset: 0x00069E64
33 public Rgba64(Vector4 vector)
34 {
35 ulong num;
36 this.packedValue = num;
37 }
38
39 // Token: 0x06001A0F RID: 6671 RVA: 0x000021DB File Offset: 0x000003DB
41 {
42 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
43 }
44
45 // Token: 0x06001A10 RID: 6672 RVA: 0x0006BC78 File Offset: 0x00069E78
47 {
48 ulong num;
49 this.packedValue = num;
50 }
51
52 // Token: 0x06001A11 RID: 6673 RVA: 0x0006BC8C File Offset: 0x00069E8C
53 public override bool Equals(object obj)
54 {
55 if (obj != null)
56 {
57 return;
58 }
59 }
60
61 // Token: 0x06001A12 RID: 6674 RVA: 0x000021DB File Offset: 0x000003DB
62 public bool Equals(Rgba64 other)
63 {
64 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
65 }
66
67 // Token: 0x06001A13 RID: 6675 RVA: 0x0006BCA0 File Offset: 0x00069EA0
68 public override string ToString()
69 {
70 return this.ToVector4().ToString();
71 }
72
73 // Token: 0x06001A14 RID: 6676 RVA: 0x0006BCB8 File Offset: 0x00069EB8
74 public override int GetHashCode()
75 {
76 int num;
77 return num;
78 }
79
80 // Token: 0x06001A15 RID: 6677 RVA: 0x000021DB File Offset: 0x000003DB
81 public static bool operator ==(Rgba64 lhs, Rgba64 rhs)
82 {
83 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
84 }
85
86 // Token: 0x06001A16 RID: 6678 RVA: 0x000021DB File Offset: 0x000003DB
87 public static bool operator !=(Rgba64 lhs, Rgba64 rhs)
88 {
89 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
90 }
91
92 // Token: 0x06001A17 RID: 6679 RVA: 0x0006BCC8 File Offset: 0x00069EC8
93 private static ulong Pack(float x, float y, float z, float w)
94 {
95 /*
96An exception occurred when decompiling this method (06001A17)
97
98ICSharpCode.Decompiler.DecompilerException: Error decompiling System.UInt64 Microsoft.Xna.Framework.Graphics.PackedVector.Rgba64::Pack(System.Single,System.Single,System.Single,System.Single)
99
100 ---> System.Exception: Basic block has to end with unconditional control flow.
101{
102 Block_0:
103 stloc:float32(var_1_0A, call:float32(MathHelper::Clamp, ldloc:float32(x), ldloc:float32(y), ldloc:float32(z)))
104 stloc:float32(var_3_15, call:float32(MathHelper::Clamp, ldloc:float32(x), ldloc:float32(y), ldloc:float32(z)))
105 stloc:float32(var_5_21, call:float32(MathHelper::Clamp, ldloc:float32(y), ldloc:float32(y), ldloc:float32(z)))
106 stloc:float32(var_7_2E, call:float32(MathHelper::Clamp, ldloc:float32(z), ldloc:float32(y), ldloc:float32(z)))
107}
108
109 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
110 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
111 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
112 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
113 --- End of inner exception stack trace ---
114 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
115 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
116*/;
117 }
118
119 // Token: 0x040027AA RID: 10154
121 }
122}
class f__AnonymousType0<< Count > j__TPar
static bool operator==(Rgba64 lhs, Rgba64 rhs)
Definition Rgba64.cs:81
static ulong Pack(float x, float y, float z, float w)
Definition Rgba64.cs:93
Rgba64(float x, float y, float z, float w)
Definition Rgba64.cs:26
static bool operator!=(Rgba64 lhs, Rgba64 rhs)
Definition Rgba64.cs:87
override string ToString()
Definition Vector4.cs:706