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
KeySizes.cs
Go to the documentation of this file.
1using System;
3
5{
6 // Token: 0x020002CE RID: 718
7 [ComVisible(true)]
8 public sealed class KeySizes
9 {
10 // Token: 0x17000291 RID: 657
11 // (get) Token: 0x0600183F RID: 6207 RVA: 0x00033D84 File Offset: 0x00031F84
12 public int MinSize
13 {
14 get
15 {
16 return this.m_minSize;
17 }
18 }
19
20 // Token: 0x17000292 RID: 658
21 // (get) Token: 0x06001840 RID: 6208 RVA: 0x00033D98 File Offset: 0x00031F98
22 public int MaxSize
23 {
24 get
25 {
26 return this.m_maxSize;
27 }
28 }
29
30 // Token: 0x17000293 RID: 659
31 // (get) Token: 0x06001841 RID: 6209 RVA: 0x00033DAC File Offset: 0x00031FAC
32 public int SkipSize
33 {
34 get
35 {
36 return this.m_skipSize;
37 }
38 }
39
40 // Token: 0x06001842 RID: 6210 RVA: 0x00033DC0 File Offset: 0x00031FC0
41 public KeySizes(int minSize, int maxSize, int skipSize)
42 {
43 this.m_minSize = minSize;
44 this.m_skipSize = maxSize;
46 }
47
48 // Token: 0x06001843 RID: 6211 RVA: 0x00033DE8 File Offset: 0x00031FE8
49 internal bool IsLegal(int keySize)
50 {
51 /*
52An exception occurred when decompiling this method (06001843)
53
54ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean System.Security.Cryptography.KeySizes::IsLegal(System.Int32)
55
56 ---> System.Exception: Basic block has to end with unconditional control flow.
57{
58 Block_0:
59 stloc:int32(var_0_06, ldfld:int32(KeySizes::m_minSize, ldloc:KeySizes(this)))
60 stloc:int32(var_1_0D, ldfld:int32(KeySizes::m_maxSize, ldloc:KeySizes(this)))
61}
62
63 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
64 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
65 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
66 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
67 --- End of inner exception stack trace ---
68 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
69 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
70*/;
71 }
72
73 // Token: 0x06001844 RID: 6212 RVA: 0x00033E04 File Offset: 0x00032004
74 internal static bool IsLegalKeySize(KeySizes[] legalKeys, int size)
75 {
76 }
77
78 // Token: 0x04000C8B RID: 3211
79 private int m_minSize;
80
81 // Token: 0x04000C8C RID: 3212
82 private int m_maxSize;
83
84 // Token: 0x04000C8D RID: 3213
85 private int m_skipSize;
86 }
87}
class f__AnonymousType0<< Count > j__TPar
KeySizes(int minSize, int maxSize, int skipSize)
Definition KeySizes.cs:41
static bool IsLegalKeySize(KeySizes[] legalKeys, int size)
Definition KeySizes.cs:74