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
Alpha8.cs
Go to the documentation of this file.
1using System;
3
5{
6 // Token: 0x020003AE RID: 942
7 public struct Alpha8 : IPackedVector<byte>, IPackedVector, IEquatable<Alpha8>
8 {
9 // Token: 0x1700035E RID: 862
10 // (get) Token: 0x06001949 RID: 6473 RVA: 0x000021DB File Offset: 0x000003DB
11 // (set) Token: 0x0600194A RID: 6474 RVA: 0x0006B0D4 File Offset: 0x000692D4
12 [CLSCompliant(false)]
13 public byte 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: 0x0600194B RID: 6475 RVA: 0x0006B0E8 File Offset: 0x000692E8
26 public Alpha8(float alpha)
27 {
28 byte b = Alpha8.Pack(alpha);
30 }
31
32 // Token: 0x0600194C RID: 6476 RVA: 0x000021DB File Offset: 0x000003DB
33 public float ToAlpha()
34 {
35 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
36 }
37
38 // Token: 0x0600194D RID: 6477 RVA: 0x0006B104 File Offset: 0x00069304
40 {
41 byte b;
43 }
44
45 // Token: 0x0600194E RID: 6478 RVA: 0x0006B118 File Offset: 0x00069318
47 {
48 return 17279;
49 }
50
51 // Token: 0x0600194F RID: 6479 RVA: 0x0006B12C File Offset: 0x0006932C
52 public override bool Equals(object obj)
53 {
54 if (obj != null)
55 {
56 return;
57 }
58 }
59
60 // Token: 0x06001950 RID: 6480 RVA: 0x000021DB File Offset: 0x000003DB
61 public bool Equals(Alpha8 other)
62 {
63 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
64 }
65
66 // Token: 0x06001951 RID: 6481 RVA: 0x0006B140 File Offset: 0x00069340
67 public override string ToString()
68 {
69 string text;
70 return text;
71 }
72
73 // Token: 0x06001952 RID: 6482 RVA: 0x0006B150 File Offset: 0x00069350
74 public override int GetHashCode()
75 {
76 int num;
77 return num;
78 }
79
80 // Token: 0x06001953 RID: 6483 RVA: 0x000021DB File Offset: 0x000003DB
81 public static bool operator ==(Alpha8 lhs, Alpha8 rhs)
82 {
83 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
84 }
85
86 // Token: 0x06001954 RID: 6484 RVA: 0x000021DB File Offset: 0x000003DB
87 public static bool operator !=(Alpha8 lhs, Alpha8 rhs)
88 {
89 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
90 }
91
92 // Token: 0x06001955 RID: 6485 RVA: 0x0006B160 File Offset: 0x00069360
93 private static byte Pack(float alpha)
94 {
95 /*
96An exception occurred when decompiling this method (06001955)
97
98ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Byte Microsoft.Xna.Framework.Graphics.PackedVector.Alpha8::Pack(System.Single)
99
100 ---> System.Exception: Basic block has to end with unconditional control flow.
101{
102 IL_0000:
103 brtrue(IL_0000, ldc.i4:bool(1))
104}
105
106 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
107 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
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 1878
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 1846
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: 0x04002799 RID: 10137
120 private byte packedValue;
121 }
122}
class f__AnonymousType0<< Count > j__TPar
static bool operator==(Alpha8 lhs, Alpha8 rhs)
Definition Alpha8.cs:81
static bool operator!=(Alpha8 lhs, Alpha8 rhs)
Definition Alpha8.cs:87