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
ZipCipherStream.cs
Go to the documentation of this file.
1using System;
2using System.IO;
4
5namespace Ionic.Zip
6{
7 // Token: 0x0200001C RID: 28
8 internal class ZipCipherStream : Stream
9 {
10 // Token: 0x06000094 RID: 148 RVA: 0x00002D98 File Offset: 0x00000F98
12 {
13 if (!true)
14 {
15 }
16 base..ctor();
18 this._s = s;
20 }
21
22 // Token: 0x06000095 RID: 149 RVA: 0x00002DC4 File Offset: 0x00000FC4
23 public override int Read(byte[] buffer, int offset, int count)
24 {
25 /*
26An exception occurred when decompiling this method (06000095)
27
28ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 Ionic.Zip.ZipCipherStream::Read(System.Byte[],System.Int32,System.Int32)
29
30 ---> System.Exception: Basic block has to end with unconditional control flow.
31{
32 Block_1:
33 stloc:Stream(var_0_11, ldfld:Stream(ZipCipherStream::_s, ldloc:ZipCipherStream(this)))
34 stloc:ZipCrypto(var_1_18, ldfld:ZipCrypto(ZipCipherStream::_cipher, ldloc:ZipCipherStream(this)))
35}
36
37 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
38 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
39 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
40 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
41 --- End of inner exception stack trace ---
42 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
43 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
44*/;
45 }
46
47 // Token: 0x06000096 RID: 150 RVA: 0x00002DEC File Offset: 0x00000FEC
48 public override void Write(byte[] buffer, int offset, int count)
49 {
50 do
51 {
52 CryptoMode mode = this._mode;
53 }
54 while (buffer == null);
55 if (count != 0)
56 {
57 if (offset != 0)
58 {
59 }
61 Stream s = this._s;
62 return;
63 }
64 }
65
66 // Token: 0x1700001C RID: 28
67 // (get) Token: 0x06000097 RID: 151 RVA: 0x00002E1C File Offset: 0x0000101C
68 public override bool CanRead
69 {
70 get
71 {
72 /*
73An exception occurred when decompiling this method (06000097)
74
75ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Ionic.Zip.ZipCipherStream::get_CanRead()
76
77 ---> System.Exception: Basic block has to end with unconditional control flow.
78{
79 Block_0:
80 stloc:CryptoMode(var_0_06, ldfld:CryptoMode(ZipCipherStream::_mode, ldloc:ZipCipherStream(this)))
81}
82
83 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
84 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
85 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
86 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
87 --- End of inner exception stack trace ---
88 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
89 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
90*/;
91 }
92 }
93
94 // Token: 0x1700001D RID: 29
95 // (get) Token: 0x06000098 RID: 152 RVA: 0x00002E30 File Offset: 0x00001030
96 public override bool CanSeek
97 {
98 get
99 {
100 }
101 }
102
103 // Token: 0x1700001E RID: 30
104 // (get) Token: 0x06000099 RID: 153 RVA: 0x00002E40 File Offset: 0x00001040
105 public override bool CanWrite
106 {
107 get
108 {
109 /*
110An exception occurred when decompiling this method (06000099)
111
112ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Ionic.Zip.ZipCipherStream::get_CanWrite()
113
114 ---> System.Exception: Basic block has to end with unconditional control flow.
115{
116 Block_0:
117 stloc:CryptoMode(var_0_06, ldfld:CryptoMode(ZipCipherStream::_mode, ldloc:ZipCipherStream(this)))
118}
119
120 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
121 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
122 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
123 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
124 --- End of inner exception stack trace ---
125 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
126 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
127*/;
128 }
129 }
130
131 // Token: 0x0600009A RID: 154 RVA: 0x00002E54 File Offset: 0x00001054
132 public override void Flush()
133 {
134 }
135
136 // Token: 0x1700001F RID: 31
137 // (get) Token: 0x0600009B RID: 155 RVA: 0x00002122 File Offset: 0x00000322
138 public override long Length
139 {
140 get
141 {
142 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
143 }
144 }
145
146 // Token: 0x17000020 RID: 32
147 // (get) Token: 0x0600009C RID: 156 RVA: 0x00002122 File Offset: 0x00000322
148 // (set) Token: 0x0600009D RID: 157 RVA: 0x00002122 File Offset: 0x00000322
149 public override long Position
150 {
151 get
152 {
153 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
154 }
155 set
156 {
157 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
158 }
159 }
160
161 // Token: 0x0600009E RID: 158 RVA: 0x00002122 File Offset: 0x00000322
162 public override long Seek(long offset, SeekOrigin origin)
163 {
164 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
165 }
166
167 // Token: 0x0600009F RID: 159 RVA: 0x00002122 File Offset: 0x00000322
168 public override void SetLength(long value)
169 {
170 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
171 }
172
173 // Token: 0x04000049 RID: 73
175
176 // Token: 0x0400004A RID: 74
177 private Stream _s;
178
179 // Token: 0x0400004B RID: 75
181 }
182}
class f__AnonymousType0<< Count > j__TPar
ZipCipherStream(Stream s, ZipCrypto cipher, CryptoMode mode)
override void SetLength(long value)
override void Write(byte[] buffer, int offset, int count)
override int Read(byte[] buffer, int offset, int count)
override long Seek(long offset, SeekOrigin origin)