Files
2026-04-10 22:50:51 +02:00

566 lines
30 KiB
C#

using System;
using System.Runtime.InteropServices;
using System.Threading;
using System.Threading.Tasks;
using Cpp2IlInjected;
namespace System.IO
{
/// <summary>Adds a buffering layer to read and write operations on another stream. This class cannot be inherited.</summary>
// Token: 0x0200027C RID: 636
[Token(Token = "0x200027C")]
[ComVisible(true)]
public sealed class BufferedStream : Stream
{
/// <summary>Initializes a new instance of the <see cref="T:System.IO.BufferedStream" /> class with a default buffer size of 4096 bytes.</summary>
/// <param name="stream">The current stream.</param>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="stream" /> is <see langword="null" />.</exception>
// Token: 0x06001719 RID: 5913 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001719")]
[Address(RVA = "0x288A090", Offset = "0x2888E90", VA = "0x18288A090")]
public BufferedStream(Stream stream)
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.IO.BufferedStream" /> class with the specified buffer size.</summary>
/// <param name="stream">The current stream.</param>
/// <param name="bufferSize">The buffer size in bytes.</param>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="stream" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">
/// <paramref name="bufferSize" /> is negative.</exception>
// Token: 0x0600171A RID: 5914 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600171A")]
[Address(RVA = "0x2889ED0", Offset = "0x2888CD0", VA = "0x182889ED0")]
public BufferedStream(Stream stream, int bufferSize)
{
}
// Token: 0x0600171B RID: 5915 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600171B")]
[Address(RVA = "0x2887D50", Offset = "0x2886B50", VA = "0x182887D50")]
private void EnsureNotClosed()
{
}
// Token: 0x0600171C RID: 5916 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600171C")]
[Address(RVA = "0x2887CD0", Offset = "0x2886AD0", VA = "0x182887CD0")]
private void EnsureCanSeek()
{
}
// Token: 0x0600171D RID: 5917 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600171D")]
[Address(RVA = "0x2887C90", Offset = "0x2886A90", VA = "0x182887C90")]
private void EnsureCanRead()
{
}
// Token: 0x0600171E RID: 5918 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600171E")]
[Address(RVA = "0x2887D10", Offset = "0x2886B10", VA = "0x182887D10")]
private void EnsureCanWrite()
{
}
// Token: 0x0600171F RID: 5919 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600171F")]
[Address(RVA = "0x2887BE0", Offset = "0x28869E0", VA = "0x182887BE0")]
private void EnsureBeginEndAwaitableAllocated()
{
}
// Token: 0x06001720 RID: 5920 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001720")]
[Address(RVA = "0x2887D60", Offset = "0x2886B60", VA = "0x182887D60")]
private void EnsureShadowBufferAllocated()
{
}
// Token: 0x06001721 RID: 5921 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001721")]
[Address(RVA = "0x2887C40", Offset = "0x2886A40", VA = "0x182887C40")]
private void EnsureBufferAllocated()
{
}
/// <summary>Gets a value indicating whether the current stream supports reading.</summary>
/// <returns>
/// <see langword="true" /> if the stream supports reading; <see langword="false" /> if the stream is closed or was opened with write-only access.</returns>
// Token: 0x170002B5 RID: 693
// (get) Token: 0x06001722 RID: 5922 RVA: 0x000100C8 File Offset: 0x0000E2C8
[Token(Token = "0x170002B5")]
public override bool CanRead
{
[Token(Token = "0x6001722")]
[Address(RVA = "0x288A0A0", Offset = "0x2888EA0", VA = "0x18288A0A0", Slot = "7")]
get
{
return default(bool);
}
}
/// <summary>Gets a value indicating whether the current stream supports writing.</summary>
/// <returns>
/// <see langword="true" /> if the stream supports writing; <see langword="false" /> if the stream is closed or was opened with read-only access.</returns>
// Token: 0x170002B6 RID: 694
// (get) Token: 0x06001723 RID: 5923 RVA: 0x000100E0 File Offset: 0x0000E2E0
[Token(Token = "0x170002B6")]
public override bool CanWrite
{
[Token(Token = "0x6001723")]
[Address(RVA = "0x288A0E0", Offset = "0x2888EE0", VA = "0x18288A0E0", Slot = "9")]
get
{
return default(bool);
}
}
/// <summary>Gets a value indicating whether the current stream supports seeking.</summary>
/// <returns>
/// <see langword="true" /> if the stream supports seeking; <see langword="false" /> if the stream is closed or if the stream was constructed from an operating system handle such as a pipe or output to the console.</returns>
// Token: 0x170002B7 RID: 695
// (get) Token: 0x06001724 RID: 5924 RVA: 0x000100F8 File Offset: 0x0000E2F8
[Token(Token = "0x170002B7")]
public override bool CanSeek
{
[Token(Token = "0x6001724")]
[Address(RVA = "0x288A0C0", Offset = "0x2888EC0", VA = "0x18288A0C0", Slot = "8")]
get
{
return default(bool);
}
}
/// <summary>Gets the stream length in bytes.</summary>
/// <returns>The stream length in bytes.</returns>
/// <exception cref="T:System.IO.IOException">The underlying stream is <see langword="null" /> or closed.</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: 0x170002B8 RID: 696
// (get) Token: 0x06001725 RID: 5925 RVA: 0x00010110 File Offset: 0x0000E310
[Token(Token = "0x170002B8")]
public override long Length
{
[Token(Token = "0x6001725")]
[Address(RVA = "0x288A100", Offset = "0x2888F00", VA = "0x18288A100", Slot = "10")]
get
{
return 0L;
}
}
/// <summary>Gets the position within the current stream.</summary>
/// <returns>The position within the current stream.</returns>
/// <exception cref="T:System.ArgumentOutOfRangeException">The value passed to <see cref="M:System.IO.BufferedStream.Seek(System.Int64,System.IO.SeekOrigin)" /> is negative.</exception>
/// <exception cref="T:System.IO.IOException">An I/O error occurs, such as the stream being closed.</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: 0x170002B9 RID: 697
// (get) Token: 0x06001726 RID: 5926 RVA: 0x00010128 File Offset: 0x0000E328
// (set) Token: 0x06001727 RID: 5927 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x170002B9")]
public override long Position
{
[Token(Token = "0x6001726")]
[Address(RVA = "0x288A190", Offset = "0x2888F90", VA = "0x18288A190", Slot = "11")]
get
{
return 0L;
}
[Token(Token = "0x6001727")]
[Address(RVA = "0x288A210", Offset = "0x2889010", VA = "0x18288A210", Slot = "12")]
set
{
}
}
// Token: 0x06001728 RID: 5928 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001728")]
[Address(RVA = "0x2887990", Offset = "0x2886790", VA = "0x182887990", Slot = "16")]
protected override void Dispose(bool disposing)
{
}
/// <summary>Clears all buffers for this stream and causes any buffered data to be written to the underlying device.</summary>
/// <exception cref="T:System.ObjectDisposedException">The stream has been disposed.</exception>
/// <exception cref="T:System.IO.IOException">The data source or repository is not open.</exception>
// Token: 0x06001729 RID: 5929 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001729")]
[Address(RVA = "0x28882C0", Offset = "0x28870C0", VA = "0x1828882C0", Slot = "17")]
public override 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.</param>
/// <returns>A task that represents the asynchronous flush operation.</returns>
/// <exception cref="T:System.ObjectDisposedException">The stream has been disposed.</exception>
// Token: 0x0600172A RID: 5930 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600172A")]
[Address(RVA = "0x2887F40", Offset = "0x2886D40", VA = "0x182887F40", Slot = "18")]
public override Task FlushAsync(CancellationToken cancellationToken)
{
return null;
}
// Token: 0x0600172B RID: 5931 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600172B")]
[Address(RVA = "0x2887E20", Offset = "0x2886C20", VA = "0x182887E20")]
private static Task FlushAsyncInternal(CancellationToken cancellationToken, BufferedStream _this, Stream stream, int writePos, int readPos, int readLen)
{
return null;
}
// Token: 0x0600172C RID: 5932 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600172C")]
[Address(RVA = "0x2888120", Offset = "0x2886F20", VA = "0x182888120")]
private void FlushRead()
{
}
// Token: 0x0600172D RID: 5933 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600172D")]
[Address(RVA = "0x28878C0", Offset = "0x28866C0", VA = "0x1828878C0")]
private void ClearReadBufferBeforeWrite()
{
}
// Token: 0x0600172E RID: 5934 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600172E")]
[Address(RVA = "0x2888260", Offset = "0x2887060", VA = "0x182888260")]
private void FlushWrite()
{
}
// Token: 0x0600172F RID: 5935 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600172F")]
[Address(RVA = "0x2888170", Offset = "0x2886F70", VA = "0x182888170")]
private Task FlushWriteAsync(CancellationToken cancellationToken)
{
return null;
}
// Token: 0x06001730 RID: 5936 RVA: 0x00010140 File Offset: 0x0000E340
[Token(Token = "0x6001730")]
[Address(RVA = "0x2888B00", Offset = "0x2887900", VA = "0x182888B00")]
private int ReadFromBuffer(byte[] array, int offset, int count)
{
return 0;
}
// Token: 0x06001731 RID: 5937 RVA: 0x00010158 File Offset: 0x0000E358
[Token(Token = "0x6001731")]
[Address(RVA = "0x2888B60", Offset = "0x2887960", VA = "0x182888B60")]
private int ReadFromBuffer(byte[] array, int offset, int count, out Exception error)
{
return 0;
}
/// <summary>Copies bytes from the current buffered stream to an array.</summary>
/// <param name="array">The buffer to which bytes are to be copied.</param>
/// <param name="offset">The byte offset in the buffer at which to begin reading bytes.</param>
/// <param name="count">The number of bytes to be read.</param>
/// <returns>The total number of bytes read into <paramref name="array" />. This can be less than the number of bytes requested if that many bytes are not currently available, or 0 if the end of the stream has been reached before any data can be read.</returns>
/// <exception cref="T:System.ArgumentException">Length of <paramref name="array" /> minus <paramref name="offset" /> is less than <paramref name="count" />.</exception>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="array" /> 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">The stream is not open or is <see langword="null" />.</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: 0x06001732 RID: 5938 RVA: 0x00010170 File Offset: 0x0000E370
[Token(Token = "0x6001732")]
[Address(RVA = "0x2888D70", Offset = "0x2887B70", VA = "0x182888D70", Slot = "27")]
public override int Read([In] [Out] byte[] array, int offset, int count)
{
return 0;
}
/// <summary>Begins an asynchronous read operation. (Consider using <see cref="M:System.IO.BufferedStream.ReadAsync(System.Byte[],System.Int32,System.Int32,System.Threading.CancellationToken)" /> 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 object that represents the asynchronous read, which could still be pending.</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.IO.IOException">Attempted an asynchronous read past the end of the stream.</exception>
/// <exception cref="T:System.ArgumentException">The buffer length minus <paramref name="offset" /> is less than <paramref name="count" />.</exception>
/// <exception cref="T:System.NotSupportedException">The current stream does not support the read operation.</exception>
// Token: 0x06001733 RID: 5939 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6001733")]
[Address(RVA = "0x2886F60", Offset = "0x2885D60", VA = "0x182886F60", Slot = "19")]
public override IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback callback, object state)
{
return null;
}
// Token: 0x06001734 RID: 5940 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6001734")]
[Address(RVA = "0x2886E90", Offset = "0x2885C90", VA = "0x182886E90")]
private IAsyncResult BeginReadFromUnderlyingStream(byte[] buffer, int offset, int count, AsyncCallback callback, object state, int bytesAlreadySatisfied, Task semaphoreLockTask)
{
return null;
}
/// <summary>Waits for the pending asynchronous read operation to complete. (Consider using <see cref="M:System.IO.BufferedStream.ReadAsync(System.Byte[],System.Int32,System.Int32,System.Threading.CancellationToken)" /> instead.)</summary>
/// <param name="asyncResult">The reference to the pending asynchronous request to wait for.</param>
/// <returns>The number of bytes read from the stream, between 0 (zero) and the number of bytes you requested. Streams only return 0 only at the end of the stream, otherwise, they should block until at least 1 byte is available.</returns>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="asyncResult" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentException">This <see cref="T:System.IAsyncResult" /> object was not created by calling <see cref="M:System.IO.BufferedStream.BeginRead(System.Byte[],System.Int32,System.Int32,System.AsyncCallback,System.Object)" /> on this class.</exception>
// Token: 0x06001735 RID: 5941 RVA: 0x00010188 File Offset: 0x0000E388
[Token(Token = "0x6001735")]
[Address(RVA = "0x2887AC0", Offset = "0x28868C0", VA = "0x182887AC0", Slot = "20")]
public override int EndRead(IAsyncResult asyncResult)
{
return 0;
}
// Token: 0x06001736 RID: 5942 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6001736")]
[Address(RVA = "0x2888470", Offset = "0x2887270", VA = "0x182888470")]
private Task<int> LastSyncCompletedReadTask(int val)
{
return null;
}
/// <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.</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: 0x06001737 RID: 5943 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6001737")]
[Address(RVA = "0x2888510", Offset = "0x2887310", VA = "0x182888510", Slot = "21")]
public override Task<int> ReadAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken)
{
return null;
}
// Token: 0x06001738 RID: 5944 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6001738")]
[Address(RVA = "0x2888C20", Offset = "0x2887A20", VA = "0x182888C20")]
private Task<int> ReadFromUnderlyingStreamAsync(byte[] array, int offset, int count, CancellationToken cancellationToken, int bytesAlreadySatisfied, Task semaphoreLockTask, bool useApmPattern)
{
return null;
}
/// <summary>Reads a byte from the underlying stream and returns the byte cast to an <see langword="int" />, or returns -1 if reading from the end of the stream.</summary>
/// <returns>The byte cast to an <see langword="int" />, or -1 if reading from the end of the stream.</returns>
/// <exception cref="T:System.IO.IOException">An I/O error occurs, such as the stream being closed.</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: 0x06001739 RID: 5945 RVA: 0x000101A0 File Offset: 0x0000E3A0
[Token(Token = "0x6001739")]
[Address(RVA = "0x28889A0", Offset = "0x28877A0", VA = "0x1828889A0", Slot = "28")]
public override int ReadByte()
{
return 0;
}
// Token: 0x0600173A RID: 5946 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600173A")]
[Address(RVA = "0x28898E0", Offset = "0x28886E0", VA = "0x1828898E0")]
private void WriteToBuffer(byte[] array, ref int offset, ref int count)
{
}
// Token: 0x0600173B RID: 5947 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600173B")]
[Address(RVA = "0x2889850", Offset = "0x2888650", VA = "0x182889850")]
private void WriteToBuffer(byte[] array, ref int offset, ref int count, out Exception error)
{
}
/// <summary>Copies bytes to the buffered stream and advances the current position within the buffered stream by the number of bytes written.</summary>
/// <param name="array">The byte array from which to copy <paramref name="count" /> bytes to the current buffered stream.</param>
/// <param name="offset">The offset in the buffer at which to begin copying bytes to the current buffered stream.</param>
/// <param name="count">The number of bytes to be written to the current buffered stream.</param>
/// <exception cref="T:System.ArgumentException">Length of <paramref name="array" /> minus <paramref name="offset" /> is less than <paramref name="count" />.</exception>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="array" /> 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">The stream is closed or <see langword="null" />.</exception>
/// <exception cref="T:System.NotSupportedException">The stream does not support writing.</exception>
/// <exception cref="T:System.ObjectDisposedException">Methods were called after the stream was closed.</exception>
// Token: 0x0600173C RID: 5948 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600173C")]
[Address(RVA = "0x2889B10", Offset = "0x2888910", VA = "0x182889B10", Slot = "29")]
public override void Write(byte[] array, int offset, int count)
{
}
/// <summary>Begins an asynchronous write operation. (Consider using <see cref="M:System.IO.BufferedStream.WriteAsync(System.Byte[],System.Int32,System.Int32,System.Threading.CancellationToken)" /> instead.)</summary>
/// <param name="buffer">The buffer containing data to write 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 maximum number of bytes to write.</param>
/// <param name="callback">The method to be called when the asynchronous write operation is completed.</param>
/// <param name="state">A user-provided object that distinguishes this particular asynchronous write request from other requests.</param>
/// <returns>An object that references the asynchronous write which could still be pending.</returns>
/// <exception cref="T:System.ArgumentException">
/// <paramref name="buffer" /> length minus <paramref name="offset" /> is less than <paramref name="count" />.</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.NotSupportedException">The stream does not support writing.</exception>
// Token: 0x0600173D RID: 5949 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600173D")]
[Address(RVA = "0x2887470", Offset = "0x2886270", VA = "0x182887470", Slot = "22")]
public override IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback callback, object state)
{
return null;
}
// Token: 0x0600173E RID: 5950 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600173E")]
[Address(RVA = "0x28873B0", Offset = "0x28861B0", VA = "0x1828873B0")]
private IAsyncResult BeginWriteToUnderlyingStream(byte[] buffer, int offset, int count, AsyncCallback callback, object state, Task semaphoreLockTask)
{
return null;
}
/// <summary>Ends an asynchronous write operation and blocks until the I/O operation is complete. (Consider using <see cref="M:System.IO.BufferedStream.WriteAsync(System.Byte[],System.Int32,System.Int32,System.Threading.CancellationToken)" /> instead.)</summary>
/// <param name="asyncResult">The pending asynchronous request.</param>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="asyncResult" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentException">This <see cref="T:System.IAsyncResult" /> object was not created by calling <see cref="M:System.IO.BufferedStream.BeginWrite(System.Byte[],System.Int32,System.Int32,System.AsyncCallback,System.Object)" /> on this class.</exception>
// Token: 0x0600173F RID: 5951 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600173F")]
[Address(RVA = "0x2887B50", Offset = "0x2886950", VA = "0x182887B50", Slot = "23")]
public override void EndWrite(IAsyncResult asyncResult)
{
}
/// <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.</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: 0x06001740 RID: 5952 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6001740")]
[Address(RVA = "0x28892E0", Offset = "0x28880E0", VA = "0x1828892E0", Slot = "24")]
public override Task WriteAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken)
{
return null;
}
// Token: 0x06001741 RID: 5953 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6001741")]
[Address(RVA = "0x28899E0", Offset = "0x28887E0", VA = "0x1828899E0")]
private Task WriteToUnderlyingStreamAsync(byte[] array, int offset, int count, CancellationToken cancellationToken, Task semaphoreLockTask, bool useApmPattern)
{
return null;
}
/// <summary>Writes a byte to the current position in the buffered stream.</summary>
/// <param name="value">A byte to write to the stream.</param>
/// <exception cref="T:System.NotSupportedException">The stream does not support writing.</exception>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="value" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.ObjectDisposedException">Methods were called after the stream was closed.</exception>
// Token: 0x06001742 RID: 5954 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001742")]
[Address(RVA = "0x2889720", Offset = "0x2888520", VA = "0x182889720", Slot = "30")]
public override void WriteByte(byte value)
{
}
/// <summary>Sets the position within the current buffered stream.</summary>
/// <param name="offset">A byte offset relative to <paramref name="origin" />.</param>
/// <param name="origin">A value of type <see cref="T:System.IO.SeekOrigin" /> indicating the reference point from which to obtain the new position.</param>
/// <returns>The new position within the current buffered stream.</returns>
/// <exception cref="T:System.IO.IOException">The stream is not open or is <see langword="null" />.</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: 0x06001743 RID: 5955 RVA: 0x000101B8 File Offset: 0x0000E3B8
[Token(Token = "0x6001743")]
[Address(RVA = "0x2889040", Offset = "0x2887E40", VA = "0x182889040", Slot = "25")]
public override long Seek(long offset, SeekOrigin origin)
{
return 0L;
}
/// <summary>Sets the length of the buffered stream.</summary>
/// <param name="value">An integer indicating the desired length of the current buffered stream in bytes.</param>
/// <exception cref="T:System.ArgumentOutOfRangeException">
/// <paramref name="value" /> is negative.</exception>
/// <exception cref="T:System.IO.IOException">The stream is not open or is <see langword="null" />.</exception>
/// <exception cref="T:System.NotSupportedException">The stream does not support both writing and seeking.</exception>
/// <exception cref="T:System.ObjectDisposedException">Methods were called after the stream was closed.</exception>
// Token: 0x06001744 RID: 5956 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001744")]
[Address(RVA = "0x28891C0", Offset = "0x2887FC0", VA = "0x1828891C0", Slot = "26")]
public override void SetLength(long value)
{
}
// Token: 0x04000C83 RID: 3203
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
[Token(Token = "0x4000C83")]
private Stream _stream;
// Token: 0x04000C84 RID: 3204
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
[Token(Token = "0x4000C84")]
private byte[] _buffer;
// Token: 0x04000C85 RID: 3205
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
[Token(Token = "0x4000C85")]
private readonly int _bufferSize;
// Token: 0x04000C86 RID: 3206
[global::Cpp2IlInjected.FieldOffset(Offset = "0x3C")]
[Token(Token = "0x4000C86")]
private int _readPos;
// Token: 0x04000C87 RID: 3207
[global::Cpp2IlInjected.FieldOffset(Offset = "0x40")]
[Token(Token = "0x4000C87")]
private int _readLen;
// Token: 0x04000C88 RID: 3208
[global::Cpp2IlInjected.FieldOffset(Offset = "0x44")]
[Token(Token = "0x4000C88")]
private int _writePos;
// Token: 0x04000C89 RID: 3209
[global::Cpp2IlInjected.FieldOffset(Offset = "0x48")]
[Token(Token = "0x4000C89")]
private BeginEndAwaitableAdapter _beginEndAwaitable;
// Token: 0x04000C8A RID: 3210
[global::Cpp2IlInjected.FieldOffset(Offset = "0x50")]
[Token(Token = "0x4000C8A")]
private Task<int> _lastSyncCompletedReadTask;
}
}