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
Marvin.cs
Go to the documentation of this file.
1using System;
4
5namespace System
6{
7 // Token: 0x020000D5 RID: 213
8 internal static class Marvin
9 {
10 // Token: 0x060007E0 RID: 2016 RVA: 0x00012B98 File Offset: 0x00010D98
11 public static int ComputeHash32(ReadOnlySpan<byte> data, ulong seed)
12 {
13 int num;
14 return num;
15 }
16
17 // Token: 0x060007E1 RID: 2017 RVA: 0x00012BA8 File Offset: 0x00010DA8
18 public static int ComputeHash32(byte data, int count, ulong seed)
19 {
20 /*
21An exception occurred when decompiling this method (060007E1)
22
23ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 System.Marvin::ComputeHash32(System.Byte,System.Int32,System.UInt64)
24
25 ---> System.Exception: Basic block has to end with unconditional control flow.
26{
27 IL_0021:
28 brtrue(IL_0000, ldc.i4:bool(1))
29}
30
31 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
32 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
33 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
34 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
35 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
36 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
37 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
38 --- End of inner exception stack trace ---
39 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
40 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
41*/;
42 }
43
44 // Token: 0x060007E2 RID: 2018 RVA: 0x00012BD8 File Offset: 0x00010DD8
45 private static void Block(uint rp0, uint rp1)
46 {
47 }
48
49 // Token: 0x060007E3 RID: 2019 RVA: 0x0000207A File Offset: 0x0000027A
50 private static uint _rotl(uint value, int shift)
51 {
52 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
53 }
54
55 // Token: 0x1700008F RID: 143
56 // (get) Token: 0x060007E4 RID: 2020 RVA: 0x00012BE8 File Offset: 0x00010DE8
57 public static ulong DefaultSeed
58 {
60 get
61 {
62 if ((ulong)4294967296L == 0UL)
63 {
64 }
65 return (ulong)4294967296L;
66 }
67 }
68
69 // Token: 0x060007E5 RID: 2021 RVA: 0x00012C0C File Offset: 0x00010E0C
70 private static ulong GenerateSeed()
71 {
72 return (ulong)126512556670976L;
73 }
74
75 // Token: 0x060007E6 RID: 2022 RVA: 0x00012C24 File Offset: 0x00010E24
76 // Note: this type is marked as 'beforefieldinit'.
77 static Marvin()
78 {
79 }
80
81 // Token: 0x04000364 RID: 868
83 private static readonly ulong <DefaultSeed>k__BackingField;
84 }
85}
class f__AnonymousType0<< Count > j__TPar
static int ComputeHash32(byte data, int count, ulong seed)
Definition Marvin.cs:18
static uint _rotl(uint value, int shift)
Definition Marvin.cs:50
static ulong DefaultSeed
Definition Marvin.cs:58
static Marvin()
Definition Marvin.cs:77
static ulong GenerateSeed()
Definition Marvin.cs:70
static void Block(uint rp0, uint rp1)
Definition Marvin.cs:45
static readonly ulong< DefaultSeed > k__BackingField
Definition Marvin.cs:83
static int ComputeHash32(ReadOnlySpan< byte > data, ulong seed)
Definition Marvin.cs:11