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
Bgra4444.cs
Go to the documentation of this file.
1using System;
3
5{
6 // Token: 0x020003B0 RID: 944
7 public struct Bgra4444 : IPackedVector<ushort>, IPackedVector, IEquatable<Bgra4444>
8 {
9 // Token: 0x06001964 RID: 6500 RVA: 0x0006B25C File Offset: 0x0006945C
10 private static ushort Pack(float x, float y, float z, float w)
11 {
12 /*
13An exception occurred when decompiling this method (06001964)
14
15ICSharpCode.Decompiler.DecompilerException: Error decompiling System.UInt16 Microsoft.Xna.Framework.Graphics.PackedVector.Bgra4444::Pack(System.Single,System.Single,System.Single,System.Single)
16
17 ---> System.Exception: Basic block has to end with unconditional control flow.
18{
19 IL_000E:
20 stloc:float32(var_3_18, call:float32(MathHelper::Clamp, ldloc:float32(x), ldloc:float32(y), ldloc:float32(z)))
21 stloc:float32(var_5_24, call:float32(MathHelper::Clamp, ldloc:float32(y), ldloc:float32(y), ldloc:float32(z)))
22 stloc:float32(var_7_31, call:float32(MathHelper::Clamp, ldloc:float32(z), ldloc:float32(y), ldloc:float32(z)))
23}
24
25 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
26 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
27 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
28 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
29 --- End of inner exception stack trace ---
30 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
31 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
32*/;
33 }
34
35 // Token: 0x06001965 RID: 6501 RVA: 0x0006B29C File Offset: 0x0006949C
36 public Bgra4444(float x, float y, float z, float w)
37 {
38 ushort num = Bgra4444.Pack(x, y, z, w);
40 }
41
42 // Token: 0x06001966 RID: 6502 RVA: 0x0006B2BC File Offset: 0x000694BC
43 public Bgra4444(Vector4 vector)
44 {
45 ushort num;
47 }
48
49 // Token: 0x17000360 RID: 864
50 // (get) Token: 0x06001967 RID: 6503 RVA: 0x000021DB File Offset: 0x000003DB
51 // (set) Token: 0x06001968 RID: 6504 RVA: 0x0006B2D0 File Offset: 0x000694D0
52 [CLSCompliant(false)]
53 public ushort PackedValue
54 {
55 get
56 {
57 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
58 }
59 set
60 {
62 }
63 }
64
65 // Token: 0x06001969 RID: 6505 RVA: 0x000021DB File Offset: 0x000003DB
67 {
68 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
69 }
70
71 // Token: 0x0600196A RID: 6506 RVA: 0x0006B2E4 File Offset: 0x000694E4
73 {
74 ushort num;
76 }
77
78 // Token: 0x0600196B RID: 6507 RVA: 0x0006B2F8 File Offset: 0x000694F8
79 public override bool Equals(object obj)
80 {
81 if (obj != null)
82 {
83 return;
84 }
85 }
86
87 // Token: 0x0600196C RID: 6508 RVA: 0x000021DB File Offset: 0x000003DB
88 public bool Equals(Bgra4444 other)
89 {
90 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
91 }
92
93 // Token: 0x0600196D RID: 6509 RVA: 0x0006B30C File Offset: 0x0006950C
94 public override string ToString()
95 {
96 return this.ToVector4().ToString();
97 }
98
99 // Token: 0x0600196E RID: 6510 RVA: 0x0006B324 File Offset: 0x00069524
100 public override int GetHashCode()
101 {
102 int num;
103 return num;
104 }
105
106 // Token: 0x0600196F RID: 6511 RVA: 0x000021DB File Offset: 0x000003DB
107 public static bool operator ==(Bgra4444 lhs, Bgra4444 rhs)
108 {
109 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
110 }
111
112 // Token: 0x06001970 RID: 6512 RVA: 0x000021DB File Offset: 0x000003DB
113 public static bool operator !=(Bgra4444 lhs, Bgra4444 rhs)
114 {
115 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
116 }
117
118 // Token: 0x0400279B RID: 10139
119 private ushort _packedValue;
120 }
121}
class f__AnonymousType0<< Count > j__TPar
static bool operator!=(Bgra4444 lhs, Bgra4444 rhs)
Definition Bgra4444.cs:113
Bgra4444(float x, float y, float z, float w)
Definition Bgra4444.cs:36
static ushort Pack(float x, float y, float z, float w)
Definition Bgra4444.cs:10
static bool operator==(Bgra4444 lhs, Bgra4444 rhs)
Definition Bgra4444.cs:107
override string ToString()
Definition Vector4.cs:706