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
ZlibStream.cs
Go to the documentation of this file.
1using System;
2using System.IO;
4
5namespace Ionic.Zlib
6{
7 // Token: 0x0200005B RID: 91
8 public class ZlibStream : Stream
9 {
10 // Token: 0x060003DE RID: 990 RVA: 0x0000F138 File Offset: 0x0000D338
12 {
13 }
14
15 // Token: 0x060003DF RID: 991 RVA: 0x0000F148 File Offset: 0x0000D348
17 {
18 }
19
20 // Token: 0x060003E0 RID: 992 RVA: 0x0000F158 File Offset: 0x0000D358
21 public ZlibStream(Stream stream, CompressionMode mode, bool leaveOpen)
22 {
23 }
24
25 // Token: 0x060003E1 RID: 993 RVA: 0x0000F168 File Offset: 0x0000D368
26 public ZlibStream(Stream stream, CompressionMode mode, CompressionLevel level, bool leaveOpen)
27 {
28 if (!true)
29 {
30 }
31 base..ctor();
32 }
33
34 // Token: 0x170000EC RID: 236
35 // (get) Token: 0x060003E2 RID: 994 RVA: 0x0000F180 File Offset: 0x0000D380
36 // (set) Token: 0x060003E3 RID: 995 RVA: 0x0000F198 File Offset: 0x0000D398
37 public virtual FlushType FlushMode
38 {
39 get
40 {
41 return this._baseStream._flushMode;
42 }
43 set
44 {
45 while (this._disposed)
46 {
47 }
49 }
50 }
51
52 // Token: 0x170000ED RID: 237
53 // (get) Token: 0x060003E4 RID: 996 RVA: 0x0000F1BC File Offset: 0x0000D3BC
54 // (set) Token: 0x060003E5 RID: 997 RVA: 0x0000F1D4 File Offset: 0x0000D3D4
55 public int BufferSize
56 {
57 get
58 {
59 return this._baseStream._bufferSize;
60 }
61 set
62 {
63 while (!this._disposed)
64 {
66 if (baseStream._workingBuffer == null)
67 {
69 return;
70 }
71 }
72 }
73 }
74
75 // Token: 0x170000EE RID: 238
76 // (get) Token: 0x060003E6 RID: 998 RVA: 0x0000F200 File Offset: 0x0000D400
77 public virtual long TotalIn
78 {
79 get
80 {
81 return this._baseStream._z.TotalBytesIn;
82 }
83 }
84
85 // Token: 0x170000EF RID: 239
86 // (get) Token: 0x060003E7 RID: 999 RVA: 0x0000F220 File Offset: 0x0000D420
87 public virtual long TotalOut
88 {
89 get
90 {
91 return this._baseStream._z.TotalBytesOut;
92 }
93 }
94
95 // Token: 0x060003E8 RID: 1000 RVA: 0x0000F240 File Offset: 0x0000D440
96 protected override void Dispose(bool disposing)
97 {
98 if (!this._disposed)
99 {
100 if (this._baseStream != null)
101 {
102 }
103 this._disposed = true;
104 }
105 base.Dispose(disposing);
106 }
107
108 // Token: 0x170000F0 RID: 240
109 // (get) Token: 0x060003E9 RID: 1001 RVA: 0x0000F28C File Offset: 0x0000D48C
110 public override bool CanRead
111 {
112 get
113 {
114 /*
115An exception occurred when decompiling this method (060003E9)
116
117ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Ionic.Zlib.ZlibStream::get_CanRead()
118
119 ---> System.Exception: Basic block has to end with unconditional control flow.
120{
121 Block_0:
122 stloc:Stream(var_0_13, ldfld:Stream(ZlibBaseStream::_stream, ldfld:ZlibBaseStream(ZlibStream::_baseStream, ldloc:ZlibStream(this))))
123}
124
125 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
126 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
127 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
128 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
129 --- End of inner exception stack trace ---
130 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
131 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
132*/;
133 }
134 }
135
136 // Token: 0x170000F1 RID: 241
137 // (get) Token: 0x060003EA RID: 1002 RVA: 0x0000F2AC File Offset: 0x0000D4AC
138 public override bool CanSeek
139 {
140 get
141 {
142 }
143 }
144
145 // Token: 0x170000F2 RID: 242
146 // (get) Token: 0x060003EB RID: 1003 RVA: 0x0000F2BC File Offset: 0x0000D4BC
147 public override bool CanWrite
148 {
149 get
150 {
151 /*
152An exception occurred when decompiling this method (060003EB)
153
154ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Ionic.Zlib.ZlibStream::get_CanWrite()
155
156 ---> System.Exception: Basic block has to end with unconditional control flow.
157{
158 Block_0:
159 stloc:Stream(var_0_13, ldfld:Stream(ZlibBaseStream::_stream, ldfld:ZlibBaseStream(ZlibStream::_baseStream, ldloc:ZlibStream(this))))
160}
161
162 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
163 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
164 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
165 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
166 --- End of inner exception stack trace ---
167 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
168 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
169*/;
170 }
171 }
172
173 // Token: 0x060003EC RID: 1004 RVA: 0x0000F2DC File Offset: 0x0000D4DC
174 public override void Flush()
175 {
176 while (this._disposed)
177 {
178 }
180 }
181
182 // Token: 0x170000F3 RID: 243
183 // (get) Token: 0x060003ED RID: 1005 RVA: 0x00002122 File Offset: 0x00000322
184 public override long Length
185 {
186 get
187 {
188 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
189 }
190 }
191
192 // Token: 0x170000F4 RID: 244
193 // (get) Token: 0x060003EE RID: 1006 RVA: 0x0000F2F8 File Offset: 0x0000D4F8
194 // (set) Token: 0x060003EF RID: 1007 RVA: 0x00002122 File Offset: 0x00000322
195 public override long Position
196 {
197 get
198 {
200 if (baseStream._streamMode == ZlibBaseStream.StreamMode.Writer)
201 {
203 }
204 return 0L;
205 }
206 set
207 {
208 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
209 }
210 }
211
212 // Token: 0x060003F0 RID: 1008 RVA: 0x0000F324 File Offset: 0x0000D524
213 public override int Read(byte[] buffer, int offset, int count)
214 {
215 /*
216An exception occurred when decompiling this method (060003F0)
217
218ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 Ionic.Zlib.ZlibStream::Read(System.Byte[],System.Int32,System.Int32)
219
220 ---> System.Exception: Basic block has to end with unconditional control flow.
221{
222 Block_0:
223 stloc:ZlibBaseStream(var_0_0E, ldfld:ZlibBaseStream(ZlibStream::_baseStream, ldloc:ZlibStream(this)))
224}
225
226 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
227 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
228 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
229 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
230 --- End of inner exception stack trace ---
231 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
232 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
233*/;
234 }
235
236 // Token: 0x060003F1 RID: 1009 RVA: 0x00002122 File Offset: 0x00000322
237 public override long Seek(long offset, SeekOrigin origin)
238 {
239 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
240 }
241
242 // Token: 0x060003F2 RID: 1010 RVA: 0x00002122 File Offset: 0x00000322
243 public override void SetLength(long value)
244 {
245 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
246 }
247
248 // Token: 0x060003F3 RID: 1011 RVA: 0x0000F340 File Offset: 0x0000D540
249 public override void Write(byte[] buffer, int offset, int count)
250 {
251 while (this._disposed)
252 {
253 }
255 }
256
257 // Token: 0x060003F4 RID: 1012 RVA: 0x0000F35C File Offset: 0x0000D55C
258 public static byte[] CompressString(string s)
259 {
260 if (!false)
261 {
262 }
263 throw new OutOfMemoryException();
264 }
265
266 // Token: 0x060003F5 RID: 1013 RVA: 0x0000F388 File Offset: 0x0000D588
267 public static byte[] CompressBuffer(byte[] b)
268 {
269 if (!false)
270 {
271 }
272 throw new OutOfMemoryException();
273 }
274
275 // Token: 0x060003F6 RID: 1014 RVA: 0x0000F3B4 File Offset: 0x0000D5B4
276 public static string UncompressString(byte[] compressed)
277 {
278 if (!false)
279 {
280 string text;
281 return text;
282 }
283 throw new OutOfMemoryException();
284 }
285
286 // Token: 0x060003F7 RID: 1015 RVA: 0x0000F3E0 File Offset: 0x0000D5E0
287 public static byte[] UncompressBuffer(byte[] compressed)
288 {
289 if (!false)
290 {
291 byte[] array;
292 return array;
293 }
294 throw new OutOfMemoryException();
295 }
296
297 // Token: 0x04000319 RID: 793
299
300 // Token: 0x0400031A RID: 794
301 private bool _disposed;
302 }
303}
class f__AnonymousType0<< Count > j__TPar
ZlibBaseStream.StreamMode _streamMode
override bool CanSeek
static byte[] CompressBuffer(byte[] b)
override long Seek(long offset, SeekOrigin origin)
static string UncompressString(byte[] compressed)
ZlibStream(Stream stream, CompressionMode mode, bool leaveOpen)
Definition ZlibStream.cs:21
static byte[] CompressString(string s)
override int Read(byte[] buffer, int offset, int count)
ZlibBaseStream _baseStream
override long Length
override void Write(byte[] buffer, int offset, int count)
override void Flush()
override bool CanWrite
static byte[] UncompressBuffer(byte[] compressed)
virtual FlushType FlushMode
Definition ZlibStream.cs:38
override long Position
override void Dispose(bool disposing)
Definition ZlibStream.cs:96
ZlibStream(Stream stream, CompressionMode mode, CompressionLevel level, bool leaveOpen)
Definition ZlibStream.cs:26
override bool CanRead
virtual long TotalIn
Definition ZlibStream.cs:78
ZlibStream(Stream stream, CompressionMode mode)
Definition ZlibStream.cs:11
override void SetLength(long value)
virtual long TotalOut
Definition ZlibStream.cs:88
ZlibStream(Stream stream, CompressionMode mode, CompressionLevel level)
Definition ZlibStream.cs:16