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
NormalizedByte4.cs
Go to the documentation of this file.
1using System;
3
5{
6 // Token: 0x020003BB RID: 955
7 public struct NormalizedByte4 : IPackedVector<uint>, IPackedVector, IEquatable<NormalizedByte4>
8 {
9 // Token: 0x060019C8 RID: 6600 RVA: 0x0006B800 File Offset: 0x00069A00
10 public NormalizedByte4(Vector4 vector)
11 {
12 uint num;
13 this._packed = num;
14 }
15
16 // Token: 0x060019C9 RID: 6601 RVA: 0x0006B814 File Offset: 0x00069A14
17 public NormalizedByte4(float x, float y, float z, float w)
18 {
19 uint num = NormalizedByte4.Pack(x, y, z, w);
20 this._packed = num;
21 }
22
23 // Token: 0x060019CA RID: 6602 RVA: 0x000021DB File Offset: 0x000003DB
25 {
26 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
27 }
28
29 // Token: 0x060019CB RID: 6603 RVA: 0x000021DB File Offset: 0x000003DB
31 {
32 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
33 }
34
35 // Token: 0x17000368 RID: 872
36 // (get) Token: 0x060019CC RID: 6604 RVA: 0x000021DB File Offset: 0x000003DB
37 // (set) Token: 0x060019CD RID: 6605 RVA: 0x0006B834 File Offset: 0x00069A34
38 [CLSCompliant(false)]
39 public uint PackedValue
40 {
41 get
42 {
43 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
44 }
45 set
46 {
48 }
49 }
50
51 // Token: 0x060019CE RID: 6606 RVA: 0x0006B848 File Offset: 0x00069A48
52 public override bool Equals(object obj)
53 {
54 if (obj != null)
55 {
56 return;
57 }
58 }
59
60 // Token: 0x060019CF RID: 6607 RVA: 0x000021DB File Offset: 0x000003DB
62 {
63 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
64 }
65
66 // Token: 0x060019D0 RID: 6608 RVA: 0x0006B85C File Offset: 0x00069A5C
67 public override int GetHashCode()
68 {
69 int num;
70 return num;
71 }
72
73 // Token: 0x060019D1 RID: 6609 RVA: 0x0006B86C File Offset: 0x00069A6C
74 public override string ToString()
75 {
76 string text;
77 return text;
78 }
79
80 // Token: 0x060019D2 RID: 6610 RVA: 0x0006B87C File Offset: 0x00069A7C
81 private static uint Pack(float x, float y, float z, float w)
82 {
83 /*
84An exception occurred when decompiling this method (060019D2)
85
86ICSharpCode.Decompiler.DecompilerException: Error decompiling System.UInt32 Microsoft.Xna.Framework.Graphics.PackedVector.NormalizedByte4::Pack(System.Single,System.Single,System.Single,System.Single)
87
88 ---> System.Exception: Basic block has to end with unconditional control flow.
89{
90 IL_000E:
91 stloc:float32(var_3_18, call:float32(MathHelper::Clamp, ldloc:float32(y), ldloc:float32(y), ldloc:float32(z)))
92 stloc:float32(var_5_24, call:float32(MathHelper::Clamp, ldloc:float32(z), ldloc:float32(y), ldloc:float32(z)))
93 stloc:float32(var_7_31, call:float32(MathHelper::Clamp, ldloc:float32(w), ldloc:float32(y), ldloc:float32(z)))
94}
95
96 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
97 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
98 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
99 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
100 --- End of inner exception stack trace ---
101 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
102 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
103*/;
104 }
105
106 // Token: 0x060019D3 RID: 6611 RVA: 0x0006B8BC File Offset: 0x00069ABC
108 {
109 uint num;
110 this._packed = num;
111 }
112
113 // Token: 0x060019D4 RID: 6612 RVA: 0x000021DB File Offset: 0x000003DB
115 {
116 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
117 }
118
119 // Token: 0x040027A5 RID: 10149
120 private uint _packed;
121 }
122}
class f__AnonymousType0<< Count > j__TPar
static bool operator!=(NormalizedByte4 a, NormalizedByte4 b)
static bool operator==(NormalizedByte4 a, NormalizedByte4 b)
static uint Pack(float x, float y, float z, float w)