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
GZipStream.cs
Go to the documentation of this file.
1using System;
2using System.IO;
3using System.Text;
5using Ionic.Crc;
6
7namespace Ionic.Zlib
8{
9 // Token: 0x02000044 RID: 68
10 public class GZipStream : Stream
11 {
12 // Token: 0x170000D5 RID: 213
13 // (get) Token: 0x06000359 RID: 857 RVA: 0x0000C598 File Offset: 0x0000A798
14 // (set) Token: 0x0600035A RID: 858 RVA: 0x0000C5AC File Offset: 0x0000A7AC
15 public string Comment
16 {
17 get
18 {
19 return this._Comment;
20 }
21 set
22 {
23 while (this._disposed)
24 {
25 }
27 }
28 }
29
30 // Token: 0x170000D6 RID: 214
31 // (get) Token: 0x0600035B RID: 859 RVA: 0x0000C5C8 File Offset: 0x0000A7C8
32 // (set) Token: 0x0600035C RID: 860 RVA: 0x0000C5DC File Offset: 0x0000A7DC
33 public string FileName
34 {
35 get
36 {
37 return this._FileName;
38 }
39 set
40 {
41 if (!this._disposed)
42 {
44 if (value != null)
45 {
46 int num = value.IndexOf("/");
47 string text = this._FileName.Replace("/", "\\");
49 bool flag = text.EndsWith("\\");
50 int num2 = this._FileName.IndexOf("\\");
51 string fileName = Path.GetFileName(this._FileName);
52 this._FileName = fileName;
53 }
54 return;
55 }
56 }
57 }
58
59 // Token: 0x170000D7 RID: 215
60 // (get) Token: 0x0600035D RID: 861 RVA: 0x0000C658 File Offset: 0x0000A858
61 public int Crc32
62 {
63 get
64 {
65 return this._Crc32;
66 }
67 }
68
69 // Token: 0x0600035E RID: 862 RVA: 0x0000C66C File Offset: 0x0000A86C
71 {
72 }
73
74 // Token: 0x0600035F RID: 863 RVA: 0x0000C67C File Offset: 0x0000A87C
76 {
77 }
78
79 // Token: 0x06000360 RID: 864 RVA: 0x0000C68C File Offset: 0x0000A88C
80 public GZipStream(Stream stream, CompressionMode mode, bool leaveOpen)
81 {
82 }
83
84 // Token: 0x06000361 RID: 865 RVA: 0x0000C69C File Offset: 0x0000A89C
85 public GZipStream(Stream stream, CompressionMode mode, CompressionLevel level, bool leaveOpen)
86 {
87 if (!true)
88 {
89 }
90 base..ctor();
91 }
92
93 // Token: 0x170000D8 RID: 216
94 // (get) Token: 0x06000362 RID: 866 RVA: 0x0000C6B4 File Offset: 0x0000A8B4
95 // (set) Token: 0x06000363 RID: 867 RVA: 0x0000C6CC File Offset: 0x0000A8CC
96 public virtual FlushType FlushMode
97 {
98 get
99 {
100 return this._baseStream._flushMode;
101 }
102 set
103 {
104 while (this._disposed)
105 {
106 }
108 }
109 }
110
111 // Token: 0x170000D9 RID: 217
112 // (get) Token: 0x06000364 RID: 868 RVA: 0x0000C6F0 File Offset: 0x0000A8F0
113 // (set) Token: 0x06000365 RID: 869 RVA: 0x0000C708 File Offset: 0x0000A908
114 public int BufferSize
115 {
116 get
117 {
118 return this._baseStream._bufferSize;
119 }
120 set
121 {
122 while (!this._disposed)
123 {
125 if (baseStream._workingBuffer == null)
126 {
128 return;
129 }
130 }
131 }
132 }
133
134 // Token: 0x170000DA RID: 218
135 // (get) Token: 0x06000366 RID: 870 RVA: 0x0000C734 File Offset: 0x0000A934
136 public virtual long TotalIn
137 {
138 get
139 {
140 return this._baseStream._z.TotalBytesIn;
141 }
142 }
143
144 // Token: 0x170000DB RID: 219
145 // (get) Token: 0x06000367 RID: 871 RVA: 0x0000C754 File Offset: 0x0000A954
146 public virtual long TotalOut
147 {
148 get
149 {
150 return this._baseStream._z.TotalBytesOut;
151 }
152 }
153
154 // Token: 0x06000368 RID: 872 RVA: 0x0000C774 File Offset: 0x0000A974
155 protected override void Dispose(bool disposing)
156 {
157 if (!this._disposed)
158 {
159 if (this._baseStream != null)
160 {
161 CRC32 crc = this._baseStream.crc;
162 uint register;
163 if (crc != null)
164 {
165 register = crc._register;
166 }
167 this._Crc32 = (int)register;
168 }
169 this._disposed = true;
170 }
171 base.Dispose(disposing);
172 }
173
174 // Token: 0x170000DC RID: 220
175 // (get) Token: 0x06000369 RID: 873 RVA: 0x0000C7E0 File Offset: 0x0000A9E0
176 public override bool CanRead
177 {
178 get
179 {
180 /*
181An exception occurred when decompiling this method (06000369)
182
183ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Ionic.Zlib.GZipStream::get_CanRead()
184
185 ---> System.Exception: Basic block has to end with unconditional control flow.
186{
187 Block_0:
188 stloc:Stream(var_0_13, ldfld:Stream(ZlibBaseStream::_stream, ldfld:ZlibBaseStream(GZipStream::_baseStream, ldloc:GZipStream(this))))
189}
190
191 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
192 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
193 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
194 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
195 --- End of inner exception stack trace ---
196 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
197 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
198*/;
199 }
200 }
201
202 // Token: 0x170000DD RID: 221
203 // (get) Token: 0x0600036A RID: 874 RVA: 0x0000C800 File Offset: 0x0000AA00
204 public override bool CanSeek
205 {
206 get
207 {
208 }
209 }
210
211 // Token: 0x170000DE RID: 222
212 // (get) Token: 0x0600036B RID: 875 RVA: 0x0000C810 File Offset: 0x0000AA10
213 public override bool CanWrite
214 {
215 get
216 {
217 /*
218An exception occurred when decompiling this method (0600036B)
219
220ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Ionic.Zlib.GZipStream::get_CanWrite()
221
222 ---> System.Exception: Basic block has to end with unconditional control flow.
223{
224 Block_0:
225 stloc:Stream(var_0_13, ldfld:Stream(ZlibBaseStream::_stream, ldfld:ZlibBaseStream(GZipStream::_baseStream, ldloc:GZipStream(this))))
226}
227
228 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
229 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
230 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
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 88
232 --- End of inner exception stack trace ---
233 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
234 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
235*/;
236 }
237 }
238
239 // Token: 0x0600036C RID: 876 RVA: 0x0000C830 File Offset: 0x0000AA30
240 public override void Flush()
241 {
242 while (this._disposed)
243 {
244 }
246 }
247
248 // Token: 0x170000DF RID: 223
249 // (get) Token: 0x0600036D RID: 877 RVA: 0x00002122 File Offset: 0x00000322
250 public override long Length
251 {
252 get
253 {
254 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
255 }
256 }
257
258 // Token: 0x170000E0 RID: 224
259 // (get) Token: 0x0600036E RID: 878 RVA: 0x0000C84C File Offset: 0x0000AA4C
260 // (set) Token: 0x0600036F RID: 879 RVA: 0x00002122 File Offset: 0x00000322
261 public override long Position
262 {
263 get
264 {
266 if (baseStream._streamMode == ZlibBaseStream.StreamMode.Writer)
267 {
268 ZlibCodec z = baseStream._z;
270 }
271 return 0L;
272 }
273 set
274 {
275 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
276 }
277 }
278
279 // Token: 0x06000370 RID: 880 RVA: 0x0000C878 File Offset: 0x0000AA78
280 public override int Read(byte[] buffer, int offset, int count)
281 {
282 /*
283An exception occurred when decompiling this method (06000370)
284
285ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 Ionic.Zlib.GZipStream::Read(System.Byte[],System.Int32,System.Int32)
286
287 ---> System.Exception: Basic block has to end with unconditional control flow.
288{
289 Block_1:
290 stloc:ZlibBaseStream(var_1_1D, ldfld:ZlibBaseStream(GZipStream::_baseStream, ldloc:GZipStream(this)))
291 stfld:bool(GZipStream::_firstReadDone, ldloc:GZipStream(this), ldc.i4:bool(1))
292 stloc:string(var_2_2B, ldfld:string(ZlibBaseStream::_GzipFileName, ldloc:ZlibBaseStream(var_1_1D)))
293 callsetter:string(GZipStream::set_FileName, ldloc:GZipStream(this), ldloc:string(var_2_2B))
294 stloc:string(var_3_3E, ldfld:string(ZlibBaseStream::_GzipComment, ldfld:ZlibBaseStream(GZipStream::_baseStream, ldloc:GZipStream(this))))
295 callsetter:string(GZipStream::set_Comment, ldloc:GZipStream(this), ldloc:string(var_3_3E))
296}
297
298 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
299 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
300 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
301 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
302 --- End of inner exception stack trace ---
303 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
304 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
305*/;
306 }
307
308 // Token: 0x06000371 RID: 881 RVA: 0x00002122 File Offset: 0x00000322
309 public override long Seek(long offset, SeekOrigin origin)
310 {
311 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
312 }
313
314 // Token: 0x06000372 RID: 882 RVA: 0x00002122 File Offset: 0x00000322
315 public override void SetLength(long value)
316 {
317 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
318 }
319
320 // Token: 0x06000373 RID: 883 RVA: 0x0000C8CC File Offset: 0x0000AACC
321 public override void Write(byte[] buffer, int offset, int count)
322 {
323 while (!this._disposed)
324 {
327 if (baseStream._compressionMode == CompressionMode.Compress)
328 {
329 int num = this.EmitHeader();
332 return;
333 }
334 }
335 }
336
337 // Token: 0x06000374 RID: 884 RVA: 0x0000C910 File Offset: 0x0000AB10
338 private int EmitHeader()
339 {
340 /*
341An exception occurred when decompiling this method (06000374)
342
343ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 Ionic.Zlib.GZipStream::EmitHeader()
344
345 ---> System.Exception: Basic block has to end with unconditional control flow.
346{
347 IL_0088:
348 stloc:Stream(var_16_93, ldfld:Stream(ZlibBaseStream::_stream, ldfld:ZlibBaseStream(GZipStream::_baseStream, ldloc:GZipStream(this))))
349}
350
351 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
352 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
353 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
354 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
355 --- End of inner exception stack trace ---
356 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
357 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
358*/;
359 }
360
361 // Token: 0x06000375 RID: 885 RVA: 0x0000C9B4 File Offset: 0x0000ABB4
362 public static byte[] CompressString(string s)
363 {
364 if (!false)
365 {
366 }
367 throw new OutOfMemoryException();
368 }
369
370 // Token: 0x06000376 RID: 886 RVA: 0x0000C9E0 File Offset: 0x0000ABE0
371 public static byte[] CompressBuffer(byte[] b)
372 {
373 if (!false)
374 {
375 }
376 throw new OutOfMemoryException();
377 }
378
379 // Token: 0x06000377 RID: 887 RVA: 0x0000CA0C File Offset: 0x0000AC0C
380 public static string UncompressString(byte[] compressed)
381 {
382 if (!false)
383 {
384 string text;
385 return text;
386 }
387 throw new OutOfMemoryException();
388 }
389
390 // Token: 0x06000378 RID: 888 RVA: 0x0000CA38 File Offset: 0x0000AC38
391 public static byte[] UncompressBuffer(byte[] compressed)
392 {
393 if (!false)
394 {
395 byte[] array;
396 return array;
397 }
398 throw new OutOfMemoryException();
399 }
400
401 // Token: 0x06000379 RID: 889 RVA: 0x0000CA64 File Offset: 0x0000AC64
402 // Note: this type is marked as 'beforefieldinit'.
403 static GZipStream()
404 {
405 Encoding encoding = Encoding.GetEncoding("iso-8859-1");
406 }
407
408 // Token: 0x0400022F RID: 559
410
411 // Token: 0x04000230 RID: 560
412 private int _headerByteCount;
413
414 // Token: 0x04000231 RID: 561
416
417 // Token: 0x04000232 RID: 562
418 private bool _disposed;
419
420 // Token: 0x04000233 RID: 563
421 private bool _firstReadDone;
422
423 // Token: 0x04000234 RID: 564
424 private string _FileName;
425
426 // Token: 0x04000235 RID: 565
427 private string _Comment;
428
429 // Token: 0x04000236 RID: 566
430 private int _Crc32;
431
432 // Token: 0x04000237 RID: 567
433 internal static readonly DateTime _unixEpoch;
434
435 // Token: 0x04000238 RID: 568
437 }
438}
class f__AnonymousType0<< Count > j__TPar
uint _register
Definition CRC32.cs:277
GZipStream(Stream stream, CompressionMode mode, CompressionLevel level, bool leaveOpen)
Definition GZipStream.cs:85
override bool CanSeek
override int Read(byte[] buffer, int offset, int count)
GZipStream(Stream stream, CompressionMode mode)
Definition GZipStream.cs:70
override bool CanRead
ZlibBaseStream _baseStream
override long Seek(long offset, SeekOrigin origin)
override void Flush()
static byte[] CompressBuffer(byte[] b)
static byte[] UncompressBuffer(byte[] compressed)
virtual FlushType FlushMode
Definition GZipStream.cs:97
override long Position
static readonly DateTime _unixEpoch
GZipStream(Stream stream, CompressionMode mode, bool leaveOpen)
Definition GZipStream.cs:80
GZipStream(Stream stream, CompressionMode mode, CompressionLevel level)
Definition GZipStream.cs:75
override void Write(byte[] buffer, int offset, int count)
static byte[] CompressString(string s)
static readonly Encoding iso8859dash1
override void Dispose(bool disposing)
static string UncompressString(byte[] compressed)
override long Length
override bool CanWrite
override void SetLength(long value)
virtual long TotalOut
virtual long TotalIn
ZlibBaseStream.StreamMode _streamMode
static string GetFileName(string path)
Definition Path.cs:142
static Encoding GetEncoding(int codepage)
Definition Encoding.cs:130