oh dear
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace System.IO.Compression
|
||||
{
|
||||
/// <summary>Specifies whether to compress or decompress the underlying stream.</summary>
|
||||
// Token: 0x0200020E RID: 526
|
||||
[Token(Token = "0x200020E")]
|
||||
public enum CompressionMode
|
||||
{
|
||||
/// <summary>Decompresses the underlying stream.</summary>
|
||||
// Token: 0x04000769 RID: 1897
|
||||
[Token(Token = "0x4000769")]
|
||||
Decompress,
|
||||
/// <summary>Compresses the underlying stream.</summary>
|
||||
// Token: 0x0400076A RID: 1898
|
||||
[Token(Token = "0x400076A")]
|
||||
Compress
|
||||
}
|
||||
}
|
||||
@@ -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: 0x02000210 RID: 528
|
||||
[Token(Token = "0x2000210")]
|
||||
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: 0x06000D83 RID: 3459 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000D83")]
|
||||
[Address(RVA = "0x28A4F60", Offset = "0x28A3D60", VA = "0x1828A4F60")]
|
||||
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: 0x06000D84 RID: 3460 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000D84")]
|
||||
[Address(RVA = "0x28A51E0", Offset = "0x28A3FE0", VA = "0x1828A51E0")]
|
||||
public DeflateStream(Stream stream, CompressionMode mode, bool leaveOpen)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06000D85 RID: 3461 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000D85")]
|
||||
[Address(RVA = "0x28A4F40", Offset = "0x28A3D40", VA = "0x1828A4F40")]
|
||||
internal DeflateStream(Stream stream, CompressionMode mode, bool leaveOpen, int windowsBits)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06000D86 RID: 3462 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000D86")]
|
||||
[Address(RVA = "0x28A4F80", Offset = "0x28A3D80", VA = "0x1828A4F80")]
|
||||
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: 0x06000D87 RID: 3463 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000D87")]
|
||||
[Address(RVA = "0x28A4300", Offset = "0x28A3100", VA = "0x1828A4300", Slot = "16")]
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06000D88 RID: 3464 RVA: 0x00006E10 File Offset: 0x00005010
|
||||
[Token(Token = "0x6000D88")]
|
||||
[Address(RVA = "0x28A4790", Offset = "0x28A3590", VA = "0x1828A4790")]
|
||||
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: 0x06000D89 RID: 3465 RVA: 0x00006E28 File Offset: 0x00005028
|
||||
[Token(Token = "0x6000D89")]
|
||||
[Address(RVA = "0x28A4880", Offset = "0x28A3680", VA = "0x1828A4880", Slot = "27")]
|
||||
public override int Read(byte[] array, int offset, int count)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
// Token: 0x06000D8A RID: 3466 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000D8A")]
|
||||
[Address(RVA = "0x28A4BC0", Offset = "0x28A39C0", VA = "0x1828A4BC0")]
|
||||
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: 0x06000D8B RID: 3467 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000D8B")]
|
||||
[Address(RVA = "0x28A4CA0", Offset = "0x28A3AA0", VA = "0x1828A4CA0", 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: 0x06000D8C RID: 3468 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000D8C")]
|
||||
[Address(RVA = "0x28A4650", Offset = "0x28A3450", VA = "0x1828A4650", 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: 0x06000D8D RID: 3469 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6000D8D")]
|
||||
[Address(RVA = "0x28A3DC0", Offset = "0x28A2BC0", VA = "0x1828A3DC0", 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: 0x06000D8E RID: 3470 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6000D8E")]
|
||||
[Address(RVA = "0x28A4060", Offset = "0x28A2E60", VA = "0x1828A4060", 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: 0x06000D8F RID: 3471 RVA: 0x00006E40 File Offset: 0x00005040
|
||||
[Token(Token = "0x6000D8F")]
|
||||
[Address(RVA = "0x28A4380", Offset = "0x28A3180", VA = "0x1828A4380", 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: 0x06000D90 RID: 3472 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000D90")]
|
||||
[Address(RVA = "0x28A44F0", Offset = "0x28A32F0", VA = "0x1828A44F0", 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: 0x06000D91 RID: 3473 RVA: 0x00006E58 File Offset: 0x00005058
|
||||
[Token(Token = "0x6000D91")]
|
||||
[Address(RVA = "0x28A4B20", Offset = "0x28A3920", VA = "0x1828A4B20", 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: 0x06000D92 RID: 3474 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000D92")]
|
||||
[Address(RVA = "0x28A4B70", Offset = "0x28A3970", VA = "0x1828A4B70", 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: 0x17000283 RID: 643
|
||||
// (get) Token: 0x06000D93 RID: 3475 RVA: 0x00006E70 File Offset: 0x00005070
|
||||
[Token(Token = "0x17000283")]
|
||||
public override bool CanRead
|
||||
{
|
||||
[Token(Token = "0x6000D93")]
|
||||
[Address(RVA = "0x28A5200", Offset = "0x28A4000", VA = "0x1828A5200", 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: 0x17000284 RID: 644
|
||||
// (get) Token: 0x06000D94 RID: 3476 RVA: 0x00006E88 File Offset: 0x00005088
|
||||
[Token(Token = "0x17000284")]
|
||||
public override bool CanSeek
|
||||
{
|
||||
[Token(Token = "0x6000D94")]
|
||||
[Address(RVA = "0x403930", Offset = "0x402730", VA = "0x180403930", 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: 0x17000285 RID: 645
|
||||
// (get) Token: 0x06000D95 RID: 3477 RVA: 0x00006EA0 File Offset: 0x000050A0
|
||||
[Token(Token = "0x17000285")]
|
||||
public override bool CanWrite
|
||||
{
|
||||
[Token(Token = "0x6000D95")]
|
||||
[Address(RVA = "0x28A5240", Offset = "0x28A4040", VA = "0x1828A5240", 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: 0x17000286 RID: 646
|
||||
// (get) Token: 0x06000D96 RID: 3478 RVA: 0x00006EB8 File Offset: 0x000050B8
|
||||
[Token(Token = "0x17000286")]
|
||||
public override long Length
|
||||
{
|
||||
[Token(Token = "0x6000D96")]
|
||||
[Address(RVA = "0x28A5280", Offset = "0x28A4080", VA = "0x1828A5280", 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: 0x17000287 RID: 647
|
||||
// (get) Token: 0x06000D97 RID: 3479 RVA: 0x00006ED0 File Offset: 0x000050D0
|
||||
// (set) Token: 0x06000D98 RID: 3480 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x17000287")]
|
||||
public override long Position
|
||||
{
|
||||
[Token(Token = "0x6000D97")]
|
||||
[Address(RVA = "0x28A52D0", Offset = "0x28A40D0", VA = "0x1828A52D0", Slot = "11")]
|
||||
get
|
||||
{
|
||||
return 0L;
|
||||
}
|
||||
[Token(Token = "0x6000D98")]
|
||||
[Address(RVA = "0x28A5320", Offset = "0x28A4120", VA = "0x1828A5320", Slot = "12")]
|
||||
set
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0400076C RID: 1900
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x400076C")]
|
||||
private Stream base_stream;
|
||||
|
||||
// Token: 0x0400076D RID: 1901
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x400076D")]
|
||||
private CompressionMode mode;
|
||||
|
||||
// Token: 0x0400076E RID: 1902
|
||||
[FieldOffset(Offset = "0x34")]
|
||||
[Token(Token = "0x400076E")]
|
||||
private bool leaveOpen;
|
||||
|
||||
// Token: 0x0400076F RID: 1903
|
||||
[FieldOffset(Offset = "0x35")]
|
||||
[Token(Token = "0x400076F")]
|
||||
private bool disposed;
|
||||
|
||||
// Token: 0x04000770 RID: 1904
|
||||
[FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x4000770")]
|
||||
private DeflateStreamNative native;
|
||||
|
||||
// Token: 0x02000211 RID: 529
|
||||
// (Invoke) Token: 0x06000D9A RID: 3482
|
||||
[Token(Token = "0x2000211")]
|
||||
private delegate int ReadMethod(byte[] array, int offset, int count);
|
||||
|
||||
// Token: 0x02000212 RID: 530
|
||||
// (Invoke) Token: 0x06000D9E RID: 3486
|
||||
[Token(Token = "0x2000212")]
|
||||
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: 0x02000213 RID: 531
|
||||
[Token(Token = "0x2000213")]
|
||||
internal class DeflateStreamNative
|
||||
{
|
||||
// Token: 0x06000DA1 RID: 3489 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000DA1")]
|
||||
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
|
||||
private DeflateStreamNative()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06000DA2 RID: 3490 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6000DA2")]
|
||||
[Address(RVA = "0x28A3180", Offset = "0x28A1F80", VA = "0x1828A3180")]
|
||||
public static DeflateStreamNative Create(Stream compressedStream, CompressionMode mode, bool gzip)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x06000DA3 RID: 3491 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000DA3")]
|
||||
[Address(RVA = "0x28A3390", Offset = "0x28A2190", VA = "0x1828A3390", Slot = "1")]
|
||||
protected override void Finalize()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06000DA4 RID: 3492 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000DA4")]
|
||||
[Address(RVA = "0x28A32E0", Offset = "0x28A20E0", VA = "0x1828A32E0")]
|
||||
public void Dispose(bool disposing)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06000DA5 RID: 3493 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000DA5")]
|
||||
[Address(RVA = "0x28A3440", Offset = "0x28A2240", VA = "0x1828A3440")]
|
||||
public void Flush()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06000DA6 RID: 3494 RVA: 0x00006EE8 File Offset: 0x000050E8
|
||||
[Token(Token = "0x6000DA6")]
|
||||
[Address(RVA = "0x28A35D0", Offset = "0x28A23D0", VA = "0x1828A35D0")]
|
||||
public int ReadZStream(IntPtr buffer, int length)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
// Token: 0x06000DA7 RID: 3495 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000DA7")]
|
||||
[Address(RVA = "0x28A3C90", Offset = "0x28A2A90", VA = "0x1828A3C90")]
|
||||
public void WriteZStream(IntPtr buffer, int length)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06000DA8 RID: 3496 RVA: 0x00006F00 File Offset: 0x00005100
|
||||
[Token(Token = "0x6000DA8")]
|
||||
[Address(RVA = "0x28A37A0", Offset = "0x28A25A0", VA = "0x1828A37A0")]
|
||||
[MonoPInvokeCallback(typeof(DeflateStreamNative.UnmanagedReadOrWrite))]
|
||||
private static int UnmanagedRead(IntPtr buffer, int length, IntPtr data)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
// Token: 0x06000DA9 RID: 3497 RVA: 0x00006F18 File Offset: 0x00005118
|
||||
[Token(Token = "0x6000DA9")]
|
||||
[Address(RVA = "0x28A3680", Offset = "0x28A2480", VA = "0x1828A3680")]
|
||||
private int UnmanagedRead(IntPtr buffer, int length)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
// Token: 0x06000DAA RID: 3498 RVA: 0x00006F30 File Offset: 0x00005130
|
||||
[Token(Token = "0x6000DAA")]
|
||||
[Address(RVA = "0x28A3AB0", Offset = "0x28A28B0", VA = "0x1828A3AB0")]
|
||||
[MonoPInvokeCallback(typeof(DeflateStreamNative.UnmanagedReadOrWrite))]
|
||||
private static int UnmanagedWrite(IntPtr buffer, int length, IntPtr data)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
// Token: 0x06000DAB RID: 3499 RVA: 0x00006F48 File Offset: 0x00005148
|
||||
[Token(Token = "0x6000DAB")]
|
||||
[Address(RVA = "0x28A3960", Offset = "0x28A2760", VA = "0x1828A3960")]
|
||||
private int UnmanagedWrite(IntPtr buffer, int length)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
// Token: 0x06000DAC RID: 3500 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000DAC")]
|
||||
[Address(RVA = "0x28A2FD0", Offset = "0x28A1DD0", VA = "0x1828A2FD0")]
|
||||
private static void CheckResult(int result, string where)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06000DAD RID: 3501
|
||||
[Token(Token = "0x6000DAD")]
|
||||
[Address(RVA = "0x28A30F0", Offset = "0x28A1EF0", VA = "0x1828A30F0")]
|
||||
private static extern DeflateStreamNative.SafeDeflateStreamHandle CreateZStream(CompressionMode compress, bool gzip, DeflateStreamNative.UnmanagedReadOrWrite feeder, IntPtr data);
|
||||
|
||||
// Token: 0x06000DAE RID: 3502
|
||||
[Token(Token = "0x6000DAE")]
|
||||
[Address(RVA = "0x28A30E0", Offset = "0x28A1EE0", VA = "0x1828A30E0")]
|
||||
private static extern int CloseZStream(IntPtr stream);
|
||||
|
||||
// Token: 0x06000DAF RID: 3503
|
||||
[Token(Token = "0x6000DAF")]
|
||||
[Address(RVA = "0x28A34E0", Offset = "0x28A22E0", VA = "0x1828A34E0")]
|
||||
private static extern int Flush(DeflateStreamNative.SafeDeflateStreamHandle stream);
|
||||
|
||||
// Token: 0x06000DB0 RID: 3504
|
||||
[Token(Token = "0x6000DB0")]
|
||||
[Address(RVA = "0x28A3550", Offset = "0x28A2350", VA = "0x1828A3550")]
|
||||
private static extern int ReadZStream(DeflateStreamNative.SafeDeflateStreamHandle stream, IntPtr buffer, int length);
|
||||
|
||||
// Token: 0x06000DB1 RID: 3505
|
||||
[Token(Token = "0x6000DB1")]
|
||||
[Address(RVA = "0x28A3D40", Offset = "0x28A2B40", VA = "0x1828A3D40")]
|
||||
private static extern int WriteZStream(DeflateStreamNative.SafeDeflateStreamHandle stream, IntPtr buffer, int length);
|
||||
|
||||
// Token: 0x04000771 RID: 1905
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4000771")]
|
||||
private DeflateStreamNative.UnmanagedReadOrWrite feeder;
|
||||
|
||||
// Token: 0x04000772 RID: 1906
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4000772")]
|
||||
private Stream base_stream;
|
||||
|
||||
// Token: 0x04000773 RID: 1907
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4000773")]
|
||||
private DeflateStreamNative.SafeDeflateStreamHandle z_stream;
|
||||
|
||||
// Token: 0x04000774 RID: 1908
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4000774")]
|
||||
private GCHandle data;
|
||||
|
||||
// Token: 0x04000775 RID: 1909
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x2C")]
|
||||
[Token(Token = "0x4000775")]
|
||||
private bool disposed;
|
||||
|
||||
// Token: 0x04000776 RID: 1910
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4000776")]
|
||||
private byte[] io_buffer;
|
||||
|
||||
// Token: 0x02000214 RID: 532
|
||||
// (Invoke) Token: 0x06000DB3 RID: 3507
|
||||
[Token(Token = "0x2000214")]
|
||||
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
||||
private delegate int UnmanagedReadOrWrite(IntPtr buffer, int length, IntPtr data);
|
||||
|
||||
// Token: 0x02000215 RID: 533
|
||||
[Token(Token = "0x2000215")]
|
||||
private sealed class SafeDeflateStreamHandle : SafeHandle
|
||||
{
|
||||
// Token: 0x17000288 RID: 648
|
||||
// (get) Token: 0x06000DB6 RID: 3510 RVA: 0x00006F60 File Offset: 0x00005160
|
||||
[Token(Token = "0x17000288")]
|
||||
public override bool IsInvalid
|
||||
{
|
||||
[Token(Token = "0x6000DB6")]
|
||||
[Address(RVA = "0x29E9C50", Offset = "0x29E8A50", VA = "0x1829E9C50", Slot = "5")]
|
||||
get
|
||||
{
|
||||
return default(bool);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000DB7 RID: 3511 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000DB7")]
|
||||
[Address(RVA = "0x29E9C10", Offset = "0x29E8A10", VA = "0x1829E9C10")]
|
||||
private SafeDeflateStreamHandle()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06000DB8 RID: 3512 RVA: 0x00006F78 File Offset: 0x00005178
|
||||
[Token(Token = "0x6000DB8")]
|
||||
[Address(RVA = "0x29E9BF0", Offset = "0x29E89F0", VA = "0x1829E9BF0", Slot = "7")]
|
||||
protected override bool ReleaseHandle()
|
||||
{
|
||||
return default(bool);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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: 0x0200020F RID: 527
|
||||
[Token(Token = "0x200020F")]
|
||||
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: 0x06000D6B RID: 3435 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000D6B")]
|
||||
[Address(RVA = "0x29E5130", Offset = "0x29E3F30", VA = "0x1829E5130")]
|
||||
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: 0x06000D6C RID: 3436 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000D6C")]
|
||||
[Address(RVA = "0x29E51E0", Offset = "0x29E3FE0", VA = "0x1829E51E0")]
|
||||
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: 0x1700027E RID: 638
|
||||
// (get) Token: 0x06000D6D RID: 3437 RVA: 0x00006D38 File Offset: 0x00004F38
|
||||
[Token(Token = "0x1700027E")]
|
||||
public override bool CanRead
|
||||
{
|
||||
[Token(Token = "0x6000D6D")]
|
||||
[Address(RVA = "0x29E52A0", Offset = "0x29E40A0", VA = "0x1829E52A0", 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: 0x1700027F RID: 639
|
||||
// (get) Token: 0x06000D6E RID: 3438 RVA: 0x00006D50 File Offset: 0x00004F50
|
||||
[Token(Token = "0x1700027F")]
|
||||
public override bool CanWrite
|
||||
{
|
||||
[Token(Token = "0x6000D6E")]
|
||||
[Address(RVA = "0x29E52E0", Offset = "0x29E40E0", VA = "0x1829E52E0", 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: 0x17000280 RID: 640
|
||||
// (get) Token: 0x06000D6F RID: 3439 RVA: 0x00006D68 File Offset: 0x00004F68
|
||||
[Token(Token = "0x17000280")]
|
||||
public override bool CanSeek
|
||||
{
|
||||
[Token(Token = "0x6000D6F")]
|
||||
[Address(RVA = "0x29E52C0", Offset = "0x29E40C0", VA = "0x1829E52C0", 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: 0x17000281 RID: 641
|
||||
// (get) Token: 0x06000D70 RID: 3440 RVA: 0x00006D80 File Offset: 0x00004F80
|
||||
[Token(Token = "0x17000281")]
|
||||
public override long Length
|
||||
{
|
||||
[Token(Token = "0x6000D70")]
|
||||
[Address(RVA = "0x29E5300", Offset = "0x29E4100", VA = "0x1829E5300", 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: 0x17000282 RID: 642
|
||||
// (get) Token: 0x06000D71 RID: 3441 RVA: 0x00006D98 File Offset: 0x00004F98
|
||||
// (set) Token: 0x06000D72 RID: 3442 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x17000282")]
|
||||
public override long Position
|
||||
{
|
||||
[Token(Token = "0x6000D71")]
|
||||
[Address(RVA = "0x29E5360", Offset = "0x29E4160", VA = "0x1829E5360", Slot = "11")]
|
||||
get
|
||||
{
|
||||
return 0L;
|
||||
}
|
||||
[Token(Token = "0x6000D72")]
|
||||
[Address(RVA = "0x29E53C0", Offset = "0x29E41C0", VA = "0x1829E53C0", 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: 0x06000D73 RID: 3443 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000D73")]
|
||||
[Address(RVA = "0x29E4EF0", Offset = "0x29E3CF0", VA = "0x1829E4EF0", 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: 0x06000D74 RID: 3444 RVA: 0x00006DB0 File Offset: 0x00004FB0
|
||||
[Token(Token = "0x6000D74")]
|
||||
[Address(RVA = "0x29E4FB0", Offset = "0x29E3DB0", VA = "0x1829E4FB0", 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: 0x06000D75 RID: 3445 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000D75")]
|
||||
[Address(RVA = "0x29E5010", Offset = "0x29E3E10", VA = "0x1829E5010", Slot = "26")]
|
||||
public override void SetLength(long value)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06000D76 RID: 3446 RVA: 0x00006DC8 File Offset: 0x00004FC8
|
||||
[Token(Token = "0x6000D76")]
|
||||
[Address(RVA = "0x29E4F50", Offset = "0x29E3D50", VA = "0x1829E4F50", 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: 0x06000D77 RID: 3447 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6000D77")]
|
||||
[Address(RVA = "0x29E4C70", Offset = "0x29E3A70", VA = "0x1829E4C70", 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: 0x06000D78 RID: 3448 RVA: 0x00006DE0 File Offset: 0x00004FE0
|
||||
[Token(Token = "0x6000D78")]
|
||||
[Address(RVA = "0x29E4E80", Offset = "0x29E3C80", VA = "0x1829E4E80", 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: 0x06000D79 RID: 3449 RVA: 0x00006DF8 File Offset: 0x00004FF8
|
||||
[Token(Token = "0x6000D79")]
|
||||
[Address(RVA = "0x29E4F80", Offset = "0x29E3D80", VA = "0x1829E4F80", 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: 0x06000D7A RID: 3450 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6000D7A")]
|
||||
[Address(RVA = "0x29E4D20", Offset = "0x29E3B20", VA = "0x1829E4D20", 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: 0x06000D7B RID: 3451 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000D7B")]
|
||||
[Address(RVA = "0x44D230", Offset = "0x44C030", VA = "0x18044D230", 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: 0x06000D7C RID: 3452 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000D7C")]
|
||||
[Address(RVA = "0x29E5100", Offset = "0x29E3F00", VA = "0x1829E5100", 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: 0x06000D7D RID: 3453 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000D7D")]
|
||||
[Address(RVA = "0x29E4DF0", Offset = "0x29E3BF0", VA = "0x1829E4DF0", Slot = "16")]
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06000D7E RID: 3454 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6000D7E")]
|
||||
[Address(RVA = "0x29E4F20", Offset = "0x29E3D20", VA = "0x1829E4F20", Slot = "21")]
|
||||
public override Task<int> ReadAsync(byte[] array, int offset, int count, CancellationToken cancellationToken)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x06000D7F RID: 3455 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6000D7F")]
|
||||
[Address(RVA = "0x29E50D0", Offset = "0x29E3ED0", VA = "0x1829E50D0", Slot = "24")]
|
||||
public override Task WriteAsync(byte[] array, int offset, int count, CancellationToken cancellationToken)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x06000D80 RID: 3456 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6000D80")]
|
||||
[Address(RVA = "0x29E4EC0", Offset = "0x29E3CC0", VA = "0x1829E4EC0", Slot = "18")]
|
||||
public override Task FlushAsync(CancellationToken cancellationToken)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x06000D81 RID: 3457 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000D81")]
|
||||
[Address(RVA = "0x29E4DD0", Offset = "0x29E3BD0", VA = "0x1829E4DD0")]
|
||||
private void CheckDeflateStream()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06000D82 RID: 3458 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000D82")]
|
||||
[Address(RVA = "0x29E5070", Offset = "0x29E3E70", VA = "0x1829E5070")]
|
||||
private static void ThrowStreamClosedException()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0400076B RID: 1899
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x400076B")]
|
||||
private DeflateStream _deflateStream;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,101 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Threading;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace System.IO
|
||||
{
|
||||
// Token: 0x020001FA RID: 506
|
||||
[Token(Token = "0x20001FA")]
|
||||
internal class DefaultWatcher : IFileWatcher
|
||||
{
|
||||
// Token: 0x06000D22 RID: 3362 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000D22")]
|
||||
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
|
||||
private DefaultWatcher()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06000D23 RID: 3363 RVA: 0x00006C90 File Offset: 0x00004E90
|
||||
[Token(Token = "0x6000D23")]
|
||||
[Address(RVA = "0x29E1B80", Offset = "0x29E0980", VA = "0x1829E1B80")]
|
||||
public static bool GetInstance(out IFileWatcher watcher)
|
||||
{
|
||||
return default(bool);
|
||||
}
|
||||
|
||||
// Token: 0x06000D24 RID: 3364 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000D24")]
|
||||
[Address(RVA = "0x29E2FF0", Offset = "0x29E1DF0", VA = "0x1829E2FF0", Slot = "4")]
|
||||
public void StartDispatching(FileSystemWatcher fsw)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06000D25 RID: 3365 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000D25")]
|
||||
[Address(RVA = "0x29E3670", Offset = "0x29E2470", VA = "0x1829E3670", Slot = "5")]
|
||||
public void StopDispatching(FileSystemWatcher fsw)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06000D26 RID: 3366 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000D26")]
|
||||
[Address(RVA = "0x29E28D0", Offset = "0x29E16D0", VA = "0x1829E28D0")]
|
||||
private void Monitor()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06000D27 RID: 3367 RVA: 0x00006CA8 File Offset: 0x00004EA8
|
||||
[Token(Token = "0x6000D27")]
|
||||
[Address(RVA = "0x29E3900", Offset = "0x29E2700", VA = "0x1829E3900")]
|
||||
private bool UpdateDataAndDispatch(DefaultWatcherData data, bool dispatch)
|
||||
{
|
||||
return default(bool);
|
||||
}
|
||||
|
||||
// Token: 0x06000D28 RID: 3368 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000D28")]
|
||||
[Address(RVA = "0x29E1830", Offset = "0x29E0630", VA = "0x1829E1830")]
|
||||
private static void DispatchEvents(FileSystemWatcher fsw, FileAction action, string filename)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06000D29 RID: 3369 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000D29")]
|
||||
[Address(RVA = "0x29E1910", Offset = "0x29E0710", VA = "0x1829E1910")]
|
||||
private void DoFiles(DefaultWatcherData data, string directory, bool dispatch)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06000D2A RID: 3370 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000D2A")]
|
||||
[Address(RVA = "0x29E1C80", Offset = "0x29E0A80", VA = "0x1829E1C80")]
|
||||
private void IterateAndModifyFilesData(DefaultWatcherData data, string directory, bool dispatch, string[] files)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06000D2B RID: 3371 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6000D2B")]
|
||||
[Address(RVA = "0x29E1760", Offset = "0x29E0560", VA = "0x1829E1760")]
|
||||
private static FileData CreateFileData(string directory, string filename)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x0400071E RID: 1822
|
||||
[Token(Token = "0x400071E")]
|
||||
private static DefaultWatcher instance;
|
||||
|
||||
// Token: 0x0400071F RID: 1823
|
||||
[Token(Token = "0x400071F")]
|
||||
private static Thread thread;
|
||||
|
||||
// Token: 0x04000720 RID: 1824
|
||||
[Token(Token = "0x4000720")]
|
||||
private static Hashtable watches;
|
||||
|
||||
// Token: 0x04000721 RID: 1825
|
||||
[Token(Token = "0x4000721")]
|
||||
private static string[] NoStringsArray;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,63 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace System.IO
|
||||
{
|
||||
// Token: 0x020001F8 RID: 504
|
||||
[Token(Token = "0x20001F8")]
|
||||
internal class DefaultWatcherData
|
||||
{
|
||||
// Token: 0x06000D20 RID: 3360 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000D20")]
|
||||
[Address(RVA = "0x29E1700", Offset = "0x29E0500", VA = "0x1829E1700")]
|
||||
public DefaultWatcherData()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04000710 RID: 1808
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4000710")]
|
||||
public FileSystemWatcher FSW;
|
||||
|
||||
// Token: 0x04000711 RID: 1809
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4000711")]
|
||||
public string Directory;
|
||||
|
||||
// Token: 0x04000712 RID: 1810
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4000712")]
|
||||
public string FileMask;
|
||||
|
||||
// Token: 0x04000713 RID: 1811
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4000713")]
|
||||
public bool IncludeSubdirs;
|
||||
|
||||
// Token: 0x04000714 RID: 1812
|
||||
[FieldOffset(Offset = "0x29")]
|
||||
[Token(Token = "0x4000714")]
|
||||
public bool Enabled;
|
||||
|
||||
// Token: 0x04000715 RID: 1813
|
||||
[FieldOffset(Offset = "0x2A")]
|
||||
[Token(Token = "0x4000715")]
|
||||
public bool NoWildcards;
|
||||
|
||||
// Token: 0x04000716 RID: 1814
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4000716")]
|
||||
public DateTime DisabledTime;
|
||||
|
||||
// Token: 0x04000717 RID: 1815
|
||||
[FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x4000717")]
|
||||
public object FilesLock;
|
||||
|
||||
// Token: 0x04000718 RID: 1816
|
||||
[FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x4000718")]
|
||||
public Hashtable Files;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace System.IO
|
||||
{
|
||||
/// <summary>Provides data for the <see cref="E:System.IO.FileSystemWatcher.Error" /> event.</summary>
|
||||
// Token: 0x020001FB RID: 507
|
||||
[Token(Token = "0x20001FB")]
|
||||
public class ErrorEventArgs : EventArgs
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace System.IO
|
||||
{
|
||||
/// <summary>Represents the method that will handle the <see cref="E:System.IO.FileSystemWatcher.Error" /> event of a <see cref="T:System.IO.FileSystemWatcher" /> object.</summary>
|
||||
/// <param name="sender">The source of the event.</param>
|
||||
/// <param name="e">An <see cref="T:System.IO.ErrorEventArgs" /> object that contains the event data.</param>
|
||||
// Token: 0x020001FC RID: 508
|
||||
// (Invoke) Token: 0x06000D2E RID: 3374
|
||||
[Token(Token = "0x20001FC")]
|
||||
public delegate void ErrorEventHandler(object sender, ErrorEventArgs e);
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace System.IO
|
||||
{
|
||||
// Token: 0x020001FD RID: 509
|
||||
[Token(Token = "0x20001FD")]
|
||||
internal enum FileAction
|
||||
{
|
||||
// Token: 0x04000723 RID: 1827
|
||||
[Token(Token = "0x4000723")]
|
||||
Added = 1,
|
||||
// Token: 0x04000724 RID: 1828
|
||||
[Token(Token = "0x4000724")]
|
||||
Removed,
|
||||
// Token: 0x04000725 RID: 1829
|
||||
[Token(Token = "0x4000725")]
|
||||
Modified,
|
||||
// Token: 0x04000726 RID: 1830
|
||||
[Token(Token = "0x4000726")]
|
||||
RenamedOldName,
|
||||
// Token: 0x04000727 RID: 1831
|
||||
[Token(Token = "0x4000727")]
|
||||
RenamedNewName
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace System.IO
|
||||
{
|
||||
// Token: 0x020001F9 RID: 505
|
||||
[Token(Token = "0x20001F9")]
|
||||
internal class FileData
|
||||
{
|
||||
// Token: 0x06000D21 RID: 3361 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000D21")]
|
||||
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
|
||||
public FileData()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04000719 RID: 1817
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4000719")]
|
||||
public string Directory;
|
||||
|
||||
// Token: 0x0400071A RID: 1818
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400071A")]
|
||||
public FileAttributes Attributes;
|
||||
|
||||
// Token: 0x0400071B RID: 1819
|
||||
[FieldOffset(Offset = "0x1C")]
|
||||
[Token(Token = "0x400071B")]
|
||||
public bool NotExists;
|
||||
|
||||
// Token: 0x0400071C RID: 1820
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400071C")]
|
||||
public DateTime CreationTime;
|
||||
|
||||
// Token: 0x0400071D RID: 1821
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x400071D")]
|
||||
public DateTime LastWriteTime;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace System.IO
|
||||
{
|
||||
/// <summary>Provides data for the directory events: <see cref="E:System.IO.FileSystemWatcher.Changed" />, <see cref="E:System.IO.FileSystemWatcher.Created" />, <see cref="E:System.IO.FileSystemWatcher.Deleted" />.</summary>
|
||||
// Token: 0x020001FE RID: 510
|
||||
[Token(Token = "0x20001FE")]
|
||||
public class FileSystemEventArgs : EventArgs
|
||||
{
|
||||
/// <summary>Initializes a new instance of the <see cref="T:System.IO.FileSystemEventArgs" /> class.</summary>
|
||||
/// <param name="changeType">One of the <see cref="T:System.IO.WatcherChangeTypes" /> values, which represents the kind of change detected in the file system.</param>
|
||||
/// <param name="directory">The root directory of the affected file or directory.</param>
|
||||
/// <param name="name">The name of the affected file or directory.</param>
|
||||
// Token: 0x06000D31 RID: 3377 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000D31")]
|
||||
[Address(RVA = "0x29E3A70", Offset = "0x29E2870", VA = "0x1829E3A70")]
|
||||
public FileSystemEventArgs(WatcherChangeTypes changeType, string directory, string name)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04000728 RID: 1832
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4000728")]
|
||||
private WatcherChangeTypes changeType;
|
||||
|
||||
// Token: 0x04000729 RID: 1833
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4000729")]
|
||||
private string directory;
|
||||
|
||||
// Token: 0x0400072A RID: 1834
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400072A")]
|
||||
private string name;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace System.IO
|
||||
{
|
||||
/// <summary>Represents the method that will handle the <see cref="E:System.IO.FileSystemWatcher.Changed" />, <see cref="E:System.IO.FileSystemWatcher.Created" />, or <see cref="E:System.IO.FileSystemWatcher.Deleted" /> event of a <see cref="T:System.IO.FileSystemWatcher" /> class.</summary>
|
||||
/// <param name="sender">The source of the event.</param>
|
||||
/// <param name="e">The <see cref="T:System.IO.FileSystemEventArgs" /> that contains the event data.</param>
|
||||
// Token: 0x020001FF RID: 511
|
||||
// (Invoke) Token: 0x06000D33 RID: 3379
|
||||
[Token(Token = "0x20001FF")]
|
||||
public delegate void FileSystemEventHandler(object sender, FileSystemEventArgs e);
|
||||
}
|
||||
@@ -0,0 +1,416 @@
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.Runtime.CompilerServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace System.IO
|
||||
{
|
||||
/// <summary>Listens to the file system change notifications and raises events when a directory, or file in a directory, changes.</summary>
|
||||
// Token: 0x02000200 RID: 512
|
||||
[Token(Token = "0x2000200")]
|
||||
[DefaultEvent("Changed")]
|
||||
[IODescription("")]
|
||||
public class FileSystemWatcher : Component, ISupportInitialize
|
||||
{
|
||||
/// <summary>Initializes a new instance of the <see cref="T:System.IO.FileSystemWatcher" /> class, given the specified directory and type of files to monitor.</summary>
|
||||
/// <param name="path">The directory to monitor, in standard or Universal Naming Convention (UNC) notation.</param>
|
||||
/// <param name="filter">The type of files to watch. For example, "*.txt" watches for changes to all text files.</param>
|
||||
/// <exception cref="T:System.ArgumentNullException">The <paramref name="path" /> parameter is <see langword="null" />.
|
||||
/// -or-
|
||||
/// The <paramref name="filter" /> parameter is <see langword="null" />.</exception>
|
||||
/// <exception cref="T:System.ArgumentException">The <paramref name="path" /> parameter is an empty string ("").
|
||||
/// -or-
|
||||
/// The path specified through the <paramref name="path" /> parameter does not exist.</exception>
|
||||
/// <exception cref="T:System.IO.PathTooLongException">
|
||||
/// <paramref name="path" /> is too long.</exception>
|
||||
// Token: 0x06000D36 RID: 3382 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000D36")]
|
||||
[Address(RVA = "0x29E4630", Offset = "0x29E3430", VA = "0x1829E4630")]
|
||||
public FileSystemWatcher(string path, string filter)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06000D37 RID: 3383 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000D37")]
|
||||
[Address(RVA = "0x29E3E10", Offset = "0x29E2C10", VA = "0x1829E3E10")]
|
||||
private void InitWatcher()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x17000271 RID: 625
|
||||
// (get) Token: 0x06000D38 RID: 3384 RVA: 0x00006CC0 File Offset: 0x00004EC0
|
||||
// (set) Token: 0x06000D39 RID: 3385 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x17000271")]
|
||||
internal bool Waiting
|
||||
{
|
||||
[Token(Token = "0x6000D38")]
|
||||
[Address(RVA = "0x536440", Offset = "0x535240", VA = "0x180536440")]
|
||||
get
|
||||
{
|
||||
return default(bool);
|
||||
}
|
||||
[Token(Token = "0x6000D39")]
|
||||
[Address(RVA = "0x536B70", Offset = "0x535970", VA = "0x180536B70")]
|
||||
set
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000272 RID: 626
|
||||
// (get) Token: 0x06000D3A RID: 3386 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x17000272")]
|
||||
internal string MangledFilter
|
||||
{
|
||||
[Token(Token = "0x6000D3A")]
|
||||
[Address(RVA = "0x29E4920", Offset = "0x29E3720", VA = "0x1829E4920")]
|
||||
get
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000273 RID: 627
|
||||
// (get) Token: 0x06000D3B RID: 3387 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x17000273")]
|
||||
internal SearchPattern2 Pattern
|
||||
{
|
||||
[Token(Token = "0x6000D3B")]
|
||||
[Address(RVA = "0x29E4980", Offset = "0x29E3780", VA = "0x1829E4980")]
|
||||
get
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000274 RID: 628
|
||||
// (get) Token: 0x06000D3C RID: 3388 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x17000274")]
|
||||
internal string FullPath
|
||||
{
|
||||
[Token(Token = "0x6000D3C")]
|
||||
[Address(RVA = "0x29E4880", Offset = "0x29E3680", VA = "0x1829E4880")]
|
||||
get
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Gets or sets a value indicating whether the component is enabled.</summary>
|
||||
/// <returns>
|
||||
/// <see langword="true" /> if the component is enabled; otherwise, <see langword="false" />. The default is <see langword="false" />. If you are using the component on a designer in Visual Studio 2005, the default is <see langword="true" />.</returns>
|
||||
/// <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.IO.FileSystemWatcher" /> object has been disposed.</exception>
|
||||
/// <exception cref="T:System.PlatformNotSupportedException">The current operating system is not Microsoft Windows NT or later.</exception>
|
||||
/// <exception cref="T:System.IO.FileNotFoundException">The directory specified in <see cref="P:System.IO.FileSystemWatcher.Path" /> could not be found.</exception>
|
||||
/// <exception cref="T:System.ArgumentException">
|
||||
/// <see cref="P:System.IO.FileSystemWatcher.Path" /> has not been set or is invalid.</exception>
|
||||
// Token: 0x17000275 RID: 629
|
||||
// (set) Token: 0x06000D3D RID: 3389 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x17000275")]
|
||||
[DefaultValue(false)]
|
||||
[IODescription("Flag to indicate if this instance is active")]
|
||||
public bool EnableRaisingEvents
|
||||
{
|
||||
[Token(Token = "0x6000D3D")]
|
||||
[Address(RVA = "0x29E4AF0", Offset = "0x29E38F0", VA = "0x1829E4AF0")]
|
||||
set
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Gets or sets a value indicating whether subdirectories within the specified path should be monitored.</summary>
|
||||
/// <returns>
|
||||
/// <see langword="true" /> if you want to monitor subdirectories; otherwise, <see langword="false" />. The default is <see langword="false" />.</returns>
|
||||
// Token: 0x17000276 RID: 630
|
||||
// (get) Token: 0x06000D3E RID: 3390 RVA: 0x00006CD8 File Offset: 0x00004ED8
|
||||
[Token(Token = "0x17000276")]
|
||||
[DefaultValue(false)]
|
||||
[IODescription("Flag to indicate we want to watch subdirectories")]
|
||||
public bool IncludeSubdirectories
|
||||
{
|
||||
[Token(Token = "0x6000D3E")]
|
||||
[Address(RVA = "0x43A970", Offset = "0x439770", VA = "0x18043A970")]
|
||||
get
|
||||
{
|
||||
return default(bool);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Gets or sets the type of changes to watch for.</summary>
|
||||
/// <returns>One of the <see cref="T:System.IO.NotifyFilters" /> values. The default is the bitwise OR combination of <see langword="LastWrite" />, <see langword="FileName" />, and <see langword="DirectoryName" />.</returns>
|
||||
/// <exception cref="T:System.ArgumentException">The value is not a valid bitwise OR combination of the <see cref="T:System.IO.NotifyFilters" /> values.</exception>
|
||||
/// <exception cref="T:System.ComponentModel.InvalidEnumArgumentException">The value that is being set is not valid.</exception>
|
||||
// Token: 0x17000277 RID: 631
|
||||
// (set) Token: 0x06000D3F RID: 3391 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x17000277")]
|
||||
[Attribute(Name = "DefaultValueAttribute", RVA = "0xAAD00", Offset = "0xAA100")]
|
||||
[IODescription("Flag to indicate which change event we want to monitor")]
|
||||
public NotifyFilters NotifyFilter
|
||||
{
|
||||
[Token(Token = "0x6000D3F")]
|
||||
[Address(RVA = "0x29E4B10", Offset = "0x29E3910", VA = "0x1829E4B10")]
|
||||
set
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Gets or sets an <see cref="T:System.ComponentModel.ISite" /> for the <see cref="T:System.IO.FileSystemWatcher" />.</summary>
|
||||
/// <returns>An <see cref="T:System.ComponentModel.ISite" /> for the <see cref="T:System.IO.FileSystemWatcher" />.</returns>
|
||||
// Token: 0x17000278 RID: 632
|
||||
// (get) Token: 0x06000D40 RID: 3392 RVA: 0x00002050 File Offset: 0x00000250
|
||||
// (set) Token: 0x06000D41 RID: 3393 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x17000278")]
|
||||
[Browsable(false)]
|
||||
public override ISite Site
|
||||
{
|
||||
[Token(Token = "0x6000D40")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40", Slot = "12")]
|
||||
get
|
||||
{
|
||||
return null;
|
||||
}
|
||||
[Token(Token = "0x6000D41")]
|
||||
[Address(RVA = "0x3F7210", Offset = "0x3F6010", VA = "0x1803F7210", Slot = "13")]
|
||||
set
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Begins the initialization of a <see cref="T:System.IO.FileSystemWatcher" /> used on a form or used by another component. The initialization occurs at run time.</summary>
|
||||
// Token: 0x06000D42 RID: 3394 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000D42")]
|
||||
[Address(RVA = "0x402080", Offset = "0x400E80", VA = "0x180402080", Slot = "16")]
|
||||
public void BeginInit()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Releases the unmanaged resources used by the <see cref="T:System.IO.FileSystemWatcher" /> 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: 0x06000D43 RID: 3395 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000D43")]
|
||||
[Address(RVA = "0x29E3D50", Offset = "0x29E2B50", VA = "0x1829E3D50", Slot = "14")]
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06000D44 RID: 3396 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000D44")]
|
||||
[Address(RVA = "0x29E3D90", Offset = "0x29E2B90", VA = "0x1829E3D90", Slot = "1")]
|
||||
protected override void Finalize()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Ends the initialization of a <see cref="T:System.IO.FileSystemWatcher" /> used on a form or used by another component. The initialization occurs at run time.</summary>
|
||||
// Token: 0x06000D45 RID: 3397 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000D45")]
|
||||
[Address(RVA = "0x402080", Offset = "0x400E80", VA = "0x180402080", Slot = "17")]
|
||||
public void EndInit()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06000D46 RID: 3398 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000D46")]
|
||||
[Address(RVA = "0x29E41A0", Offset = "0x29E2FA0", VA = "0x1829E41A0")]
|
||||
private void RaiseEvent(Delegate ev, EventArgs arg, FileSystemWatcher.EventType evtype)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Raises the <see cref="E:System.IO.FileSystemWatcher.Changed" /> event.</summary>
|
||||
/// <param name="e">A <see cref="T:System.IO.FileSystemEventArgs" /> that contains the event data.</param>
|
||||
// Token: 0x06000D47 RID: 3399 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000D47")]
|
||||
[Address(RVA = "0x29E40E0", Offset = "0x29E2EE0", VA = "0x1829E40E0")]
|
||||
protected void OnChanged(FileSystemEventArgs e)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Raises the <see cref="E:System.IO.FileSystemWatcher.Created" /> event.</summary>
|
||||
/// <param name="e">A <see cref="T:System.IO.FileSystemEventArgs" /> that contains the event data.</param>
|
||||
// Token: 0x06000D48 RID: 3400 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000D48")]
|
||||
[Address(RVA = "0x29E4110", Offset = "0x29E2F10", VA = "0x1829E4110")]
|
||||
protected void OnCreated(FileSystemEventArgs e)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Raises the <see cref="E:System.IO.FileSystemWatcher.Deleted" /> event.</summary>
|
||||
/// <param name="e">A <see cref="T:System.IO.FileSystemEventArgs" /> that contains the event data.</param>
|
||||
// Token: 0x06000D49 RID: 3401 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000D49")]
|
||||
[Address(RVA = "0x29E4140", Offset = "0x29E2F40", VA = "0x1829E4140")]
|
||||
protected void OnDeleted(FileSystemEventArgs e)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Raises the <see cref="E:System.IO.FileSystemWatcher.Renamed" /> event.</summary>
|
||||
/// <param name="e">A <see cref="T:System.IO.RenamedEventArgs" /> that contains the event data.</param>
|
||||
// Token: 0x06000D4A RID: 3402 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000D4A")]
|
||||
[Address(RVA = "0x29E4170", Offset = "0x29E2F70", VA = "0x1829E4170")]
|
||||
protected void OnRenamed(RenamedEventArgs e)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06000D4B RID: 3403 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000D4B")]
|
||||
[Address(RVA = "0x29E3B00", Offset = "0x29E2900", VA = "0x1829E3B00")]
|
||||
internal void DispatchEvents(FileAction act, string filename, ref RenamedEventArgs renamed)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06000D4C RID: 3404 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000D4C")]
|
||||
[Address(RVA = "0x29E44D0", Offset = "0x29E32D0", VA = "0x1829E44D0")]
|
||||
private void Start()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06000D4D RID: 3405 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000D4D")]
|
||||
[Address(RVA = "0x29E4550", Offset = "0x29E3350", VA = "0x1829E4550")]
|
||||
private void Stop()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Occurs when a file or directory in the specified <see cref="P:System.IO.FileSystemWatcher.Path" /> is changed.</summary>
|
||||
// Token: 0x14000010 RID: 16
|
||||
// (add) Token: 0x06000D4E RID: 3406 RVA: 0x00002053 File Offset: 0x00000253
|
||||
// (remove) Token: 0x06000D4F RID: 3407 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x14000010")]
|
||||
public event FileSystemEventHandler Changed
|
||||
{
|
||||
[Token(Token = "0x6000D4E")]
|
||||
[Address(RVA = "0x29E47E0", Offset = "0x29E35E0", VA = "0x1829E47E0")]
|
||||
[CompilerGenerated]
|
||||
add
|
||||
{
|
||||
}
|
||||
[Token(Token = "0x6000D4F")]
|
||||
[Address(RVA = "0x29E4A50", Offset = "0x29E3850", VA = "0x1829E4A50")]
|
||||
[CompilerGenerated]
|
||||
remove
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000D50 RID: 3408 RVA: 0x00006CF0 File Offset: 0x00004EF0
|
||||
[Token(Token = "0x6000D50")]
|
||||
[Address(RVA = "0x1E94E50", Offset = "0x1E93C50", VA = "0x181E94E50")]
|
||||
private static int InternalSupportsFSW()
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
// Token: 0x0400072B RID: 1835
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x400072B")]
|
||||
private bool enableRaisingEvents;
|
||||
|
||||
// Token: 0x0400072C RID: 1836
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x400072C")]
|
||||
private string filter;
|
||||
|
||||
// Token: 0x0400072D RID: 1837
|
||||
[FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x400072D")]
|
||||
private bool includeSubdirectories;
|
||||
|
||||
// Token: 0x0400072E RID: 1838
|
||||
[FieldOffset(Offset = "0x3C")]
|
||||
[Token(Token = "0x400072E")]
|
||||
private int internalBufferSize;
|
||||
|
||||
// Token: 0x0400072F RID: 1839
|
||||
[FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x400072F")]
|
||||
private NotifyFilters notifyFilter;
|
||||
|
||||
// Token: 0x04000730 RID: 1840
|
||||
[FieldOffset(Offset = "0x48")]
|
||||
[Token(Token = "0x4000730")]
|
||||
private string path;
|
||||
|
||||
// Token: 0x04000731 RID: 1841
|
||||
[FieldOffset(Offset = "0x50")]
|
||||
[Token(Token = "0x4000731")]
|
||||
private string fullpath;
|
||||
|
||||
// Token: 0x04000732 RID: 1842
|
||||
[FieldOffset(Offset = "0x58")]
|
||||
[Token(Token = "0x4000732")]
|
||||
private ISynchronizeInvoke synchronizingObject;
|
||||
|
||||
// Token: 0x04000733 RID: 1843
|
||||
[FieldOffset(Offset = "0x60")]
|
||||
[Token(Token = "0x4000733")]
|
||||
private WaitForChangedResult lastData;
|
||||
|
||||
// Token: 0x04000734 RID: 1844
|
||||
[FieldOffset(Offset = "0x80")]
|
||||
[Token(Token = "0x4000734")]
|
||||
private bool waiting;
|
||||
|
||||
// Token: 0x04000735 RID: 1845
|
||||
[FieldOffset(Offset = "0x88")]
|
||||
[Token(Token = "0x4000735")]
|
||||
private SearchPattern2 pattern;
|
||||
|
||||
// Token: 0x04000736 RID: 1846
|
||||
[FieldOffset(Offset = "0x90")]
|
||||
[Token(Token = "0x4000736")]
|
||||
private bool disposed;
|
||||
|
||||
// Token: 0x04000737 RID: 1847
|
||||
[FieldOffset(Offset = "0x98")]
|
||||
[Token(Token = "0x4000737")]
|
||||
private string mangledFilter;
|
||||
|
||||
// Token: 0x04000738 RID: 1848
|
||||
[Token(Token = "0x4000738")]
|
||||
private static IFileWatcher watcher;
|
||||
|
||||
// Token: 0x04000739 RID: 1849
|
||||
[Token(Token = "0x4000739")]
|
||||
private static object lockobj;
|
||||
|
||||
// Token: 0x0400073B RID: 1851
|
||||
[FieldOffset(Offset = "0xA8")]
|
||||
[Token(Token = "0x400073B")]
|
||||
[CompilerGenerated]
|
||||
private FileSystemEventHandler Created;
|
||||
|
||||
// Token: 0x0400073C RID: 1852
|
||||
[FieldOffset(Offset = "0xB0")]
|
||||
[Token(Token = "0x400073C")]
|
||||
[CompilerGenerated]
|
||||
private FileSystemEventHandler Deleted;
|
||||
|
||||
// Token: 0x0400073D RID: 1853
|
||||
[FieldOffset(Offset = "0xB8")]
|
||||
[Token(Token = "0x400073D")]
|
||||
[CompilerGenerated]
|
||||
private ErrorEventHandler Error;
|
||||
|
||||
// Token: 0x0400073E RID: 1854
|
||||
[FieldOffset(Offset = "0xC0")]
|
||||
[Token(Token = "0x400073E")]
|
||||
[CompilerGenerated]
|
||||
private RenamedEventHandler Renamed;
|
||||
|
||||
// Token: 0x02000201 RID: 513
|
||||
[Token(Token = "0x2000201")]
|
||||
private enum EventType
|
||||
{
|
||||
// Token: 0x04000740 RID: 1856
|
||||
[Token(Token = "0x4000740")]
|
||||
FileSystemEvent,
|
||||
// Token: 0x04000741 RID: 1857
|
||||
[Token(Token = "0x4000741")]
|
||||
ErrorEvent,
|
||||
// Token: 0x04000742 RID: 1858
|
||||
[Token(Token = "0x4000742")]
|
||||
RenameEvent
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace System.IO
|
||||
{
|
||||
// Token: 0x02000202 RID: 514
|
||||
[Token(Token = "0x2000202")]
|
||||
internal interface IFileWatcher
|
||||
{
|
||||
// Token: 0x06000D52 RID: 3410
|
||||
[Token(Token = "0x6000D52")]
|
||||
[Address(Slot = "0")]
|
||||
void StartDispatching(FileSystemWatcher fsw);
|
||||
|
||||
// Token: 0x06000D53 RID: 3411
|
||||
[Token(Token = "0x6000D53")]
|
||||
[Address(Slot = "1")]
|
||||
void StopDispatching(FileSystemWatcher fsw);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace System.IO
|
||||
{
|
||||
/// <summary>Sets the description visual designers can display when referencing an event, extender, or property.</summary>
|
||||
// Token: 0x02000203 RID: 515
|
||||
[Token(Token = "0x2000203")]
|
||||
[AttributeUsage(AttributeTargets.All)]
|
||||
public class IODescriptionAttribute : DescriptionAttribute
|
||||
{
|
||||
/// <summary>Initializes a new instance of the <see cref="T:System.IO.IODescriptionAttribute" /> class.</summary>
|
||||
/// <param name="description">The description to use.</param>
|
||||
// Token: 0x06000D54 RID: 3412 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000D54")]
|
||||
[Address(RVA = "0x29E5C40", Offset = "0x29E4A40", VA = "0x1829E5C40")]
|
||||
public IODescriptionAttribute(string description)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Gets the description.</summary>
|
||||
/// <returns>The description for the event, extender, or property.</returns>
|
||||
// Token: 0x17000279 RID: 633
|
||||
// (get) Token: 0x06000D55 RID: 3413 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x17000279")]
|
||||
public override string Description
|
||||
{
|
||||
[Token(Token = "0x6000D55")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
using System;
|
||||
using System.Runtime.Serialization;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace System.IO
|
||||
{
|
||||
/// <summary>The exception thrown when the internal buffer overflows.</summary>
|
||||
// Token: 0x02000204 RID: 516
|
||||
[Token(Token = "0x2000204")]
|
||||
[Serializable]
|
||||
public class InternalBufferOverflowException : SystemException
|
||||
{
|
||||
/// <summary>Initializes a new default instance of the <see cref="T:System.IO.InternalBufferOverflowException" /> class.</summary>
|
||||
// Token: 0x06000D56 RID: 3414 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000D56")]
|
||||
[Address(RVA = "0x29E7A90", Offset = "0x29E6890", VA = "0x1829E7A90")]
|
||||
public InternalBufferOverflowException()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Initializes a new instance of the <see cref="T:System.IO.InternalBufferOverflowException" /> class with the error message to be displayed specified.</summary>
|
||||
/// <param name="message">The message to be given for the exception.</param>
|
||||
// Token: 0x06000D57 RID: 3415 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000D57")]
|
||||
[Address(RVA = "0x25C2B70", Offset = "0x25C1970", VA = "0x1825C2B70")]
|
||||
public InternalBufferOverflowException(string message)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Initializes a new, empty instance of the <see cref="T:System.IO.InternalBufferOverflowException" /> class that is serializable using the specified <see cref="T:System.Runtime.Serialization.SerializationInfo" /> and <see cref="T:System.Runtime.Serialization.StreamingContext" /> objects.</summary>
|
||||
/// <param name="info">The information required to serialize the T:System.IO.InternalBufferOverflowException object.</param>
|
||||
/// <param name="context">The source and destination of the serialized stream associated with the T:System.IO.InternalBufferOverflowException object.</param>
|
||||
// Token: 0x06000D58 RID: 3416 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000D58")]
|
||||
[Address(RVA = "0x3F60E0", Offset = "0x3F4EE0", VA = "0x1803F60E0")]
|
||||
protected InternalBufferOverflowException(SerializationInfo info, StreamingContext context)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace System.IO
|
||||
{
|
||||
/// <summary>Specifies changes to watch for in a file or folder.</summary>
|
||||
// Token: 0x02000205 RID: 517
|
||||
[Token(Token = "0x2000205")]
|
||||
[Flags]
|
||||
public enum NotifyFilters
|
||||
{
|
||||
/// <summary>The attributes of the file or folder.</summary>
|
||||
// Token: 0x04000744 RID: 1860
|
||||
[Token(Token = "0x4000744")]
|
||||
Attributes = 4,
|
||||
/// <summary>The time the file or folder was created.</summary>
|
||||
// Token: 0x04000745 RID: 1861
|
||||
[Token(Token = "0x4000745")]
|
||||
CreationTime = 64,
|
||||
/// <summary>The name of the directory.</summary>
|
||||
// Token: 0x04000746 RID: 1862
|
||||
[Token(Token = "0x4000746")]
|
||||
DirectoryName = 2,
|
||||
/// <summary>The name of the file.</summary>
|
||||
// Token: 0x04000747 RID: 1863
|
||||
[Token(Token = "0x4000747")]
|
||||
FileName = 1,
|
||||
/// <summary>The date the file or folder was last opened.</summary>
|
||||
// Token: 0x04000748 RID: 1864
|
||||
[Token(Token = "0x4000748")]
|
||||
LastAccess = 32,
|
||||
/// <summary>The date the file or folder last had anything written to it.</summary>
|
||||
// Token: 0x04000749 RID: 1865
|
||||
[Token(Token = "0x4000749")]
|
||||
LastWrite = 16,
|
||||
/// <summary>The security settings of the file or folder.</summary>
|
||||
// Token: 0x0400074A RID: 1866
|
||||
[Token(Token = "0x400074A")]
|
||||
Security = 256,
|
||||
/// <summary>The size of the file or folder.</summary>
|
||||
// Token: 0x0400074B RID: 1867
|
||||
[Token(Token = "0x400074B")]
|
||||
Size = 8
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace System.IO
|
||||
{
|
||||
// Token: 0x02000206 RID: 518
|
||||
[Token(Token = "0x2000206")]
|
||||
internal class NullFileWatcher : IFileWatcher
|
||||
{
|
||||
// Token: 0x06000D59 RID: 3417 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000D59")]
|
||||
[Address(RVA = "0x402080", Offset = "0x400E80", VA = "0x180402080", Slot = "4")]
|
||||
public void StartDispatching(FileSystemWatcher fsw)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06000D5A RID: 3418 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000D5A")]
|
||||
[Address(RVA = "0x402080", Offset = "0x400E80", VA = "0x180402080", Slot = "5")]
|
||||
public void StopDispatching(FileSystemWatcher fsw)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06000D5B RID: 3419 RVA: 0x00006D08 File Offset: 0x00004F08
|
||||
[Token(Token = "0x6000D5B")]
|
||||
[Address(RVA = "0x29E8E90", Offset = "0x29E7C90", VA = "0x1829E8E90")]
|
||||
public static bool GetInstance(out IFileWatcher watcher)
|
||||
{
|
||||
return default(bool);
|
||||
}
|
||||
|
||||
// Token: 0x06000D5C RID: 3420 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000D5C")]
|
||||
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
|
||||
public NullFileWatcher()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0400074C RID: 1868
|
||||
[Token(Token = "0x400074C")]
|
||||
private static IFileWatcher instance;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace System.IO
|
||||
{
|
||||
/// <summary>Provides data for the <see cref="E:System.IO.FileSystemWatcher.Renamed" /> event.</summary>
|
||||
// Token: 0x02000207 RID: 519
|
||||
[Token(Token = "0x2000207")]
|
||||
public class RenamedEventArgs : FileSystemEventArgs
|
||||
{
|
||||
/// <summary>Initializes a new instance of the <see cref="T:System.IO.RenamedEventArgs" /> class.</summary>
|
||||
/// <param name="changeType">One of the <see cref="T:System.IO.WatcherChangeTypes" /> values.</param>
|
||||
/// <param name="directory">The name of the affected file or directory.</param>
|
||||
/// <param name="name">The name of the affected file or directory.</param>
|
||||
/// <param name="oldName">The old name of the affected file or directory.</param>
|
||||
// Token: 0x06000D5D RID: 3421 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000D5D")]
|
||||
[Address(RVA = "0x29E9750", Offset = "0x29E8550", VA = "0x1829E9750")]
|
||||
public RenamedEventArgs(WatcherChangeTypes changeType, string directory, string name, string oldName)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0400074D RID: 1869
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x400074D")]
|
||||
private string oldName;
|
||||
|
||||
// Token: 0x0400074E RID: 1870
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x400074E")]
|
||||
private string oldFullPath;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace System.IO
|
||||
{
|
||||
/// <summary>Represents the method that will handle the <see cref="E:System.IO.FileSystemWatcher.Renamed" /> event of a <see cref="T:System.IO.FileSystemWatcher" /> class.</summary>
|
||||
/// <param name="sender">The source of the event.</param>
|
||||
/// <param name="e">The <see cref="T:System.IO.RenamedEventArgs" /> that contains the event data.</param>
|
||||
// Token: 0x02000208 RID: 520
|
||||
// (Invoke) Token: 0x06000D5F RID: 3423
|
||||
[Token(Token = "0x2000208")]
|
||||
public delegate void RenamedEventHandler(object sender, RenamedEventArgs e);
|
||||
}
|
||||
@@ -0,0 +1,120 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace System.IO
|
||||
{
|
||||
// Token: 0x02000209 RID: 521
|
||||
[Token(Token = "0x2000209")]
|
||||
internal class SearchPattern2
|
||||
{
|
||||
// Token: 0x06000D62 RID: 3426 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000D62")]
|
||||
[Address(RVA = "0x29EA0B0", Offset = "0x29E8EB0", VA = "0x1829EA0B0")]
|
||||
public SearchPattern2(string pattern)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06000D63 RID: 3427 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000D63")]
|
||||
[Address(RVA = "0x29EA0F0", Offset = "0x29E8EF0", VA = "0x1829EA0F0")]
|
||||
public SearchPattern2(string pattern, bool ignore)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x1700027A RID: 634
|
||||
// (get) Token: 0x06000D64 RID: 3428 RVA: 0x00006D20 File Offset: 0x00004F20
|
||||
[Token(Token = "0x1700027A")]
|
||||
public bool HasWildcard
|
||||
{
|
||||
[Token(Token = "0x6000D64")]
|
||||
[Address(RVA = "0x50FC80", Offset = "0x50EA80", VA = "0x18050FC80")]
|
||||
get
|
||||
{
|
||||
return default(bool);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06000D65 RID: 3429 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000D65")]
|
||||
[Address(RVA = "0x29E9C90", Offset = "0x29E8A90", VA = "0x1829E9C90")]
|
||||
private void Compile(string pattern)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0400074F RID: 1871
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400074F")]
|
||||
private SearchPattern2.Op ops;
|
||||
|
||||
// Token: 0x04000750 RID: 1872
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4000750")]
|
||||
private bool ignore;
|
||||
|
||||
// Token: 0x04000751 RID: 1873
|
||||
[FieldOffset(Offset = "0x19")]
|
||||
[Token(Token = "0x4000751")]
|
||||
private bool hasWildcard;
|
||||
|
||||
// Token: 0x04000752 RID: 1874
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4000752")]
|
||||
private string pattern;
|
||||
|
||||
// Token: 0x04000753 RID: 1875
|
||||
[Token(Token = "0x4000753")]
|
||||
internal static readonly char[] WildcardChars;
|
||||
|
||||
// Token: 0x04000754 RID: 1876
|
||||
[Token(Token = "0x4000754")]
|
||||
internal static readonly char[] InvalidChars;
|
||||
|
||||
// Token: 0x0200020A RID: 522
|
||||
[Token(Token = "0x200020A")]
|
||||
private class Op
|
||||
{
|
||||
// Token: 0x06000D67 RID: 3431 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6000D67")]
|
||||
[Address(RVA = "0x29E8F10", Offset = "0x29E7D10", VA = "0x1829E8F10")]
|
||||
public Op(SearchPattern2.OpCode code)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04000755 RID: 1877
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4000755")]
|
||||
public SearchPattern2.OpCode Code;
|
||||
|
||||
// Token: 0x04000756 RID: 1878
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4000756")]
|
||||
public string Argument;
|
||||
|
||||
// Token: 0x04000757 RID: 1879
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4000757")]
|
||||
public SearchPattern2.Op Next;
|
||||
}
|
||||
|
||||
// Token: 0x0200020B RID: 523
|
||||
[Token(Token = "0x200020B")]
|
||||
private enum OpCode
|
||||
{
|
||||
// Token: 0x04000759 RID: 1881
|
||||
[Token(Token = "0x4000759")]
|
||||
ExactString,
|
||||
// Token: 0x0400075A RID: 1882
|
||||
[Token(Token = "0x400075A")]
|
||||
AnyChar,
|
||||
// Token: 0x0400075B RID: 1883
|
||||
[Token(Token = "0x400075B")]
|
||||
AnyString,
|
||||
// Token: 0x0400075C RID: 1884
|
||||
[Token(Token = "0x400075C")]
|
||||
End,
|
||||
// Token: 0x0400075D RID: 1885
|
||||
[Token(Token = "0x400075D")]
|
||||
True
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,73 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace System.IO
|
||||
{
|
||||
/// <summary>Contains information on the change that occurred.</summary>
|
||||
// Token: 0x0200020C RID: 524
|
||||
[Token(Token = "0x200020C")]
|
||||
public struct WaitForChangedResult
|
||||
{
|
||||
/// <summary>Gets or sets the type of change that occurred.</summary>
|
||||
/// <returns>One of the <see cref="T:System.IO.WatcherChangeTypes" /> values.</returns>
|
||||
// Token: 0x1700027B RID: 635
|
||||
// (set) Token: 0x06000D68 RID: 3432 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x1700027B")]
|
||||
public WatcherChangeTypes ChangeType
|
||||
{
|
||||
[Token(Token = "0x6000D68")]
|
||||
[Address(RVA = "0x724F70", Offset = "0x723D70", VA = "0x180724F70")]
|
||||
set
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Gets or sets the name of the file or directory that changed.</summary>
|
||||
/// <returns>The name of the file or directory that changed.</returns>
|
||||
// Token: 0x1700027C RID: 636
|
||||
// (set) Token: 0x06000D69 RID: 3433 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x1700027C")]
|
||||
public string Name
|
||||
{
|
||||
[Token(Token = "0x6000D69")]
|
||||
[Address(RVA = "0x737860", Offset = "0x736660", VA = "0x180737860")]
|
||||
set
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Gets or sets the original name of the file or directory that was renamed.</summary>
|
||||
/// <returns>The original name of the file or directory that was renamed.</returns>
|
||||
// Token: 0x1700027D RID: 637
|
||||
// (set) Token: 0x06000D6A RID: 3434 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x1700027D")]
|
||||
public string OldName
|
||||
{
|
||||
[Token(Token = "0x6000D6A")]
|
||||
[Address(RVA = "0x3F7200", Offset = "0x3F6000", VA = "0x1803F7200")]
|
||||
set
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0400075E RID: 1886
|
||||
[FieldOffset(Offset = "0x0")]
|
||||
[Token(Token = "0x400075E")]
|
||||
private WatcherChangeTypes changeType;
|
||||
|
||||
// Token: 0x0400075F RID: 1887
|
||||
[FieldOffset(Offset = "0x8")]
|
||||
[Token(Token = "0x400075F")]
|
||||
private string name;
|
||||
|
||||
// Token: 0x04000760 RID: 1888
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4000760")]
|
||||
private string oldName;
|
||||
|
||||
// Token: 0x04000761 RID: 1889
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4000761")]
|
||||
private bool timedOut;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace System.IO
|
||||
{
|
||||
/// <summary>Changes that might occur to a file or directory.</summary>
|
||||
// Token: 0x0200020D RID: 525
|
||||
[Token(Token = "0x200020D")]
|
||||
[Flags]
|
||||
public enum WatcherChangeTypes
|
||||
{
|
||||
/// <summary>The creation, deletion, change, or renaming of a file or folder.</summary>
|
||||
// Token: 0x04000763 RID: 1891
|
||||
[Token(Token = "0x4000763")]
|
||||
All = 15,
|
||||
/// <summary>The change of a file or folder. The types of changes include: changes to size, attributes, security settings, last write, and last access time.</summary>
|
||||
// Token: 0x04000764 RID: 1892
|
||||
[Token(Token = "0x4000764")]
|
||||
Changed = 4,
|
||||
/// <summary>The creation of a file or folder.</summary>
|
||||
// Token: 0x04000765 RID: 1893
|
||||
[Token(Token = "0x4000765")]
|
||||
Created = 1,
|
||||
/// <summary>The deletion of a file or folder.</summary>
|
||||
// Token: 0x04000766 RID: 1894
|
||||
[Token(Token = "0x4000766")]
|
||||
Deleted = 2,
|
||||
/// <summary>The renaming of a file or folder.</summary>
|
||||
// Token: 0x04000767 RID: 1895
|
||||
[Token(Token = "0x4000767")]
|
||||
Renamed = 8
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user