This commit is contained in:
niko
2026-04-11 22:19:20 +02:00
parent 45b857ff11
commit 8fc35183db
17034 changed files with 2863552 additions and 0 deletions
+957
View File
@@ -0,0 +1,957 @@
using System;
using System.Runtime.ExceptionServices;
using System.Runtime.InteropServices;
using System.Threading;
using System.Threading.Tasks;
using Cpp2IlInjected;
namespace System.IO
{
/// <summary>Provides a generic view of a sequence of bytes. This is an abstract class.</summary>
// Token: 0x02000295 RID: 661
[Token(Token = "0x2000295")]
[ComVisible(true)]
[Serializable]
public abstract class Stream : MarshalByRefObject, IDisposable
{
// Token: 0x060017F5 RID: 6133 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60017F5")]
[Address(RVA = "0x2949300", Offset = "0x2948100", VA = "0x182949300")]
internal SemaphoreSlim EnsureAsyncActiveSemaphoreInitialized()
{
return null;
}
/// <summary>When overridden in a derived class, gets a value indicating whether the current stream supports reading.</summary>
/// <returns>
/// <see langword="true" /> if the stream supports reading; otherwise, <see langword="false" />.</returns>
// Token: 0x170002D7 RID: 727
// (get) Token: 0x060017F6 RID: 6134
[Token(Token = "0x170002D7")]
public abstract bool CanRead
{
[Token(Token = "0x60017F6")]
[Address(Slot = "7")]
get;
}
/// <summary>When overridden in a derived class, gets a value indicating whether the current stream supports seeking.</summary>
/// <returns>
/// <see langword="true" /> if the stream supports seeking; otherwise, <see langword="false" />.</returns>
// Token: 0x170002D8 RID: 728
// (get) Token: 0x060017F7 RID: 6135
[Token(Token = "0x170002D8")]
public abstract bool CanSeek
{
[Token(Token = "0x60017F7")]
[Address(Slot = "8")]
get;
}
/// <summary>When overridden in a derived class, gets a value indicating whether the current stream supports writing.</summary>
/// <returns>
/// <see langword="true" /> if the stream supports writing; otherwise, <see langword="false" />.</returns>
// Token: 0x170002D9 RID: 729
// (get) Token: 0x060017F8 RID: 6136
[Token(Token = "0x170002D9")]
public abstract bool CanWrite
{
[Token(Token = "0x60017F8")]
[Address(Slot = "9")]
get;
}
/// <summary>When overridden in a derived class, gets the length in bytes of the stream.</summary>
/// <returns>A long value representing the length of the stream in bytes.</returns>
/// <exception cref="T:System.NotSupportedException">A class derived from <see langword="Stream" /> does not support seeking.</exception>
/// <exception cref="T:System.ObjectDisposedException">Methods were called after the stream was closed.</exception>
// Token: 0x170002DA RID: 730
// (get) Token: 0x060017F9 RID: 6137
[Token(Token = "0x170002DA")]
public abstract long Length
{
[Token(Token = "0x60017F9")]
[Address(Slot = "10")]
get;
}
/// <summary>When overridden in a derived class, gets or sets the position within the current stream.</summary>
/// <returns>The current position within the stream.</returns>
/// <exception cref="T:System.IO.IOException">An I/O error occurs.</exception>
/// <exception cref="T:System.NotSupportedException">The stream does not support seeking.</exception>
/// <exception cref="T:System.ObjectDisposedException">Methods were called after the stream was closed.</exception>
// Token: 0x170002DB RID: 731
// (get) Token: 0x060017FA RID: 6138
// (set) Token: 0x060017FB RID: 6139
[Token(Token = "0x170002DB")]
public abstract long Position
{
[Token(Token = "0x60017FA")]
[Address(Slot = "11")]
get;
[Token(Token = "0x60017FB")]
[Address(Slot = "12")]
set;
}
/// <summary>Gets or sets a value, in miliseconds, that determines how long the stream will attempt to read before timing out.</summary>
/// <returns>A value, in miliseconds, that determines how long the stream will attempt to read before timing out.</returns>
/// <exception cref="T:System.InvalidOperationException">The <see cref="P:System.IO.Stream.ReadTimeout" /> method always throws an <see cref="T:System.InvalidOperationException" />.</exception>
// Token: 0x170002DC RID: 732
// (get) Token: 0x060017FC RID: 6140 RVA: 0x00010440 File Offset: 0x0000E640
[Token(Token = "0x170002DC")]
[ComVisible(false)]
public virtual int ReadTimeout
{
[Token(Token = "0x60017FC")]
[Address(RVA = "0x294A020", Offset = "0x2948E20", VA = "0x18294A020", Slot = "13")]
get
{
return 0;
}
}
/// <summary>Gets or sets a value, in miliseconds, that determines how long the stream will attempt to write before timing out.</summary>
/// <returns>A value, in miliseconds, that determines how long the stream will attempt to write before timing out.</returns>
/// <exception cref="T:System.InvalidOperationException">The <see cref="P:System.IO.Stream.WriteTimeout" /> method always throws an <see cref="T:System.InvalidOperationException" />.</exception>
// Token: 0x170002DD RID: 733
// (get) Token: 0x060017FD RID: 6141 RVA: 0x00010458 File Offset: 0x0000E658
[Token(Token = "0x170002DD")]
[ComVisible(false)]
public virtual int WriteTimeout
{
[Token(Token = "0x60017FD")]
[Address(RVA = "0x294A090", Offset = "0x2948E90", VA = "0x18294A090", Slot = "14")]
get
{
return 0;
}
}
/// <summary>Reads the bytes from the current stream and writes them to another stream.</summary>
/// <param name="destination">The stream to which the contents of the current stream will be copied.</param>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="destination" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.NotSupportedException">The current stream does not support reading.
/// -or-
/// <paramref name="destination" /> does not support writing.</exception>
/// <exception cref="T:System.ObjectDisposedException">Either the current stream or <paramref name="destination" /> were closed before the <see cref="M:System.IO.Stream.CopyTo(System.IO.Stream)" /> method was called.</exception>
/// <exception cref="T:System.IO.IOException">An I/O error occurred.</exception>
// Token: 0x060017FE RID: 6142 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60017FE")]
[Address(RVA = "0x2948BF0", Offset = "0x29479F0", VA = "0x182948BF0")]
public void CopyTo(Stream destination)
{
}
// Token: 0x060017FF RID: 6143 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60017FF")]
[Address(RVA = "0x2949600", Offset = "0x2948400", VA = "0x182949600")]
private void InternalCopyTo(Stream destination, int bufferSize)
{
}
/// <summary>Closes the current stream and releases any resources (such as sockets and file handles) associated with the current stream. Instead of calling this method, ensure that the stream is properly disposed.</summary>
// Token: 0x06001800 RID: 6144 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001800")]
[Address(RVA = "0x2948B80", Offset = "0x2947980", VA = "0x182948B80", Slot = "15")]
public virtual void Close()
{
}
/// <summary>Releases all resources used by the <see cref="T:System.IO.Stream" />.</summary>
// Token: 0x06001801 RID: 6145 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001801")]
[Address(RVA = "0x579920", Offset = "0x578720", VA = "0x180579920", Slot = "6")]
public void Dispose()
{
}
/// <summary>Releases the unmanaged resources used by the <see cref="T:System.IO.Stream" /> 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: 0x06001802 RID: 6146 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001802")]
[Address(RVA = "0x402080", Offset = "0x400E80", VA = "0x180402080", Slot = "16")]
protected virtual void Dispose(bool disposing)
{
}
/// <summary>When overridden in a derived class, clears all buffers for this stream and causes any buffered data to be written to the underlying device.</summary>
/// <exception cref="T:System.IO.IOException">An I/O error occurs.</exception>
// Token: 0x06001803 RID: 6147
[Token(Token = "0x6001803")]
[Address(Slot = "17")]
public abstract void Flush();
/// <summary>Asynchronously clears all buffers for this stream, causes any buffered data to be written to the underlying device, and monitors cancellation requests.</summary>
/// <param name="cancellationToken">The token to monitor for cancellation requests. The default value is <see cref="P:System.Threading.CancellationToken.None" />.</param>
/// <returns>A task that represents the asynchronous flush operation.</returns>
/// <exception cref="T:System.ObjectDisposedException">The stream has been disposed.</exception>
// Token: 0x06001804 RID: 6148 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6001804")]
[Address(RVA = "0x29493F0", Offset = "0x29481F0", VA = "0x1829493F0", Slot = "18")]
[ComVisible(false)]
public virtual Task FlushAsync(CancellationToken cancellationToken)
{
return null;
}
/// <summary>Begins an asynchronous read operation. (Consider using <see cref="M:System.IO.Stream.ReadAsync(System.Byte[],System.Int32,System.Int32)" /> instead.)</summary>
/// <param name="buffer">The buffer to read the data into.</param>
/// <param name="offset">The byte offset in <paramref name="buffer" /> at which to begin writing data read from the stream.</param>
/// <param name="count">The maximum number of bytes to read.</param>
/// <param name="callback">An optional asynchronous callback, to be called when the read is complete.</param>
/// <param name="state">A user-provided object that distinguishes this particular asynchronous read request from other requests.</param>
/// <returns>An <see cref="T:System.IAsyncResult" /> that represents the asynchronous read, which could still be pending.</returns>
/// <exception cref="T:System.IO.IOException">Attempted an asynchronous read past the end of the stream, or a disk error occurs.</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 langword="Stream" /> implementation does not support the read operation.</exception>
// Token: 0x06001805 RID: 6149 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6001805")]
[Address(RVA = "0x2948600", Offset = "0x2947400", VA = "0x182948600", Slot = "19")]
public virtual IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback callback, object state)
{
return null;
}
// Token: 0x06001806 RID: 6150 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6001806")]
[Address(RVA = "0x29483E0", Offset = "0x29471E0", VA = "0x1829483E0")]
internal IAsyncResult BeginReadInternal(byte[] buffer, int offset, int count, AsyncCallback callback, object state, bool serializeAsynchronously)
{
return null;
}
/// <summary>Waits for the pending asynchronous read to complete. (Consider using <see cref="M:System.IO.Stream.ReadAsync(System.Byte[],System.Int32,System.Int32)" /> 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 zero (0) and the number of bytes you requested. Streams return zero (0) only at the end of the stream, otherwise, they should block 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">A handle to the pending read operation is not available.
/// -or-
/// The pending operation does not support reading.</exception>
/// <exception cref="T:System.InvalidOperationException">
/// <paramref name="asyncResult" /> did not originate from a <see cref="M:System.IO.Stream.BeginRead(System.Byte[],System.Int32,System.Int32,System.AsyncCallback,System.Object)" /> method on the current stream.</exception>
/// <exception cref="T:System.IO.IOException">The stream is closed or an internal error has occurred.</exception>
// Token: 0x06001807 RID: 6151 RVA: 0x00010470 File Offset: 0x0000E670
[Token(Token = "0x6001807")]
[Address(RVA = "0x2948EA0", Offset = "0x2947CA0", VA = "0x182948EA0", Slot = "20")]
public virtual int EndRead(IAsyncResult asyncResult)
{
return 0;
}
/// <summary>Asynchronously reads a sequence of bytes from the current stream, advances the position within the stream by the number of bytes read, and monitors cancellation requests.</summary>
/// <param name="buffer">The buffer to write the data into.</param>
/// <param name="offset">The byte offset in <paramref name="buffer" /> at which to begin writing data from the stream.</param>
/// <param name="count">The maximum number of bytes to read.</param>
/// <param name="cancellationToken">The token to monitor for cancellation requests. The default value is <see cref="P:System.Threading.CancellationToken.None" />.</param>
/// <returns>A task that represents the asynchronous read operation. The value of the <paramref name="TResult" /> parameter contains the total number of bytes read into the buffer. The result value can be less than the number of bytes requested if the number of bytes currently available is less than the requested number, or it can be 0 (zero) if the end of the stream has been reached.</returns>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="buffer" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">
/// <paramref name="offset" /> or <paramref name="count" /> is negative.</exception>
/// <exception cref="T:System.ArgumentException">The sum of <paramref name="offset" /> and <paramref name="count" /> is larger than the buffer length.</exception>
/// <exception cref="T:System.NotSupportedException">The stream does not support reading.</exception>
/// <exception cref="T:System.ObjectDisposedException">The stream has been disposed.</exception>
/// <exception cref="T:System.InvalidOperationException">The stream is currently in use by a previous read operation.</exception>
// Token: 0x06001808 RID: 6152 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6001808")]
[Address(RVA = "0x29496C0", Offset = "0x29484C0", VA = "0x1829496C0", Slot = "21")]
[ComVisible(false)]
public virtual Task<int> ReadAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken)
{
return null;
}
// Token: 0x06001809 RID: 6153 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6001809")]
[Address(RVA = "0x2948060", Offset = "0x2946E60", VA = "0x182948060")]
private Task<int> BeginEndReadAsync(byte[] buffer, int offset, int count)
{
return null;
}
/// <summary>Begins an asynchronous write operation. (Consider using <see cref="M:System.IO.Stream.WriteAsync(System.Byte[],System.Int32,System.Int32)" /> instead.)</summary>
/// <param name="buffer">The buffer to write data from.</param>
/// <param name="offset">The byte offset in <paramref name="buffer" /> from which to begin writing.</param>
/// <param name="count">The maximum number of bytes to write.</param>
/// <param name="callback">An optional asynchronous callback, to be called when the write is complete.</param>
/// <param name="state">A user-provided object that distinguishes this particular asynchronous write request from other requests.</param>
/// <returns>An <see langword="IAsyncResult" /> that represents the asynchronous write, which could still be pending.</returns>
/// <exception cref="T:System.IO.IOException">Attempted an asynchronous write past the end of the stream, or a disk error occurs.</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 langword="Stream" /> implementation does not support the write operation.</exception>
// Token: 0x0600180A RID: 6154 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600180A")]
[Address(RVA = "0x2948850", Offset = "0x2947650", VA = "0x182948850", Slot = "22")]
public virtual IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback callback, object state)
{
return null;
}
// Token: 0x0600180B RID: 6155 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600180B")]
[Address(RVA = "0x2948630", Offset = "0x2947430", VA = "0x182948630")]
internal IAsyncResult BeginWriteInternal(byte[] buffer, int offset, int count, AsyncCallback callback, object state, bool serializeAsynchronously)
{
return null;
}
// Token: 0x0600180C RID: 6156 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600180C")]
[Address(RVA = "0x2949990", Offset = "0x2948790", VA = "0x182949990")]
private void RunReadWriteTaskWhenReady(Task asyncWaiter, Stream.ReadWriteTask readWriteTask)
{
}
// Token: 0x0600180D RID: 6157 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600180D")]
[Address(RVA = "0x2949B70", Offset = "0x2948970", VA = "0x182949B70")]
private void RunReadWriteTask(Stream.ReadWriteTask readWriteTask)
{
}
/// <summary>Ends an asynchronous write operation. (Consider using <see cref="M:System.IO.Stream.WriteAsync(System.Byte[],System.Int32,System.Int32)" /> 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">A handle to the pending write operation is not available.
/// -or-
/// The pending operation does not support writing.</exception>
/// <exception cref="T:System.InvalidOperationException">
/// <paramref name="asyncResult" /> did not originate from a <see cref="M:System.IO.Stream.BeginWrite(System.Byte[],System.Int32,System.Int32,System.AsyncCallback,System.Object)" /> method on the current stream.</exception>
/// <exception cref="T:System.IO.IOException">The stream is closed or an internal error has occurred.</exception>
// Token: 0x0600180E RID: 6158 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600180E")]
[Address(RVA = "0x29490E0", Offset = "0x2947EE0", VA = "0x1829490E0", Slot = "23")]
public virtual void EndWrite(IAsyncResult asyncResult)
{
}
/// <summary>Asynchronously writes a sequence of bytes to the current stream and advances the current position within this stream by the number of bytes written.</summary>
/// <param name="buffer">The buffer to write data from.</param>
/// <param name="offset">The zero-based byte offset in <paramref name="buffer" /> from which to begin copying bytes to the stream.</param>
/// <param name="count">The maximum number of bytes to write.</param>
/// <returns>A task that represents the asynchronous write operation.</returns>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="buffer" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">
/// <paramref name="offset" /> or <paramref name="count" /> is negative.</exception>
/// <exception cref="T:System.ArgumentException">The sum of <paramref name="offset" /> and <paramref name="count" /> is larger than the buffer length.</exception>
/// <exception cref="T:System.NotSupportedException">The stream does not support writing.</exception>
/// <exception cref="T:System.ObjectDisposedException">The stream has been disposed.</exception>
/// <exception cref="T:System.InvalidOperationException">The stream is currently in use by a previous write operation.</exception>
// Token: 0x0600180F RID: 6159 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600180F")]
[Address(RVA = "0x2949C40", Offset = "0x2948A40", VA = "0x182949C40")]
[ComVisible(false)]
public Task WriteAsync(byte[] buffer, int offset, int count)
{
return null;
}
/// <summary>Asynchronously writes a sequence of bytes to the current stream, advances the current position within this stream by the number of bytes written, and monitors cancellation requests.</summary>
/// <param name="buffer">The buffer to write data from.</param>
/// <param name="offset">The zero-based byte offset in <paramref name="buffer" /> from which to begin copying bytes to the stream.</param>
/// <param name="count">The maximum number of bytes to write.</param>
/// <param name="cancellationToken">The token to monitor for cancellation requests. The default value is <see cref="P:System.Threading.CancellationToken.None" />.</param>
/// <returns>A task that represents the asynchronous write operation.</returns>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="buffer" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">
/// <paramref name="offset" /> or <paramref name="count" /> is negative.</exception>
/// <exception cref="T:System.ArgumentException">The sum of <paramref name="offset" /> and <paramref name="count" /> is larger than the buffer length.</exception>
/// <exception cref="T:System.NotSupportedException">The stream does not support writing.</exception>
/// <exception cref="T:System.ObjectDisposedException">The stream has been disposed.</exception>
/// <exception cref="T:System.InvalidOperationException">The stream is currently in use by a previous write operation.</exception>
// Token: 0x06001810 RID: 6160 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6001810")]
[Address(RVA = "0x2949CE0", Offset = "0x2948AE0", VA = "0x182949CE0", Slot = "24")]
[ComVisible(false)]
public virtual Task WriteAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken)
{
return null;
}
// Token: 0x06001811 RID: 6161 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6001811")]
[Address(RVA = "0x2948220", Offset = "0x2947020", VA = "0x182948220")]
private Task BeginEndWriteAsync(byte[] buffer, int offset, int count)
{
return null;
}
/// <summary>When overridden in a derived class, sets the position within the current stream.</summary>
/// <param name="offset">A byte offset relative to the <paramref name="origin" /> parameter.</param>
/// <param name="origin">A value of type <see cref="T:System.IO.SeekOrigin" /> indicating the reference point used to obtain the new position.</param>
/// <returns>The new position within the current stream.</returns>
/// <exception cref="T:System.IO.IOException">An I/O error occurs.</exception>
/// <exception cref="T:System.NotSupportedException">The stream does not support seeking, such as if the stream is constructed from a pipe or console output.</exception>
/// <exception cref="T:System.ObjectDisposedException">Methods were called after the stream was closed.</exception>
// Token: 0x06001812 RID: 6162
[Token(Token = "0x6001812")]
[Address(Slot = "25")]
public abstract long Seek(long offset, SeekOrigin origin);
/// <summary>When overridden in a derived class, sets the length of the current stream.</summary>
/// <param name="value">The desired length of the current stream in bytes.</param>
/// <exception cref="T:System.IO.IOException">An I/O error occurs.</exception>
/// <exception cref="T:System.NotSupportedException">The stream does not support both writing and seeking, such as if the stream is constructed from a pipe or console output.</exception>
/// <exception cref="T:System.ObjectDisposedException">Methods were called after the stream was closed.</exception>
// Token: 0x06001813 RID: 6163
[Token(Token = "0x6001813")]
[Address(Slot = "26")]
public abstract void SetLength(long value);
/// <summary>When overridden in a derived class, reads a sequence of bytes from the current stream and advances the position within the stream by the number of bytes read.</summary>
/// <param name="buffer">An array of bytes. When this method returns, the buffer contains the specified byte array with the values between <paramref name="offset" /> and (<paramref name="offset" /> + <paramref name="count" /> - 1) replaced by the bytes read from the current source.</param>
/// <param name="offset">The zero-based byte offset in <paramref name="buffer" /> at which to begin storing the data read from the current stream.</param>
/// <param name="count">The maximum number of bytes to be read from the current stream.</param>
/// <returns>The total number of bytes read into the buffer. This can be less than the number of bytes requested if that many bytes are not currently available, or zero (0) if the end of the stream has been reached.</returns>
/// <exception cref="T:System.ArgumentException">The sum of <paramref name="offset" /> and <paramref name="count" /> is larger than the buffer length.</exception>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="buffer" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">
/// <paramref name="offset" /> or <paramref name="count" /> is negative.</exception>
/// <exception cref="T:System.IO.IOException">An I/O error occurs.</exception>
/// <exception cref="T:System.NotSupportedException">The stream does not support reading.</exception>
/// <exception cref="T:System.ObjectDisposedException">Methods were called after the stream was closed.</exception>
// Token: 0x06001814 RID: 6164
[Token(Token = "0x6001814")]
[Address(Slot = "27")]
public abstract int Read([In] [Out] byte[] buffer, int offset, int count);
/// <summary>Reads a byte from the stream and advances the position within the stream by one byte, or returns -1 if at the end of the stream.</summary>
/// <returns>The unsigned byte cast to an <see langword="Int32" />, or -1 if at the end of the stream.</returns>
/// <exception cref="T:System.NotSupportedException">The stream does not support reading.</exception>
/// <exception cref="T:System.ObjectDisposedException">Methods were called after the stream was closed.</exception>
// Token: 0x06001815 RID: 6165 RVA: 0x00010488 File Offset: 0x0000E688
[Token(Token = "0x6001815")]
[Address(RVA = "0x29498E0", Offset = "0x29486E0", VA = "0x1829498E0", Slot = "28")]
public virtual int ReadByte()
{
return 0;
}
/// <summary>When overridden in a derived class, writes a sequence of bytes to the current stream and advances the current position within this stream by the number of bytes written.</summary>
/// <param name="buffer">An array of bytes. This method copies <paramref name="count" /> bytes from <paramref name="buffer" /> to the current stream.</param>
/// <param name="offset">The zero-based byte offset in <paramref name="buffer" /> at which to begin copying bytes to the current stream.</param>
/// <param name="count">The number of bytes to be written to the current stream.</param>
/// <exception cref="T:System.ArgumentException">The sum of <paramref name="offset" /> and <paramref name="count" /> is greater than the buffer length.</exception>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="buffer" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">
/// <paramref name="offset" /> or <paramref name="count" /> is negative.</exception>
/// <exception cref="T:System.IO.IOException">An I/O error occured, such as the specified file cannot be found.</exception>
/// <exception cref="T:System.NotSupportedException">The stream does not support writing.</exception>
/// <exception cref="T:System.ObjectDisposedException">
/// <see cref="M:System.IO.Stream.Write(System.Byte[],System.Int32,System.Int32)" /> was called after the stream was closed.</exception>
// Token: 0x06001816 RID: 6166
[Token(Token = "0x6001816")]
[Address(Slot = "29")]
public abstract void Write(byte[] buffer, int offset, int count);
/// <summary>Writes a byte to the current position in the stream and advances the position within the stream by one byte.</summary>
/// <param name="value">The byte to write to the stream.</param>
/// <exception cref="T:System.IO.IOException">An I/O error occurs.</exception>
/// <exception cref="T:System.NotSupportedException">The stream does not support writing, or the stream is already closed.</exception>
/// <exception cref="T:System.ObjectDisposedException">Methods were called after the stream was closed.</exception>
// Token: 0x06001817 RID: 6167 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001817")]
[Address(RVA = "0x2949EF0", Offset = "0x2948CF0", VA = "0x182949EF0", Slot = "30")]
public virtual void WriteByte(byte value)
{
}
// Token: 0x06001818 RID: 6168 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6001818")]
[Address(RVA = "0x2948880", Offset = "0x2947680", VA = "0x182948880")]
internal IAsyncResult BlockingBeginRead(byte[] buffer, int offset, int count, AsyncCallback callback, object state)
{
return null;
}
// Token: 0x06001819 RID: 6169 RVA: 0x000104A0 File Offset: 0x0000E6A0
[Token(Token = "0x6001819")]
[Address(RVA = "0x2948A60", Offset = "0x2947860", VA = "0x182948A60")]
internal static int BlockingEndRead(IAsyncResult asyncResult)
{
return 0;
}
// Token: 0x0600181A RID: 6170 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600181A")]
[Address(RVA = "0x2948970", Offset = "0x2947770", VA = "0x182948970")]
internal IAsyncResult BlockingBeginWrite(byte[] buffer, int offset, int count, AsyncCallback callback, object state)
{
return null;
}
// Token: 0x0600181B RID: 6171 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600181B")]
[Address(RVA = "0x2948AF0", Offset = "0x29478F0", VA = "0x182948AF0")]
internal static void BlockingEndWrite(IAsyncResult asyncResult)
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.IO.Stream" /> class.</summary>
// Token: 0x0600181C RID: 6172 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600181C")]
[Address(RVA = "0x4093D0", Offset = "0x4081D0", VA = "0x1804093D0")]
protected Stream()
{
}
/// <summary>A <see langword="Stream" /> with no backing store.</summary>
// Token: 0x04000CE6 RID: 3302
[Token(Token = "0x4000CE6")]
public static readonly Stream Null;
// Token: 0x04000CE7 RID: 3303
[Token(Token = "0x4000CE7")]
private const int _DefaultCopyBufferSize = 81920;
// Token: 0x04000CE8 RID: 3304
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
[Token(Token = "0x4000CE8")]
[NonSerialized]
private Stream.ReadWriteTask _activeReadWriteTask;
// Token: 0x04000CE9 RID: 3305
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
[Token(Token = "0x4000CE9")]
[NonSerialized]
private SemaphoreSlim _asyncActiveSemaphore;
// Token: 0x02000296 RID: 662
[Token(Token = "0x2000296")]
private struct ReadWriteParameters
{
// Token: 0x04000CEA RID: 3306
[global::Cpp2IlInjected.FieldOffset(Offset = "0x0")]
[Token(Token = "0x4000CEA")]
internal byte[] Buffer;
// Token: 0x04000CEB RID: 3307
[global::Cpp2IlInjected.FieldOffset(Offset = "0x8")]
[Token(Token = "0x4000CEB")]
internal int Offset;
// Token: 0x04000CEC RID: 3308
[global::Cpp2IlInjected.FieldOffset(Offset = "0xC")]
[Token(Token = "0x4000CEC")]
internal int Count;
}
// Token: 0x02000297 RID: 663
[Token(Token = "0x2000297")]
private sealed class ReadWriteTask : Task<int>, ITaskCompletionAction
{
// Token: 0x0600181E RID: 6174 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600181E")]
[Address(RVA = "0x29462F0", Offset = "0x29450F0", VA = "0x1829462F0")]
internal void ClearBeginState()
{
}
// Token: 0x0600181F RID: 6175 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600181F")]
[Address(RVA = "0x29464C0", Offset = "0x29452C0", VA = "0x1829464C0")]
public ReadWriteTask(bool isRead, Func<object, int> function, object state, Stream stream, byte[] buffer, int offset, int count, AsyncCallback callback)
{
}
// Token: 0x06001820 RID: 6176 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001820")]
[Address(RVA = "0x2946300", Offset = "0x2945100", VA = "0x182946300")]
private static void InvokeAsyncCallback(object completedTask)
{
}
// Token: 0x06001821 RID: 6177 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001821")]
[Address(RVA = "0x2946370", Offset = "0x2945170", VA = "0x182946370", Slot = "22")]
void ITaskCompletionAction.Invoke(Task completingTask)
{
}
// Token: 0x04000CED RID: 3309
[global::Cpp2IlInjected.FieldOffset(Offset = "0x58")]
[Token(Token = "0x4000CED")]
internal readonly bool _isRead;
// Token: 0x04000CEE RID: 3310
[global::Cpp2IlInjected.FieldOffset(Offset = "0x60")]
[Token(Token = "0x4000CEE")]
internal Stream _stream;
// Token: 0x04000CEF RID: 3311
[global::Cpp2IlInjected.FieldOffset(Offset = "0x68")]
[Token(Token = "0x4000CEF")]
internal byte[] _buffer;
// Token: 0x04000CF0 RID: 3312
[global::Cpp2IlInjected.FieldOffset(Offset = "0x70")]
[Token(Token = "0x4000CF0")]
internal int _offset;
// Token: 0x04000CF1 RID: 3313
[global::Cpp2IlInjected.FieldOffset(Offset = "0x74")]
[Token(Token = "0x4000CF1")]
internal int _count;
// Token: 0x04000CF2 RID: 3314
[global::Cpp2IlInjected.FieldOffset(Offset = "0x78")]
[Token(Token = "0x4000CF2")]
private AsyncCallback _callback;
// Token: 0x04000CF3 RID: 3315
[global::Cpp2IlInjected.FieldOffset(Offset = "0x80")]
[Token(Token = "0x4000CF3")]
private ExecutionContext _context;
// Token: 0x04000CF4 RID: 3316
[Token(Token = "0x4000CF4")]
private static ContextCallback s_invokeAsyncCallback;
}
// Token: 0x02000298 RID: 664
[Token(Token = "0x2000298")]
[Serializable]
private sealed class NullStream : Stream
{
// Token: 0x06001822 RID: 6178 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001822")]
[Address(RVA = "0x2941630", Offset = "0x2940430", VA = "0x182941630")]
internal NullStream()
{
}
// Token: 0x170002DE RID: 734
// (get) Token: 0x06001823 RID: 6179 RVA: 0x000104B8 File Offset: 0x0000E6B8
[Token(Token = "0x170002DE")]
public override bool CanRead
{
[Token(Token = "0x6001823")]
[Address(RVA = "0x460D40", Offset = "0x45FB40", VA = "0x180460D40", Slot = "7")]
get
{
return default(bool);
}
}
// Token: 0x170002DF RID: 735
// (get) Token: 0x06001824 RID: 6180 RVA: 0x000104D0 File Offset: 0x0000E6D0
[Token(Token = "0x170002DF")]
public override bool CanWrite
{
[Token(Token = "0x6001824")]
[Address(RVA = "0x460D40", Offset = "0x45FB40", VA = "0x180460D40", Slot = "9")]
get
{
return default(bool);
}
}
// Token: 0x170002E0 RID: 736
// (get) Token: 0x06001825 RID: 6181 RVA: 0x000104E8 File Offset: 0x0000E6E8
[Token(Token = "0x170002E0")]
public override bool CanSeek
{
[Token(Token = "0x6001825")]
[Address(RVA = "0x460D40", Offset = "0x45FB40", VA = "0x180460D40", Slot = "8")]
get
{
return default(bool);
}
}
// Token: 0x170002E1 RID: 737
// (get) Token: 0x06001826 RID: 6182 RVA: 0x00010500 File Offset: 0x0000E700
[Token(Token = "0x170002E1")]
public override long Length
{
[Token(Token = "0x6001826")]
[Address(RVA = "0x43E630", Offset = "0x43D430", VA = "0x18043E630", Slot = "10")]
get
{
return 0L;
}
}
// Token: 0x170002E2 RID: 738
// (get) Token: 0x06001827 RID: 6183 RVA: 0x00010518 File Offset: 0x0000E718
// (set) Token: 0x06001828 RID: 6184 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x170002E2")]
public override long Position
{
[Token(Token = "0x6001827")]
[Address(RVA = "0x43E630", Offset = "0x43D430", VA = "0x18043E630", Slot = "11")]
get
{
return 0L;
}
[Token(Token = "0x6001828")]
[Address(RVA = "0x402080", Offset = "0x400E80", VA = "0x180402080", Slot = "12")]
set
{
}
}
// Token: 0x06001829 RID: 6185 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001829")]
[Address(RVA = "0x402080", Offset = "0x400E80", VA = "0x180402080", Slot = "16")]
protected override void Dispose(bool disposing)
{
}
// Token: 0x0600182A RID: 6186 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600182A")]
[Address(RVA = "0x402080", Offset = "0x400E80", VA = "0x180402080", Slot = "17")]
public override void Flush()
{
}
// Token: 0x0600182B RID: 6187 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600182B")]
[Address(RVA = "0x2941440", Offset = "0x2940240", VA = "0x182941440", Slot = "18")]
[ComVisible(false)]
public override Task FlushAsync(CancellationToken cancellationToken)
{
return null;
}
// Token: 0x0600182C RID: 6188 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600182C")]
[Address(RVA = "0x2941240", Offset = "0x2940040", VA = "0x182941240", Slot = "19")]
public override IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback callback, object state)
{
return null;
}
// Token: 0x0600182D RID: 6189 RVA: 0x00010530 File Offset: 0x0000E730
[Token(Token = "0x600182D")]
[Address(RVA = "0x2941320", Offset = "0x2940120", VA = "0x182941320", Slot = "20")]
public override int EndRead(IAsyncResult asyncResult)
{
return 0;
}
// Token: 0x0600182E RID: 6190 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600182E")]
[Address(RVA = "0x29412B0", Offset = "0x29400B0", VA = "0x1829412B0", Slot = "22")]
public override IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback callback, object state)
{
return null;
}
// Token: 0x0600182F RID: 6191 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600182F")]
[Address(RVA = "0x29413B0", Offset = "0x29401B0", VA = "0x1829413B0", Slot = "23")]
public override void EndWrite(IAsyncResult asyncResult)
{
}
// Token: 0x06001830 RID: 6192 RVA: 0x00010548 File Offset: 0x0000E748
[Token(Token = "0x6001830")]
[Address(RVA = "0x43E630", Offset = "0x43D430", VA = "0x18043E630", Slot = "27")]
public override int Read([In] [Out] byte[] buffer, int offset, int count)
{
return 0;
}
// Token: 0x06001831 RID: 6193 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6001831")]
[Address(RVA = "0x29414E0", Offset = "0x29402E0", VA = "0x1829414E0", Slot = "21")]
[ComVisible(false)]
public override Task<int> ReadAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken)
{
return null;
}
// Token: 0x06001832 RID: 6194 RVA: 0x00010560 File Offset: 0x0000E760
[Token(Token = "0x6001832")]
[Address(RVA = "0x4F9EF0", Offset = "0x4F8CF0", VA = "0x1804F9EF0", Slot = "28")]
public override int ReadByte()
{
return 0;
}
// Token: 0x06001833 RID: 6195 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001833")]
[Address(RVA = "0x402080", Offset = "0x400E80", VA = "0x180402080", Slot = "29")]
public override void Write(byte[] buffer, int offset, int count)
{
}
// Token: 0x06001834 RID: 6196 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6001834")]
[Address(RVA = "0x29415A0", Offset = "0x29403A0", VA = "0x1829415A0", Slot = "24")]
[ComVisible(false)]
public override Task WriteAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken)
{
return null;
}
// Token: 0x06001835 RID: 6197 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001835")]
[Address(RVA = "0x402080", Offset = "0x400E80", VA = "0x180402080", Slot = "30")]
public override void WriteByte(byte value)
{
}
// Token: 0x06001836 RID: 6198 RVA: 0x00010578 File Offset: 0x0000E778
[Token(Token = "0x6001836")]
[Address(RVA = "0x43E630", Offset = "0x43D430", VA = "0x18043E630", Slot = "25")]
public override long Seek(long offset, SeekOrigin origin)
{
return 0L;
}
// Token: 0x06001837 RID: 6199 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001837")]
[Address(RVA = "0x402080", Offset = "0x400E80", VA = "0x180402080", Slot = "26")]
public override void SetLength(long length)
{
}
// Token: 0x04000CF5 RID: 3317
[Token(Token = "0x4000CF5")]
private static Task<int> s_nullReadTask;
}
// Token: 0x02000299 RID: 665
[Token(Token = "0x2000299")]
internal sealed class SynchronousAsyncResult : IAsyncResult
{
// Token: 0x06001838 RID: 6200 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001838")]
[Address(RVA = "0x294A180", Offset = "0x2948F80", VA = "0x18294A180")]
internal SynchronousAsyncResult(int bytesRead, object asyncStateObject)
{
}
// Token: 0x06001839 RID: 6201 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001839")]
[Address(RVA = "0x1241240", Offset = "0x1240040", VA = "0x181241240")]
internal SynchronousAsyncResult(object asyncStateObject)
{
}
// Token: 0x0600183A RID: 6202 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600183A")]
[Address(RVA = "0x294A120", Offset = "0x2948F20", VA = "0x18294A120")]
internal SynchronousAsyncResult(Exception ex, object asyncStateObject, bool isWrite)
{
}
// Token: 0x170002E3 RID: 739
// (get) Token: 0x0600183B RID: 6203 RVA: 0x00010590 File Offset: 0x0000E790
[Token(Token = "0x170002E3")]
public bool IsCompleted
{
[Token(Token = "0x600183B")]
[Address(RVA = "0x460D40", Offset = "0x45FB40", VA = "0x180460D40", Slot = "4")]
get
{
return default(bool);
}
}
// Token: 0x170002E4 RID: 740
// (get) Token: 0x0600183C RID: 6204 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x170002E4")]
public WaitHandle AsyncWaitHandle
{
[Token(Token = "0x600183C")]
[Address(RVA = "0x294A1C0", Offset = "0x2948FC0", VA = "0x18294A1C0", Slot = "5")]
get
{
return null;
}
}
// Token: 0x170002E5 RID: 741
// (get) Token: 0x0600183D RID: 6205 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x170002E5")]
public object AsyncState
{
[Token(Token = "0x600183D")]
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "6")]
get
{
return null;
}
}
// Token: 0x170002E6 RID: 742
// (get) Token: 0x0600183E RID: 6206 RVA: 0x000105A8 File Offset: 0x0000E7A8
[Token(Token = "0x170002E6")]
public bool CompletedSynchronously
{
[Token(Token = "0x600183E")]
[Address(RVA = "0x460D40", Offset = "0x45FB40", VA = "0x180460D40", Slot = "7")]
get
{
return default(bool);
}
}
// Token: 0x0600183F RID: 6207 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600183F")]
[Address(RVA = "0x294A100", Offset = "0x2948F00", VA = "0x18294A100")]
internal void ThrowIfError()
{
}
// Token: 0x06001840 RID: 6208 RVA: 0x000105C0 File Offset: 0x0000E7C0
[Token(Token = "0x6001840")]
[Address(RVA = "0x2948A60", Offset = "0x2947860", VA = "0x182948A60")]
internal static int EndRead(IAsyncResult asyncResult)
{
return 0;
}
// Token: 0x06001841 RID: 6209 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001841")]
[Address(RVA = "0x2948AF0", Offset = "0x29478F0", VA = "0x182948AF0")]
internal static void EndWrite(IAsyncResult asyncResult)
{
}
// Token: 0x04000CF6 RID: 3318
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
[Token(Token = "0x4000CF6")]
private readonly object _stateObject;
// Token: 0x04000CF7 RID: 3319
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
[Token(Token = "0x4000CF7")]
private readonly bool _isWrite;
// Token: 0x04000CF8 RID: 3320
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
[Token(Token = "0x4000CF8")]
private ManualResetEvent _waitHandle;
// Token: 0x04000CF9 RID: 3321
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
[Token(Token = "0x4000CF9")]
private ExceptionDispatchInfo _exceptionInfo;
// Token: 0x04000CFA RID: 3322
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
[Token(Token = "0x4000CFA")]
private bool _endXxxCalled;
// Token: 0x04000CFB RID: 3323
[global::Cpp2IlInjected.FieldOffset(Offset = "0x34")]
[Token(Token = "0x4000CFB")]
private int _bytesRead;
}
}
}