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
SecureString.cs
Go to the documentation of this file.
1using System;
2
3namespace System.Security
4{
5 // Token: 0x02000298 RID: 664
6 [MonoTODO("work in progress - encryption is missing")]
7 public sealed class SecureString : IDisposable
8 {
9 // Token: 0x060016F7 RID: 5879 RVA: 0x00030648 File Offset: 0x0002E848
10 public SecureString()
11 {
12 long num = 0L;
13 this.Alloc(8, num != 0L);
14 }
15
16 // Token: 0x060016F8 RID: 5880 RVA: 0x00030668 File Offset: 0x0002E868
17 [CLSCompliant(false)]
18 public unsafe SecureString(char* value, int length)
19 {
20 if (value != null)
21 {
22 long num = 0L;
24 this.Alloc(length, num != 0L);
25 if (length != 0)
26 {
27 byte[] array = this.data;
28 byte[] array2 = this.data;
29 }
30 return;
31 }
32 }
33
34 // Token: 0x17000250 RID: 592
35 // (get) Token: 0x060016F9 RID: 5881 RVA: 0x000306A4 File Offset: 0x0002E8A4
36 public int Length
37 {
38 get
39 {
40 while (this.disposed)
41 {
42 }
43 return this.length;
44 }
45 }
46
47 // Token: 0x060016FA RID: 5882 RVA: 0x000306C0 File Offset: 0x0002E8C0
49 {
50 /*
51An exception occurred when decompiling this method (060016FA)
52
53ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Security.SecureString System.Security.SecureString::Copy()
54
55 ---> System.Exception: Basic block has to end with unconditional control flow.
56{
57 IL_0018:
58 stloc:int32(var_3_1E, ldfld:int32(SecureString::length, ldloc:SecureString(this)))
59}
60
61 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
62 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
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 1878
64 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
65 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
66 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
67 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
68 --- End of inner exception stack trace ---
69 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
70 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
71*/;
72 }
73
74 // Token: 0x060016FB RID: 5883 RVA: 0x000306EC File Offset: 0x0002E8EC
75 public void Dispose()
76 {
77 byte[] array = this.data;
78 this.disposed = true;
79 if (array != null)
80 {
81 }
82 }
83
84 // Token: 0x060016FC RID: 5884 RVA: 0x0003070C File Offset: 0x0002E90C
85 private void Encrypt()
86 {
87 }
88
89 // Token: 0x060016FD RID: 5885 RVA: 0x0003071C File Offset: 0x0002E91C
90 private void Decrypt()
91 {
92 }
93
94 // Token: 0x060016FE RID: 5886 RVA: 0x0003072C File Offset: 0x0002E92C
95 private void Alloc(int length, bool realloc)
96 {
97 byte[] array = this.data;
98 if (array != null)
99 {
100 }
101 if (array == null)
102 {
103 }
104 int num = Math.Min(0, length);
105 }
106
107 // Token: 0x060016FF RID: 5887 RVA: 0x00030754 File Offset: 0x0002E954
108 internal byte[] GetBuffer()
109 {
110 int num = this.length;
111 byte[] array = this.data;
112 throw new OutOfMemoryException();
113 }
114
115 // Token: 0x04000B9F RID: 2975
116 private int length;
117
118 // Token: 0x04000BA0 RID: 2976
119 private bool disposed;
120
121 // Token: 0x04000BA1 RID: 2977
122 private byte[] data;
123 }
124}
class f__AnonymousType0<< Count > j__TPar
static byte Min(byte val1, byte val2)
Definition Math.cs:152
void Alloc(int length, bool realloc)
unsafe SecureString(char *value, int length)