This commit is contained in:
niko
2026-04-12 16:51:38 +02:00
parent 1b6f6d81d0
commit c12fbe3fc6
17828 changed files with 2994770 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
using System;
using Cpp2IlInjected;
namespace System.IO.Compression
{
/// <summary>Specifies whether to compress or decompress the underlying stream.</summary>
// Token: 0x0200020A RID: 522
[Token(Token = "0x200020A")]
public enum CompressionMode
{
/// <summary>Decompresses the underlying stream.</summary>
// Token: 0x0400075C RID: 1884
[Token(Token = "0x400075C")]
Decompress,
/// <summary>Compresses the underlying stream.</summary>
// Token: 0x0400075D RID: 1885
[Token(Token = "0x400075D")]
Compress
}
}
+352
View File
@@ -0,0 +1,352 @@
using System;
using Cpp2IlInjected;
namespace System.IO.Compression
{
/// <summary>Provides methods and properties for compressing and decompressing streams by using the Deflate algorithm.</summary>
// Token: 0x0200020C RID: 524
[Token(Token = "0x200020C")]
public class DeflateStream : Stream
{
/// <summary>Initializes a new instance of the <see cref="T:System.IO.Compression.DeflateStream" /> class by using the specified stream and compression mode.</summary>
/// <param name="stream">The stream to compress or decompress.</param>
/// <param name="mode">One of the enumeration values that indicates whether to compress or decompress the stream.</param>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="stream" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentException">
/// <paramref name="mode" /> is not a valid <see cref="T:System.IO.Compression.CompressionMode" /> value.
/// -or-
/// <see cref="T:System.IO.Compression.CompressionMode" /> is <see cref="F:System.IO.Compression.CompressionMode.Compress" /> and <see cref="P:System.IO.Stream.CanWrite" /> is <see langword="false" />.
/// -or-
/// <see cref="T:System.IO.Compression.CompressionMode" /> is <see cref="F:System.IO.Compression.CompressionMode.Decompress" /> and <see cref="P:System.IO.Stream.CanRead" /> is <see langword="false" />.</exception>
// Token: 0x06000D6D RID: 3437 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000D6D")]
[Address(RVA = "0x2F3FA20", Offset = "0x2F3EA20", VA = "0x182F3FA20")]
public DeflateStream(Stream stream, CompressionMode mode)
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.IO.Compression.DeflateStream" /> class by using the specified stream and compression mode, and optionally leaves the stream open.</summary>
/// <param name="stream">The stream to compress or decompress.</param>
/// <param name="mode">One of the enumeration values that indicates whether to compress or decompress the stream.</param>
/// <param name="leaveOpen">
/// <see langword="true" /> to leave the stream open after disposing the <see cref="T:System.IO.Compression.DeflateStream" /> object; otherwise, <see langword="false" />.</param>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="stream" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentException">
/// <paramref name="mode" /> is not a valid <see cref="T:System.IO.Compression.CompressionMode" /> value.
/// -or-
/// <see cref="T:System.IO.Compression.CompressionMode" /> is <see cref="F:System.IO.Compression.CompressionMode.Compress" /> and <see cref="P:System.IO.Stream.CanWrite" /> is <see langword="false" />.
/// -or-
/// <see cref="T:System.IO.Compression.CompressionMode" /> is <see cref="F:System.IO.Compression.CompressionMode.Decompress" /> and <see cref="P:System.IO.Stream.CanRead" /> is <see langword="false" />.</exception>
// Token: 0x06000D6E RID: 3438 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000D6E")]
[Address(RVA = "0x2F3FCA0", Offset = "0x2F3ECA0", VA = "0x182F3FCA0")]
public DeflateStream(Stream stream, CompressionMode mode, bool leaveOpen)
{
}
// Token: 0x06000D6F RID: 3439 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000D6F")]
[Address(RVA = "0x2F3FA00", Offset = "0x2F3EA00", VA = "0x182F3FA00")]
internal DeflateStream(Stream stream, CompressionMode mode, bool leaveOpen, int windowsBits)
{
}
// Token: 0x06000D70 RID: 3440 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000D70")]
[Address(RVA = "0x2F3FA40", Offset = "0x2F3EA40", VA = "0x182F3FA40")]
internal DeflateStream(Stream compressedStream, CompressionMode mode, bool leaveOpen, bool gzip)
{
}
/// <summary>Releases the unmanaged resources used by the <see cref="T:System.IO.Compression.DeflateStream" /> and optionally releases the managed resources.</summary>
/// <param name="disposing">
/// <see langword="true" /> to release both managed and unmanaged resources; <see langword="false" /> to release only unmanaged resources.</param>
// Token: 0x06000D71 RID: 3441 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000D71")]
[Address(RVA = "0x2F3EDC0", Offset = "0x2F3DDC0", VA = "0x182F3EDC0", Slot = "16")]
protected override void Dispose(bool disposing)
{
}
// Token: 0x06000D72 RID: 3442 RVA: 0x00006DF8 File Offset: 0x00004FF8
[Token(Token = "0x6000D72")]
[Address(RVA = "0x2F3F250", Offset = "0x2F3E250", VA = "0x182F3F250")]
private int ReadInternal(byte[] array, int offset, int count)
{
return 0;
}
/// <summary>Reads a number of decompressed bytes into the specified byte array.</summary>
/// <param name="array">The array to store decompressed bytes.</param>
/// <param name="offset">The byte offset in <paramref name="array" /> at which the read bytes will be placed.</param>
/// <param name="count">The maximum number of decompressed bytes to read.</param>
/// <returns>The number of bytes that were read into the byte array.</returns>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="array" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.InvalidOperationException">The <see cref="T:System.IO.Compression.CompressionMode" /> value was <see langword="Compress" /> when the object was created.
/// -or-
/// The underlying stream does not support reading.</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">
/// <paramref name="offset" /> or <paramref name="count" /> is less than zero.
/// -or-
/// <paramref name="array" /> length minus the index starting point is less than <paramref name="count" />.</exception>
/// <exception cref="T:System.IO.InvalidDataException">The data is in an invalid format.</exception>
/// <exception cref="T:System.ObjectDisposedException">The stream is closed.</exception>
// Token: 0x06000D73 RID: 3443 RVA: 0x00006E10 File Offset: 0x00005010
[Token(Token = "0x6000D73")]
[Address(RVA = "0x2F3F340", Offset = "0x2F3E340", VA = "0x182F3F340", Slot = "27")]
public override int Read(byte[] array, int offset, int count)
{
return 0;
}
// Token: 0x06000D74 RID: 3444 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000D74")]
[Address(RVA = "0x2F3F680", Offset = "0x2F3E680", VA = "0x182F3F680")]
private void WriteInternal(byte[] array, int offset, int count)
{
}
/// <summary>Writes compressed bytes to the underlying stream from the specified byte array.</summary>
/// <param name="array">The buffer that contains the data to compress.</param>
/// <param name="offset">The byte offset in <paramref name="array" /> from which the bytes will be read.</param>
/// <param name="count">The maximum number of bytes to write.</param>
// Token: 0x06000D75 RID: 3445 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000D75")]
[Address(RVA = "0x2F3F760", Offset = "0x2F3E760", VA = "0x182F3F760", Slot = "29")]
public override void Write(byte[] array, int offset, int count)
{
}
/// <summary>The current implementation of this method has no functionality.</summary>
/// <exception cref="T:System.ObjectDisposedException">The stream is closed.</exception>
// Token: 0x06000D76 RID: 3446 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000D76")]
[Address(RVA = "0x2F3F110", Offset = "0x2F3E110", VA = "0x182F3F110", Slot = "17")]
public override void Flush()
{
}
/// <summary>Begins an asynchronous read operation. (Consider using the <see cref="M:System.IO.Stream.ReadAsync(System.Byte[],System.Int32,System.Int32)" /> method instead.)</summary>
/// <param name="array">The byte array to read the data into.</param>
/// <param name="offset">The byte offset in <paramref name="array" /> at which to begin reading data from the stream.</param>
/// <param name="count">The maximum number of bytes to read.</param>
/// <param name="asyncCallback">An optional asynchronous callback, to be called when the read operation is complete.</param>
/// <param name="asyncState">A user-provided object that distinguishes this particular asynchronous read request from other requests.</param>
/// <returns>An object that represents the asynchronous read operation, which could still be pending.</returns>
/// <exception cref="T:System.IO.IOException">The method tried to read asynchronously past the end of the stream, or a disk error occurred.</exception>
/// <exception cref="T:System.ArgumentException">One or more of the arguments is invalid.</exception>
/// <exception cref="T:System.ObjectDisposedException">Methods were called after the stream was closed.</exception>
/// <exception cref="T:System.NotSupportedException">The current <see cref="T:System.IO.Compression.DeflateStream" /> implementation does not support the read operation.</exception>
/// <exception cref="T:System.InvalidOperationException">This call cannot be completed.</exception>
// Token: 0x06000D77 RID: 3447 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000D77")]
[Address(RVA = "0x2F3E880", Offset = "0x2F3D880", VA = "0x182F3E880", Slot = "19")]
public override IAsyncResult BeginRead(byte[] array, int offset, int count, AsyncCallback asyncCallback, object asyncState)
{
return null;
}
/// <summary>Begins an asynchronous write operation. (Consider using the <see cref="M:System.IO.Stream.WriteAsync(System.Byte[],System.Int32,System.Int32)" /> method instead.)</summary>
/// <param name="array">The buffer to write data from.</param>
/// <param name="offset">The byte offset in <paramref name="buffer" /> to begin writing from.</param>
/// <param name="count">The maximum number of bytes to write.</param>
/// <param name="asyncCallback">An optional asynchronous callback, to be called when the write operation is complete.</param>
/// <param name="asyncState">A user-provided object that distinguishes this particular asynchronous write request from other requests.</param>
/// <returns>An object that represents the asynchronous write operation, which could still be pending.</returns>
/// <exception cref="T:System.IO.IOException">The method tried to write asynchronously past the end of the stream, or a disk error occurred.</exception>
/// <exception cref="T:System.ArgumentException">One or more of the arguments is invalid.</exception>
/// <exception cref="T:System.ObjectDisposedException">Methods were called after the stream was closed.</exception>
/// <exception cref="T:System.NotSupportedException">The current <see cref="T:System.IO.Compression.DeflateStream" /> implementation does not support the write operation.</exception>
/// <exception cref="T:System.InvalidOperationException">The write operation cannot be performed because the stream is closed.</exception>
// Token: 0x06000D78 RID: 3448 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000D78")]
[Address(RVA = "0x2F3EB20", Offset = "0x2F3DB20", VA = "0x182F3EB20", Slot = "22")]
public override IAsyncResult BeginWrite(byte[] array, int offset, int count, AsyncCallback asyncCallback, object asyncState)
{
return null;
}
/// <summary>Waits for the pending asynchronous read to complete. (Consider using the <see cref="M:System.IO.Stream.ReadAsync(System.Byte[],System.Int32,System.Int32)" /> method instead.)</summary>
/// <param name="asyncResult">The reference to the pending asynchronous request to finish.</param>
/// <returns>The number of bytes read from the stream, between 0 (zero) and the number of bytes you requested. <see cref="T:System.IO.Compression.DeflateStream" /> returns 0 only at the end of the stream; otherwise, it blocks until at least one byte is available.</returns>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="asyncResult" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentException">
/// <paramref name="asyncResult" /> did not originate from a <see cref="M:System.IO.Compression.DeflateStream.BeginRead(System.Byte[],System.Int32,System.Int32,System.AsyncCallback,System.Object)" /> method on the current stream.</exception>
/// <exception cref="T:System.SystemException">An exception was thrown during a call to <see cref="M:System.Threading.WaitHandle.WaitOne" />.</exception>
/// <exception cref="T:System.InvalidOperationException">The end call is invalid because asynchronous read operations for this stream are not yet complete.
/// -or-
/// The stream is <see langword="null" />.</exception>
// Token: 0x06000D79 RID: 3449 RVA: 0x00006E28 File Offset: 0x00005028
[Token(Token = "0x6000D79")]
[Address(RVA = "0x2F3EE40", Offset = "0x2F3DE40", VA = "0x182F3EE40", Slot = "20")]
public override int EndRead(IAsyncResult asyncResult)
{
return 0;
}
/// <summary>Ends an asynchronous write operation. (Consider using the <see cref="M:System.IO.Stream.WriteAsync(System.Byte[],System.Int32,System.Int32)" /> method instead.)</summary>
/// <param name="asyncResult">A reference to the outstanding asynchronous I/O request.</param>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="asyncResult" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentException">
/// <paramref name="asyncResult" /> did not originate from a <see cref="M:System.IO.Compression.DeflateStream.BeginWrite(System.Byte[],System.Int32,System.Int32,System.AsyncCallback,System.Object)" /> method on the current stream.</exception>
/// <exception cref="T:System.Exception">An exception was thrown during a call to <see cref="M:System.Threading.WaitHandle.WaitOne" />.</exception>
/// <exception cref="T:System.InvalidOperationException">The stream is <see langword="null" />.
/// -or-
/// The end write call is invalid.</exception>
// Token: 0x06000D7A RID: 3450 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000D7A")]
[Address(RVA = "0x2F3EFB0", Offset = "0x2F3DFB0", VA = "0x182F3EFB0", Slot = "23")]
public override void EndWrite(IAsyncResult asyncResult)
{
}
/// <summary>This operation is not supported and always throws a <see cref="T:System.NotSupportedException" />.</summary>
/// <param name="offset">The location in the stream.</param>
/// <param name="origin">One of the <see cref="T:System.IO.SeekOrigin" /> values.</param>
/// <returns>A long value.</returns>
/// <exception cref="T:System.NotSupportedException">This property is not supported on this stream.</exception>
// Token: 0x06000D7B RID: 3451 RVA: 0x00006E40 File Offset: 0x00005040
[Token(Token = "0x6000D7B")]
[Address(RVA = "0x2F3F5E0", Offset = "0x2F3E5E0", VA = "0x182F3F5E0", Slot = "25")]
public override long Seek(long offset, SeekOrigin origin)
{
return 0L;
}
/// <summary>This operation is not supported and always throws a <see cref="T:System.NotSupportedException" />.</summary>
/// <param name="value">The length of the stream.</param>
/// <exception cref="T:System.NotSupportedException">This property is not supported on this stream.</exception>
// Token: 0x06000D7C RID: 3452 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000D7C")]
[Address(RVA = "0x2F3F630", Offset = "0x2F3E630", VA = "0x182F3F630", Slot = "26")]
public override void SetLength(long value)
{
}
/// <summary>Gets a value indicating whether the stream supports reading while decompressing a file.</summary>
/// <returns>
/// <see langword="true" /> if the <see cref="T:System.IO.Compression.CompressionMode" /> value is <see langword="Decompress" />, and the underlying stream is opened and supports reading; otherwise, <see langword="false" />.</returns>
// Token: 0x1700027F RID: 639
// (get) Token: 0x06000D7D RID: 3453 RVA: 0x00006E58 File Offset: 0x00005058
[Token(Token = "0x1700027F")]
public override bool CanRead
{
[Token(Token = "0x6000D7D")]
[Address(RVA = "0x2F3FCC0", Offset = "0x2F3ECC0", VA = "0x182F3FCC0", Slot = "7")]
get
{
return default(bool);
}
}
/// <summary>Gets a value indicating whether the stream supports seeking.</summary>
/// <returns>
/// <see langword="false" /> in all cases.</returns>
// Token: 0x17000280 RID: 640
// (get) Token: 0x06000D7E RID: 3454 RVA: 0x00006E70 File Offset: 0x00005070
[Token(Token = "0x17000280")]
public override bool CanSeek
{
[Token(Token = "0x6000D7E")]
[Address(RVA = "0x424690", Offset = "0x423690", VA = "0x180424690", Slot = "8")]
get
{
return default(bool);
}
}
/// <summary>Gets a value indicating whether the stream supports writing.</summary>
/// <returns>
/// <see langword="true" /> if the <see cref="T:System.IO.Compression.CompressionMode" /> value is <see langword="Compress" />, and the underlying stream supports writing and is not closed; otherwise, <see langword="false" />.</returns>
// Token: 0x17000281 RID: 641
// (get) Token: 0x06000D7F RID: 3455 RVA: 0x00006E88 File Offset: 0x00005088
[Token(Token = "0x17000281")]
public override bool CanWrite
{
[Token(Token = "0x6000D7F")]
[Address(RVA = "0x2F3FD00", Offset = "0x2F3ED00", VA = "0x182F3FD00", Slot = "9")]
get
{
return default(bool);
}
}
/// <summary>This property is not supported and always throws a <see cref="T:System.NotSupportedException" />.</summary>
/// <returns>A long value.</returns>
/// <exception cref="T:System.NotSupportedException">This property is not supported on this stream.</exception>
// Token: 0x17000282 RID: 642
// (get) Token: 0x06000D80 RID: 3456 RVA: 0x00006EA0 File Offset: 0x000050A0
[Token(Token = "0x17000282")]
public override long Length
{
[Token(Token = "0x6000D80")]
[Address(RVA = "0x2F3FD40", Offset = "0x2F3ED40", VA = "0x182F3FD40", Slot = "10")]
get
{
return 0L;
}
}
/// <summary>This property is not supported and always throws a <see cref="T:System.NotSupportedException" />.</summary>
/// <returns>A long value.</returns>
/// <exception cref="T:System.NotSupportedException">This property is not supported on this stream.</exception>
// Token: 0x17000283 RID: 643
// (get) Token: 0x06000D81 RID: 3457 RVA: 0x00006EB8 File Offset: 0x000050B8
// (set) Token: 0x06000D82 RID: 3458 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x17000283")]
public override long Position
{
[Token(Token = "0x6000D81")]
[Address(RVA = "0x2F3FD90", Offset = "0x2F3ED90", VA = "0x182F3FD90", Slot = "11")]
get
{
return 0L;
}
[Token(Token = "0x6000D82")]
[Address(RVA = "0x2F3FDE0", Offset = "0x2F3EDE0", VA = "0x182F3FDE0", Slot = "12")]
set
{
}
}
// Token: 0x0400075F RID: 1887
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x400075F")]
private Stream base_stream;
// Token: 0x04000760 RID: 1888
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x4000760")]
private CompressionMode mode;
// Token: 0x04000761 RID: 1889
[FieldOffset(Offset = "0x34")]
[Token(Token = "0x4000761")]
private bool leaveOpen;
// Token: 0x04000762 RID: 1890
[FieldOffset(Offset = "0x35")]
[Token(Token = "0x4000762")]
private bool disposed;
// Token: 0x04000763 RID: 1891
[FieldOffset(Offset = "0x38")]
[Token(Token = "0x4000763")]
private DeflateStreamNative native;
// Token: 0x0200020D RID: 525
// (Invoke) Token: 0x06000D84 RID: 3460
[Token(Token = "0x200020D")]
private delegate int ReadMethod(byte[] array, int offset, int count);
// Token: 0x0200020E RID: 526
// (Invoke) Token: 0x06000D88 RID: 3464
[Token(Token = "0x200020E")]
private delegate void WriteMethod(byte[] array, int offset, int count);
}
}
@@ -0,0 +1,198 @@
using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
using Mono.Util;
namespace System.IO.Compression
{
// Token: 0x0200020F RID: 527
[Token(Token = "0x200020F")]
internal class DeflateStreamNative
{
// Token: 0x06000D8B RID: 3467 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000D8B")]
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
private DeflateStreamNative()
{
}
// Token: 0x06000D8C RID: 3468 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000D8C")]
[Address(RVA = "0x2F3DC40", Offset = "0x2F3CC40", VA = "0x182F3DC40")]
public static DeflateStreamNative Create(Stream compressedStream, CompressionMode mode, bool gzip)
{
return null;
}
// Token: 0x06000D8D RID: 3469 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000D8D")]
[Address(RVA = "0x2F3DE50", Offset = "0x2F3CE50", VA = "0x182F3DE50", Slot = "1")]
protected override void Finalize()
{
}
// Token: 0x06000D8E RID: 3470 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000D8E")]
[Address(RVA = "0x2F3DDA0", Offset = "0x2F3CDA0", VA = "0x182F3DDA0")]
public void Dispose(bool disposing)
{
}
// Token: 0x06000D8F RID: 3471 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000D8F")]
[Address(RVA = "0x2F3DF00", Offset = "0x2F3CF00", VA = "0x182F3DF00")]
public void Flush()
{
}
// Token: 0x06000D90 RID: 3472 RVA: 0x00006ED0 File Offset: 0x000050D0
[Token(Token = "0x6000D90")]
[Address(RVA = "0x2F3E090", Offset = "0x2F3D090", VA = "0x182F3E090")]
public int ReadZStream(IntPtr buffer, int length)
{
return 0;
}
// Token: 0x06000D91 RID: 3473 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000D91")]
[Address(RVA = "0x2F3E750", Offset = "0x2F3D750", VA = "0x182F3E750")]
public void WriteZStream(IntPtr buffer, int length)
{
}
// Token: 0x06000D92 RID: 3474 RVA: 0x00006EE8 File Offset: 0x000050E8
[Token(Token = "0x6000D92")]
[Address(RVA = "0x2F3E260", Offset = "0x2F3D260", VA = "0x182F3E260")]
[MonoPInvokeCallback(typeof(DeflateStreamNative.UnmanagedReadOrWrite))]
private static int UnmanagedRead(IntPtr buffer, int length, IntPtr data)
{
return 0;
}
// Token: 0x06000D93 RID: 3475 RVA: 0x00006F00 File Offset: 0x00005100
[Token(Token = "0x6000D93")]
[Address(RVA = "0x2F3E140", Offset = "0x2F3D140", VA = "0x182F3E140")]
private int UnmanagedRead(IntPtr buffer, int length)
{
return 0;
}
// Token: 0x06000D94 RID: 3476 RVA: 0x00006F18 File Offset: 0x00005118
[Token(Token = "0x6000D94")]
[Address(RVA = "0x2F3E570", Offset = "0x2F3D570", VA = "0x182F3E570")]
[MonoPInvokeCallback(typeof(DeflateStreamNative.UnmanagedReadOrWrite))]
private static int UnmanagedWrite(IntPtr buffer, int length, IntPtr data)
{
return 0;
}
// Token: 0x06000D95 RID: 3477 RVA: 0x00006F30 File Offset: 0x00005130
[Token(Token = "0x6000D95")]
[Address(RVA = "0x2F3E420", Offset = "0x2F3D420", VA = "0x182F3E420")]
private int UnmanagedWrite(IntPtr buffer, int length)
{
return 0;
}
// Token: 0x06000D96 RID: 3478 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000D96")]
[Address(RVA = "0x2F3DA90", Offset = "0x2F3CA90", VA = "0x182F3DA90")]
private static void CheckResult(int result, string where)
{
}
// Token: 0x06000D97 RID: 3479
[Token(Token = "0x6000D97")]
[Address(RVA = "0x2F3DBB0", Offset = "0x2F3CBB0", VA = "0x182F3DBB0")]
private static extern DeflateStreamNative.SafeDeflateStreamHandle CreateZStream(CompressionMode compress, bool gzip, DeflateStreamNative.UnmanagedReadOrWrite feeder, IntPtr data);
// Token: 0x06000D98 RID: 3480
[Token(Token = "0x6000D98")]
[Address(RVA = "0x2F3DBA0", Offset = "0x2F3CBA0", VA = "0x182F3DBA0")]
private static extern int CloseZStream(IntPtr stream);
// Token: 0x06000D99 RID: 3481
[Token(Token = "0x6000D99")]
[Address(RVA = "0x2F3DFA0", Offset = "0x2F3CFA0", VA = "0x182F3DFA0")]
private static extern int Flush(DeflateStreamNative.SafeDeflateStreamHandle stream);
// Token: 0x06000D9A RID: 3482
[Token(Token = "0x6000D9A")]
[Address(RVA = "0x2F3E010", Offset = "0x2F3D010", VA = "0x182F3E010")]
private static extern int ReadZStream(DeflateStreamNative.SafeDeflateStreamHandle stream, IntPtr buffer, int length);
// Token: 0x06000D9B RID: 3483
[Token(Token = "0x6000D9B")]
[Address(RVA = "0x2F3E800", Offset = "0x2F3D800", VA = "0x182F3E800")]
private static extern int WriteZStream(DeflateStreamNative.SafeDeflateStreamHandle stream, IntPtr buffer, int length);
// Token: 0x04000764 RID: 1892
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
[Token(Token = "0x4000764")]
private DeflateStreamNative.UnmanagedReadOrWrite feeder;
// Token: 0x04000765 RID: 1893
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
[Token(Token = "0x4000765")]
private Stream base_stream;
// Token: 0x04000766 RID: 1894
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
[Token(Token = "0x4000766")]
private DeflateStreamNative.SafeDeflateStreamHandle z_stream;
// Token: 0x04000767 RID: 1895
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
[Token(Token = "0x4000767")]
private GCHandle data;
// Token: 0x04000768 RID: 1896
[global::Cpp2IlInjected.FieldOffset(Offset = "0x2C")]
[Token(Token = "0x4000768")]
private bool disposed;
// Token: 0x04000769 RID: 1897
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
[Token(Token = "0x4000769")]
private byte[] io_buffer;
// Token: 0x02000210 RID: 528
// (Invoke) Token: 0x06000D9D RID: 3485
[Token(Token = "0x2000210")]
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
private delegate int UnmanagedReadOrWrite(IntPtr buffer, int length, IntPtr data);
// Token: 0x02000211 RID: 529
[Token(Token = "0x2000211")]
private sealed class SafeDeflateStreamHandle : SafeHandle
{
// Token: 0x17000284 RID: 644
// (get) Token: 0x06000DA0 RID: 3488 RVA: 0x00006F48 File Offset: 0x00005148
[Token(Token = "0x17000284")]
public override bool IsInvalid
{
[Token(Token = "0x6000DA0")]
[Address(RVA = "0xDD7370", Offset = "0xDD6370", VA = "0x180DD7370", Slot = "5")]
get
{
return default(bool);
}
}
// Token: 0x06000DA1 RID: 3489 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000DA1")]
[Address(RVA = "0xDD7330", Offset = "0xDD6330", VA = "0x180DD7330")]
private SafeDeflateStreamHandle()
{
}
// Token: 0x06000DA2 RID: 3490 RVA: 0x00006F60 File Offset: 0x00005160
[Token(Token = "0x6000DA2")]
[Address(RVA = "0xDD7310", Offset = "0xDD6310", VA = "0x180DD7310", Slot = "7")]
protected override bool ReleaseHandle()
{
return default(bool);
}
}
}
}
+332
View File
@@ -0,0 +1,332 @@
using System;
using System.Threading;
using System.Threading.Tasks;
using Cpp2IlInjected;
namespace System.IO.Compression
{
/// <summary>Provides methods and properties used to compress and decompress streams.</summary>
// Token: 0x0200020B RID: 523
[Token(Token = "0x200020B")]
public class GZipStream : Stream
{
/// <summary>Initializes a new instance of the <see cref="T:System.IO.Compression.GZipStream" /> class by using the specified stream and compression mode.</summary>
/// <param name="stream">The stream the compressed or decompressed data is written to.</param>
/// <param name="mode">One of the enumeration values that indicates whether to compress or decompress the stream.</param>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="stream" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentException">
/// <paramref name="mode" /> is not a valid <see cref="T:System.IO.Compression.CompressionMode" /> enumeration value.
/// -or-
/// <see cref="T:System.IO.Compression.CompressionMode" /> is <see cref="F:System.IO.Compression.CompressionMode.Compress" /> and <see cref="P:System.IO.Stream.CanWrite" /> is <see langword="false" />.
/// -or-
/// <see cref="T:System.IO.Compression.CompressionMode" /> is <see cref="F:System.IO.Compression.CompressionMode.Decompress" /> and <see cref="P:System.IO.Stream.CanRead" /> is <see langword="false" />.</exception>
// Token: 0x06000D55 RID: 3413 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000D55")]
[Address(RVA = "0xDD2850", Offset = "0xDD1850", VA = "0x180DD2850")]
public GZipStream(Stream stream, CompressionMode mode)
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.IO.Compression.GZipStream" /> class by using the specified stream and compression mode, and optionally leaves the stream open.</summary>
/// <param name="stream">The stream the compressed or decompressed data is written to.</param>
/// <param name="mode">One of the enumeration values that indicates whether to compress or decompress the stream.</param>
/// <param name="leaveOpen">
/// <see langword="true" /> to leave the stream open after disposing the <see cref="T:System.IO.Compression.GZipStream" /> object; otherwise, <see langword="false" />.</param>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="stream" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentException">
/// <paramref name="mode" /> is not a valid <see cref="T:System.IO.Compression.CompressionMode" /> value.
/// -or-
/// <see cref="T:System.IO.Compression.CompressionMode" /> is <see cref="F:System.IO.Compression.CompressionMode.Compress" /> and <see cref="P:System.IO.Stream.CanWrite" /> is <see langword="false" />.
/// -or-
/// <see cref="T:System.IO.Compression.CompressionMode" /> is <see cref="F:System.IO.Compression.CompressionMode.Decompress" /> and <see cref="P:System.IO.Stream.CanRead" /> is <see langword="false" />.</exception>
// Token: 0x06000D56 RID: 3414 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000D56")]
[Address(RVA = "0xDD2900", Offset = "0xDD1900", VA = "0x180DD2900")]
public GZipStream(Stream stream, CompressionMode mode, bool leaveOpen)
{
}
/// <summary>Gets a value indicating whether the stream supports reading while decompressing a file.</summary>
/// <returns>
/// <see langword="true" /> if the <see cref="T:System.IO.Compression.CompressionMode" /> value is <see langword="Decompress," /> and the underlying stream supports reading and is not closed; otherwise, <see langword="false" />.</returns>
// Token: 0x1700027A RID: 634
// (get) Token: 0x06000D57 RID: 3415 RVA: 0x00006D20 File Offset: 0x00004F20
[Token(Token = "0x1700027A")]
public override bool CanRead
{
[Token(Token = "0x6000D57")]
[Address(RVA = "0xDD29C0", Offset = "0xDD19C0", VA = "0x180DD29C0", Slot = "7")]
get
{
return default(bool);
}
}
/// <summary>Gets a value indicating whether the stream supports writing.</summary>
/// <returns>
/// <see langword="true" /> if the <see cref="T:System.IO.Compression.CompressionMode" /> value is <see langword="Compress" />, and the underlying stream supports writing and is not closed; otherwise, <see langword="false" />.</returns>
// Token: 0x1700027B RID: 635
// (get) Token: 0x06000D58 RID: 3416 RVA: 0x00006D38 File Offset: 0x00004F38
[Token(Token = "0x1700027B")]
public override bool CanWrite
{
[Token(Token = "0x6000D58")]
[Address(RVA = "0xDD2A00", Offset = "0xDD1A00", VA = "0x180DD2A00", Slot = "9")]
get
{
return default(bool);
}
}
/// <summary>Gets a value indicating whether the stream supports seeking.</summary>
/// <returns>
/// <see langword="false" /> in all cases.</returns>
// Token: 0x1700027C RID: 636
// (get) Token: 0x06000D59 RID: 3417 RVA: 0x00006D50 File Offset: 0x00004F50
[Token(Token = "0x1700027C")]
public override bool CanSeek
{
[Token(Token = "0x6000D59")]
[Address(RVA = "0xDD29E0", Offset = "0xDD19E0", VA = "0x180DD29E0", Slot = "8")]
get
{
return default(bool);
}
}
/// <summary>This property is not supported and always throws a <see cref="T:System.NotSupportedException" />.</summary>
/// <returns>A long value.</returns>
/// <exception cref="T:System.NotSupportedException">This property is not supported on this stream.</exception>
// Token: 0x1700027D RID: 637
// (get) Token: 0x06000D5A RID: 3418 RVA: 0x00006D68 File Offset: 0x00004F68
[Token(Token = "0x1700027D")]
public override long Length
{
[Token(Token = "0x6000D5A")]
[Address(RVA = "0xDD2A20", Offset = "0xDD1A20", VA = "0x180DD2A20", Slot = "10")]
get
{
return 0L;
}
}
/// <summary>This property is not supported and always throws a <see cref="T:System.NotSupportedException" />.</summary>
/// <returns>A long value.</returns>
/// <exception cref="T:System.NotSupportedException">This property is not supported on this stream.</exception>
// Token: 0x1700027E RID: 638
// (get) Token: 0x06000D5B RID: 3419 RVA: 0x00006D80 File Offset: 0x00004F80
// (set) Token: 0x06000D5C RID: 3420 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x1700027E")]
public override long Position
{
[Token(Token = "0x6000D5B")]
[Address(RVA = "0xDD2A80", Offset = "0xDD1A80", VA = "0x180DD2A80", Slot = "11")]
get
{
return 0L;
}
[Token(Token = "0x6000D5C")]
[Address(RVA = "0xDD2AE0", Offset = "0xDD1AE0", VA = "0x180DD2AE0", Slot = "12")]
set
{
}
}
/// <summary>The current implementation of this method has no functionality.</summary>
/// <exception cref="T:System.ObjectDisposedException">The stream is closed.</exception>
// Token: 0x06000D5D RID: 3421 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000D5D")]
[Address(RVA = "0xDD2610", Offset = "0xDD1610", VA = "0x180DD2610", Slot = "17")]
public override void Flush()
{
}
/// <summary>This property is not supported and always throws a <see cref="T:System.NotSupportedException" />.</summary>
/// <param name="offset">The location in the stream.</param>
/// <param name="origin">One of the <see cref="T:System.IO.SeekOrigin" /> values.</param>
/// <returns>A long value.</returns>
/// <exception cref="T:System.NotSupportedException">This property is not supported on this stream.</exception>
// Token: 0x06000D5E RID: 3422 RVA: 0x00006D98 File Offset: 0x00004F98
[Token(Token = "0x6000D5E")]
[Address(RVA = "0xDD26D0", Offset = "0xDD16D0", VA = "0x180DD26D0", Slot = "25")]
public override long Seek(long offset, SeekOrigin origin)
{
return 0L;
}
/// <summary>This property is not supported and always throws a <see cref="T:System.NotSupportedException" />.</summary>
/// <param name="value">The length of the stream.</param>
/// <exception cref="T:System.NotSupportedException">This property is not supported on this stream.</exception>
// Token: 0x06000D5F RID: 3423 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000D5F")]
[Address(RVA = "0xDD2730", Offset = "0xDD1730", VA = "0x180DD2730", Slot = "26")]
public override void SetLength(long value)
{
}
// Token: 0x06000D60 RID: 3424 RVA: 0x00006DB0 File Offset: 0x00004FB0
[Token(Token = "0x6000D60")]
[Address(RVA = "0xDD2670", Offset = "0xDD1670", VA = "0x180DD2670", Slot = "28")]
public override int ReadByte()
{
return 0;
}
/// <summary>Begins an asynchronous read operation. (Consider using the <see cref="M:System.IO.Stream.ReadAsync(System.Byte[],System.Int32,System.Int32)" /> method instead.)</summary>
/// <param name="array">The byte array to read the data into.</param>
/// <param name="offset">The byte offset in <paramref name="array" /> at which to begin reading data from the stream.</param>
/// <param name="count">The maximum number of bytes to read.</param>
/// <param name="asyncCallback">An optional asynchronous callback, to be called when the read operation is complete.</param>
/// <param name="asyncState">A user-provided object that distinguishes this particular asynchronous read request from other requests.</param>
/// <returns>An object that represents the asynchronous read operation, which could still be pending.</returns>
/// <exception cref="T:System.IO.IOException">The method tried to read asynchronously past the end of the stream, or a disk error occurred.</exception>
/// <exception cref="T:System.ArgumentException">One or more of the arguments is invalid.</exception>
/// <exception cref="T:System.ObjectDisposedException">Methods were called after the stream was closed.</exception>
/// <exception cref="T:System.NotSupportedException">The current <see cref="T:System.IO.Compression.GZipStream" /> implementation does not support the read operation.</exception>
/// <exception cref="T:System.InvalidOperationException">A read operation cannot be performed because the stream is closed.</exception>
// Token: 0x06000D61 RID: 3425 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000D61")]
[Address(RVA = "0xDD2390", Offset = "0xDD1390", VA = "0x180DD2390", Slot = "19")]
public override IAsyncResult BeginRead(byte[] array, int offset, int count, AsyncCallback asyncCallback, object asyncState)
{
return null;
}
/// <summary>Waits for the pending asynchronous read to complete. (Consider using the <see cref="M:System.IO.Stream.ReadAsync(System.Byte[],System.Int32,System.Int32)" /> method instead.)</summary>
/// <param name="asyncResult">The reference to the pending asynchronous request to finish.</param>
/// <returns>The number of bytes read from the stream, between 0 (zero) and the number of bytes you requested. <see cref="T:System.IO.Compression.GZipStream" /> returns 0 only at the end of the stream; otherwise, it blocks until at least one byte is available.</returns>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="asyncResult" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentException">
/// <paramref name="asyncResult" /> did not originate from a <see cref="M:System.IO.Compression.GZipStream.BeginRead(System.Byte[],System.Int32,System.Int32,System.AsyncCallback,System.Object)" /> method on the current stream.</exception>
/// <exception cref="T:System.InvalidOperationException">The end operation cannot be performed because the stream is closed.</exception>
// Token: 0x06000D62 RID: 3426 RVA: 0x00006DC8 File Offset: 0x00004FC8
[Token(Token = "0x6000D62")]
[Address(RVA = "0xDD25A0", Offset = "0xDD15A0", VA = "0x180DD25A0", Slot = "20")]
public override int EndRead(IAsyncResult asyncResult)
{
return 0;
}
/// <summary>Reads a number of decompressed bytes into the specified byte array.</summary>
/// <param name="array">The array used to store decompressed bytes.</param>
/// <param name="offset">The byte offset in <paramref name="array" /> at which the read bytes will be placed.</param>
/// <param name="count">The maximum number of decompressed bytes to read.</param>
/// <returns>The number of bytes that were decompressed into the byte array. If the end of the stream has been reached, zero or the number of bytes read is returned.</returns>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="array" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.InvalidOperationException">The <see cref="T:System.IO.Compression.CompressionMode" /> value was <see langword="Compress" /> when the object was created.
/// -or-
/// The underlying stream does not support reading.</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">
/// <paramref name="offset" /> or <paramref name="count" /> is less than zero.
/// -or-
/// <paramref name="array" /> length minus the index starting point is less than <paramref name="count" />.</exception>
/// <exception cref="T:System.IO.InvalidDataException">The data is in an invalid format.</exception>
/// <exception cref="T:System.ObjectDisposedException">The stream is closed.</exception>
// Token: 0x06000D63 RID: 3427 RVA: 0x00006DE0 File Offset: 0x00004FE0
[Token(Token = "0x6000D63")]
[Address(RVA = "0xDD26A0", Offset = "0xDD16A0", VA = "0x180DD26A0", Slot = "27")]
public override int Read(byte[] array, int offset, int count)
{
return 0;
}
/// <summary>Begins an asynchronous write operation. (Consider using the <see cref="M:System.IO.Stream.WriteAsync(System.Byte[],System.Int32,System.Int32)" /> method instead.)</summary>
/// <param name="array">The buffer containing data to write to the current stream.</param>
/// <param name="offset">The byte offset in <paramref name="array" /> at which to begin writing.</param>
/// <param name="count">The maximum number of bytes to write.</param>
/// <param name="asyncCallback">An optional asynchronous callback to be called when the write operation is complete.</param>
/// <param name="asyncState">A user-provided object that distinguishes this particular asynchronous write request from other requests.</param>
/// <returns>An object that represents the asynchronous write operation, which could still be pending.</returns>
/// <exception cref="T:System.InvalidOperationException">The underlying stream is <see langword="null" />.
/// -or-
/// The underlying stream is closed.</exception>
// Token: 0x06000D64 RID: 3428 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000D64")]
[Address(RVA = "0xDD2440", Offset = "0xDD1440", VA = "0x180DD2440", Slot = "22")]
public override IAsyncResult BeginWrite(byte[] array, int offset, int count, AsyncCallback asyncCallback, object asyncState)
{
return null;
}
/// <summary>Handles the end of an asynchronous write operation. (Consider using the <see cref="M:System.IO.Stream.WriteAsync(System.Byte[],System.Int32,System.Int32)" /> method instead.)</summary>
/// <param name="asyncResult">The object that represents the asynchronous call.</param>
/// <exception cref="T:System.InvalidOperationException">The underlying stream is <see langword="null" />.
/// -or-
/// The underlying stream is closed.</exception>
// Token: 0x06000D65 RID: 3429 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000D65")]
[Address(RVA = "0x9284C0", Offset = "0x9274C0", VA = "0x1809284C0", Slot = "23")]
public override void EndWrite(IAsyncResult asyncResult)
{
}
/// <summary>Writes compressed bytes to the underlying stream from the specified byte array.</summary>
/// <param name="array">The buffer that contains the data to compress.</param>
/// <param name="offset">The byte offset in <paramref name="array" /> from which the bytes will be read.</param>
/// <param name="count">The maximum number of bytes to write.</param>
/// <exception cref="T:System.ObjectDisposedException">The write operation cannot be performed because the stream is closed.</exception>
// Token: 0x06000D66 RID: 3430 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000D66")]
[Address(RVA = "0xDD2820", Offset = "0xDD1820", VA = "0x180DD2820", Slot = "29")]
public override void Write(byte[] array, int offset, int count)
{
}
/// <summary>Releases the unmanaged resources used by the <see cref="T:System.IO.Compression.GZipStream" /> and optionally releases the managed resources.</summary>
/// <param name="disposing">
/// <see langword="true" /> to release both managed and unmanaged resources; <see langword="false" /> to release only unmanaged resources.</param>
// Token: 0x06000D67 RID: 3431 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000D67")]
[Address(RVA = "0xDD2510", Offset = "0xDD1510", VA = "0x180DD2510", Slot = "16")]
protected override void Dispose(bool disposing)
{
}
// Token: 0x06000D68 RID: 3432 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000D68")]
[Address(RVA = "0xDD2640", Offset = "0xDD1640", VA = "0x180DD2640", Slot = "21")]
public override Task<int> ReadAsync(byte[] array, int offset, int count, CancellationToken cancellationToken)
{
return null;
}
// Token: 0x06000D69 RID: 3433 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000D69")]
[Address(RVA = "0xDD27F0", Offset = "0xDD17F0", VA = "0x180DD27F0", Slot = "24")]
public override Task WriteAsync(byte[] array, int offset, int count, CancellationToken cancellationToken)
{
return null;
}
// Token: 0x06000D6A RID: 3434 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000D6A")]
[Address(RVA = "0xDD25E0", Offset = "0xDD15E0", VA = "0x180DD25E0", Slot = "18")]
public override Task FlushAsync(CancellationToken cancellationToken)
{
return null;
}
// Token: 0x06000D6B RID: 3435 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000D6B")]
[Address(RVA = "0xDD24F0", Offset = "0xDD14F0", VA = "0x180DD24F0")]
private void CheckDeflateStream()
{
}
// Token: 0x06000D6C RID: 3436 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000D6C")]
[Address(RVA = "0xDD2790", Offset = "0xDD1790", VA = "0x180DD2790")]
private static void ThrowStreamClosedException()
{
}
// Token: 0x0400075E RID: 1886
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x400075E")]
private DeflateStream _deflateStream;
}
}