using System;
using System.Runtime.InteropServices;
using System.Threading;
using System.Threading.Tasks;
using Cpp2IlInjected;
namespace System.IO
{
/// Adds a buffering layer to read and write operations on another stream. This class cannot be inherited.
// Token: 0x0200027C RID: 636
[Token(Token = "0x200027C")]
[ComVisible(true)]
public sealed class BufferedStream : Stream
{
/// Initializes a new instance of the class with a default buffer size of 4096 bytes.
/// The current stream.
///
/// is .
// Token: 0x06001719 RID: 5913 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001719")]
[Address(RVA = "0x288A090", Offset = "0x2888E90", VA = "0x18288A090")]
public BufferedStream(Stream stream)
{
}
/// Initializes a new instance of the class with the specified buffer size.
/// The current stream.
/// The buffer size in bytes.
///
/// is .
///
/// is negative.
// 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()
{
}
/// Gets a value indicating whether the current stream supports reading.
///
/// if the stream supports reading; if the stream is closed or was opened with write-only access.
// 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);
}
}
/// Gets a value indicating whether the current stream supports writing.
///
/// if the stream supports writing; if the stream is closed or was opened with read-only access.
// 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);
}
}
/// Gets a value indicating whether the current stream supports seeking.
///
/// if the stream supports seeking; 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.
// 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);
}
}
/// Gets the stream length in bytes.
/// The stream length in bytes.
/// The underlying stream is or closed.
/// The stream does not support seeking.
/// Methods were called after the stream was closed.
// 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;
}
}
/// Gets the position within the current stream.
/// The position within the current stream.
/// The value passed to is negative.
/// An I/O error occurs, such as the stream being closed.
/// The stream does not support seeking.
/// Methods were called after the stream was closed.
// 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)
{
}
/// Clears all buffers for this stream and causes any buffered data to be written to the underlying device.
/// The stream has been disposed.
/// The data source or repository is not open.
// 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()
{
}
/// Asynchronously clears all buffers for this stream, causes any buffered data to be written to the underlying device, and monitors cancellation requests.
/// The token to monitor for cancellation requests.
/// A task that represents the asynchronous flush operation.
/// The stream has been disposed.
// 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;
}
/// Copies bytes from the current buffered stream to an array.
/// The buffer to which bytes are to be copied.
/// The byte offset in the buffer at which to begin reading bytes.
/// The number of bytes to be read.
/// The total number of bytes read into . 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.
/// Length of minus is less than .
///
/// is .
///
/// or is negative.
/// The stream is not open or is .
/// The stream does not support reading.
/// Methods were called after the stream was closed.
// 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;
}
/// Begins an asynchronous read operation. (Consider using instead.)
/// The buffer to read the data into.
/// The byte offset in at which to begin writing data read from the stream.
/// The maximum number of bytes to read.
/// An optional asynchronous callback, to be called when the read is complete.
/// A user-provided object that distinguishes this particular asynchronous read request from other requests.
/// An object that represents the asynchronous read, which could still be pending.
///
/// is .
///
/// or is negative.
/// Attempted an asynchronous read past the end of the stream.
/// The buffer length minus is less than .
/// The current stream does not support the read operation.
// 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;
}
/// Waits for the pending asynchronous read operation to complete. (Consider using instead.)
/// The reference to the pending asynchronous request to wait for.
/// 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.
///
/// is .
/// This object was not created by calling on this class.
// 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 LastSyncCompletedReadTask(int val)
{
return null;
}
/// 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.
/// The buffer to write the data into.
/// The byte offset in at which to begin writing data from the stream.
/// The maximum number of bytes to read.
/// The token to monitor for cancellation requests.
/// A task that represents the asynchronous read operation. The value of the 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.
///
/// is .
///
/// or is negative.
/// The sum of and is larger than the buffer length.
/// The stream does not support reading.
/// The stream has been disposed.
/// The stream is currently in use by a previous read operation.
// Token: 0x06001737 RID: 5943 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6001737")]
[Address(RVA = "0x2888510", Offset = "0x2887310", VA = "0x182888510", Slot = "21")]
public override Task 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 ReadFromUnderlyingStreamAsync(byte[] array, int offset, int count, CancellationToken cancellationToken, int bytesAlreadySatisfied, Task semaphoreLockTask, bool useApmPattern)
{
return null;
}
/// Reads a byte from the underlying stream and returns the byte cast to an , or returns -1 if reading from the end of the stream.
/// The byte cast to an , or -1 if reading from the end of the stream.
/// An I/O error occurs, such as the stream being closed.
/// The stream does not support reading.
/// Methods were called after the stream was closed.
// 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)
{
}
/// Copies bytes to the buffered stream and advances the current position within the buffered stream by the number of bytes written.
/// The byte array from which to copy bytes to the current buffered stream.
/// The offset in the buffer at which to begin copying bytes to the current buffered stream.
/// The number of bytes to be written to the current buffered stream.
/// Length of minus is less than .
///
/// is .
///
/// or is negative.
/// The stream is closed or .
/// The stream does not support writing.
/// Methods were called after the stream was closed.
// 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)
{
}
/// Begins an asynchronous write operation. (Consider using instead.)
/// The buffer containing data to write to the current stream.
/// The zero-based byte offset in at which to begin copying bytes to the current stream.
/// The maximum number of bytes to write.
/// The method to be called when the asynchronous write operation is completed.
/// A user-provided object that distinguishes this particular asynchronous write request from other requests.
/// An object that references the asynchronous write which could still be pending.
///
/// length minus is less than .
///
/// is .
///
/// or is negative.
/// The stream does not support writing.
// 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;
}
/// Ends an asynchronous write operation and blocks until the I/O operation is complete. (Consider using instead.)
/// The pending asynchronous request.
///
/// is .
/// This object was not created by calling on this class.
// 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)
{
}
/// 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.
/// The buffer to write data from.
/// The zero-based byte offset in from which to begin copying bytes to the stream.
/// The maximum number of bytes to write.
/// The token to monitor for cancellation requests.
/// A task that represents the asynchronous write operation.
///
/// is .
///
/// or is negative.
/// The sum of and is larger than the buffer length.
/// The stream does not support writing.
/// The stream has been disposed.
/// The stream is currently in use by a previous write operation.
// 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;
}
/// Writes a byte to the current position in the buffered stream.
/// A byte to write to the stream.
/// The stream does not support writing.
///
/// is .
/// Methods were called after the stream was closed.
// 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)
{
}
/// Sets the position within the current buffered stream.
/// A byte offset relative to .
/// A value of type indicating the reference point from which to obtain the new position.
/// The new position within the current buffered stream.
/// The stream is not open or is .
/// The stream does not support seeking.
/// Methods were called after the stream was closed.
// 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;
}
/// Sets the length of the buffered stream.
/// An integer indicating the desired length of the current buffered stream in bytes.
///
/// is negative.
/// The stream is not open or is .
/// The stream does not support both writing and seeking.
/// Methods were called after the stream was closed.
// 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 _lastSyncCompletedReadTask;
}
}