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: 0x02000283 RID: 643
[Token(Token = "0x2000283")]
[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: 0x06001758 RID: 5976 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001758")]
[Address(RVA = "0x2BA7F00", Offset = "0x2BA6F00", VA = "0x182BA7F00")]
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: 0x06001759 RID: 5977 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001759")]
[Address(RVA = "0x2BA7D40", Offset = "0x2BA6D40", VA = "0x182BA7D40")]
public BufferedStream(Stream stream, int bufferSize)
{
}
// Token: 0x0600175A RID: 5978 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600175A")]
[Address(RVA = "0x2BA5BC0", Offset = "0x2BA4BC0", VA = "0x182BA5BC0")]
private void EnsureNotClosed()
{
}
// Token: 0x0600175B RID: 5979 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600175B")]
[Address(RVA = "0x2BA5B40", Offset = "0x2BA4B40", VA = "0x182BA5B40")]
private void EnsureCanSeek()
{
}
// Token: 0x0600175C RID: 5980 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600175C")]
[Address(RVA = "0x2BA5B00", Offset = "0x2BA4B00", VA = "0x182BA5B00")]
private void EnsureCanRead()
{
}
// Token: 0x0600175D RID: 5981 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600175D")]
[Address(RVA = "0x2BA5B80", Offset = "0x2BA4B80", VA = "0x182BA5B80")]
private void EnsureCanWrite()
{
}
// Token: 0x0600175E RID: 5982 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600175E")]
[Address(RVA = "0x2BA5A50", Offset = "0x2BA4A50", VA = "0x182BA5A50")]
private void EnsureBeginEndAwaitableAllocated()
{
}
// Token: 0x0600175F RID: 5983 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600175F")]
[Address(RVA = "0x2BA5BD0", Offset = "0x2BA4BD0", VA = "0x182BA5BD0")]
private void EnsureShadowBufferAllocated()
{
}
// Token: 0x06001760 RID: 5984 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001760")]
[Address(RVA = "0x2BA5AB0", Offset = "0x2BA4AB0", VA = "0x182BA5AB0")]
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: 0x170002C0 RID: 704
// (get) Token: 0x06001761 RID: 5985 RVA: 0x00010428 File Offset: 0x0000E628
[Token(Token = "0x170002C0")]
public override bool CanRead
{
[Token(Token = "0x6001761")]
[Address(RVA = "0x2BA7F10", Offset = "0x2BA6F10", VA = "0x182BA7F10", 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: 0x170002C1 RID: 705
// (get) Token: 0x06001762 RID: 5986 RVA: 0x00010440 File Offset: 0x0000E640
[Token(Token = "0x170002C1")]
public override bool CanWrite
{
[Token(Token = "0x6001762")]
[Address(RVA = "0x2BA7F50", Offset = "0x2BA6F50", VA = "0x182BA7F50", 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: 0x170002C2 RID: 706
// (get) Token: 0x06001763 RID: 5987 RVA: 0x00010458 File Offset: 0x0000E658
[Token(Token = "0x170002C2")]
public override bool CanSeek
{
[Token(Token = "0x6001763")]
[Address(RVA = "0x2BA7F30", Offset = "0x2BA6F30", VA = "0x182BA7F30", 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: 0x170002C3 RID: 707
// (get) Token: 0x06001764 RID: 5988 RVA: 0x00010470 File Offset: 0x0000E670
[Token(Token = "0x170002C3")]
public override long Length
{
[Token(Token = "0x6001764")]
[Address(RVA = "0x2BA7F70", Offset = "0x2BA6F70", VA = "0x182BA7F70", 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: 0x170002C4 RID: 708
// (get) Token: 0x06001765 RID: 5989 RVA: 0x00010488 File Offset: 0x0000E688
// (set) Token: 0x06001766 RID: 5990 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x170002C4")]
public override long Position
{
[Token(Token = "0x6001765")]
[Address(RVA = "0x2BA8000", Offset = "0x2BA7000", VA = "0x182BA8000", Slot = "11")]
get
{
return 0L;
}
[Token(Token = "0x6001766")]
[Address(RVA = "0x2BA8080", Offset = "0x2BA7080", VA = "0x182BA8080", Slot = "12")]
set
{
}
}
// Token: 0x06001767 RID: 5991 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001767")]
[Address(RVA = "0x2BA5800", Offset = "0x2BA4800", VA = "0x182BA5800", 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: 0x06001768 RID: 5992 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001768")]
[Address(RVA = "0x2BA6130", Offset = "0x2BA5130", VA = "0x182BA6130", 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: 0x06001769 RID: 5993 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6001769")]
[Address(RVA = "0x2BA5DB0", Offset = "0x2BA4DB0", VA = "0x182BA5DB0", Slot = "18")]
public override Task FlushAsync(CancellationToken cancellationToken)
{
return null;
}
// Token: 0x0600176A RID: 5994 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600176A")]
[Address(RVA = "0x2BA5C90", Offset = "0x2BA4C90", VA = "0x182BA5C90")]
private static Task FlushAsyncInternal(CancellationToken cancellationToken, BufferedStream _this, Stream stream, int writePos, int readPos, int readLen)
{
return null;
}
// Token: 0x0600176B RID: 5995 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600176B")]
[Address(RVA = "0x2BA5F90", Offset = "0x2BA4F90", VA = "0x182BA5F90")]
private void FlushRead()
{
}
// Token: 0x0600176C RID: 5996 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600176C")]
[Address(RVA = "0x2BA5730", Offset = "0x2BA4730", VA = "0x182BA5730")]
private void ClearReadBufferBeforeWrite()
{
}
// Token: 0x0600176D RID: 5997 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600176D")]
[Address(RVA = "0x2BA60D0", Offset = "0x2BA50D0", VA = "0x182BA60D0")]
private void FlushWrite()
{
}
// Token: 0x0600176E RID: 5998 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600176E")]
[Address(RVA = "0x2BA5FE0", Offset = "0x2BA4FE0", VA = "0x182BA5FE0")]
private Task FlushWriteAsync(CancellationToken cancellationToken)
{
return null;
}
// Token: 0x0600176F RID: 5999 RVA: 0x000104A0 File Offset: 0x0000E6A0
[Token(Token = "0x600176F")]
[Address(RVA = "0x2BA6970", Offset = "0x2BA5970", VA = "0x182BA6970")]
private int ReadFromBuffer(byte[] array, int offset, int count)
{
return 0;
}
// Token: 0x06001770 RID: 6000 RVA: 0x000104B8 File Offset: 0x0000E6B8
[Token(Token = "0x6001770")]
[Address(RVA = "0x2BA69D0", Offset = "0x2BA59D0", VA = "0x182BA69D0")]
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: 0x06001771 RID: 6001 RVA: 0x000104D0 File Offset: 0x0000E6D0
[Token(Token = "0x6001771")]
[Address(RVA = "0x2BA6BE0", Offset = "0x2BA5BE0", VA = "0x182BA6BE0", 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: 0x06001772 RID: 6002 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6001772")]
[Address(RVA = "0x2BA4DD0", Offset = "0x2BA3DD0", VA = "0x182BA4DD0", Slot = "19")]
public override IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback callback, object state)
{
return null;
}
// Token: 0x06001773 RID: 6003 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6001773")]
[Address(RVA = "0x2BA4D00", Offset = "0x2BA3D00", VA = "0x182BA4D00")]
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: 0x06001774 RID: 6004 RVA: 0x000104E8 File Offset: 0x0000E6E8
[Token(Token = "0x6001774")]
[Address(RVA = "0x2BA5930", Offset = "0x2BA4930", VA = "0x182BA5930", Slot = "20")]
public override int EndRead(IAsyncResult asyncResult)
{
return 0;
}
// Token: 0x06001775 RID: 6005 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6001775")]
[Address(RVA = "0x2BA62E0", Offset = "0x2BA52E0", VA = "0x182BA62E0")]
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: 0x06001776 RID: 6006 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6001776")]
[Address(RVA = "0x2BA6380", Offset = "0x2BA5380", VA = "0x182BA6380", Slot = "21")]
public override Task ReadAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken)
{
return null;
}
// Token: 0x06001777 RID: 6007 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6001777")]
[Address(RVA = "0x2BA6A90", Offset = "0x2BA5A90", VA = "0x182BA6A90")]
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: 0x06001778 RID: 6008 RVA: 0x00010500 File Offset: 0x0000E700
[Token(Token = "0x6001778")]
[Address(RVA = "0x2BA6810", Offset = "0x2BA5810", VA = "0x182BA6810", Slot = "28")]
public override int ReadByte()
{
return 0;
}
// Token: 0x06001779 RID: 6009 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001779")]
[Address(RVA = "0x2BA7750", Offset = "0x2BA6750", VA = "0x182BA7750")]
private void WriteToBuffer(byte[] array, ref int offset, ref int count)
{
}
// Token: 0x0600177A RID: 6010 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600177A")]
[Address(RVA = "0x2BA76C0", Offset = "0x2BA66C0", VA = "0x182BA76C0")]
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: 0x0600177B RID: 6011 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600177B")]
[Address(RVA = "0x2BA7980", Offset = "0x2BA6980", VA = "0x182BA7980", 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: 0x0600177C RID: 6012 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600177C")]
[Address(RVA = "0x2BA52E0", Offset = "0x2BA42E0", VA = "0x182BA52E0", Slot = "22")]
public override IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback callback, object state)
{
return null;
}
// Token: 0x0600177D RID: 6013 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600177D")]
[Address(RVA = "0x2BA5220", Offset = "0x2BA4220", VA = "0x182BA5220")]
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: 0x0600177E RID: 6014 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600177E")]
[Address(RVA = "0x2BA59C0", Offset = "0x2BA49C0", VA = "0x182BA59C0", 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: 0x0600177F RID: 6015 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600177F")]
[Address(RVA = "0x2BA7150", Offset = "0x2BA6150", VA = "0x182BA7150", Slot = "24")]
public override Task WriteAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken)
{
return null;
}
// Token: 0x06001780 RID: 6016 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6001780")]
[Address(RVA = "0x2BA7850", Offset = "0x2BA6850", VA = "0x182BA7850")]
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: 0x06001781 RID: 6017 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001781")]
[Address(RVA = "0x2BA7590", Offset = "0x2BA6590", VA = "0x182BA7590", 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: 0x06001782 RID: 6018 RVA: 0x00010518 File Offset: 0x0000E718
[Token(Token = "0x6001782")]
[Address(RVA = "0x2BA6EB0", Offset = "0x2BA5EB0", VA = "0x182BA6EB0", 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: 0x06001783 RID: 6019 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001783")]
[Address(RVA = "0x2BA7030", Offset = "0x2BA6030", VA = "0x182BA7030", Slot = "26")]
public override void SetLength(long value)
{
}
// Token: 0x04000C8D RID: 3213
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
[Token(Token = "0x4000C8D")]
private Stream _stream;
// Token: 0x04000C8E RID: 3214
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
[Token(Token = "0x4000C8E")]
private byte[] _buffer;
// Token: 0x04000C8F RID: 3215
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
[Token(Token = "0x4000C8F")]
private readonly int _bufferSize;
// Token: 0x04000C90 RID: 3216
[global::Cpp2IlInjected.FieldOffset(Offset = "0x3C")]
[Token(Token = "0x4000C90")]
private int _readPos;
// Token: 0x04000C91 RID: 3217
[global::Cpp2IlInjected.FieldOffset(Offset = "0x40")]
[Token(Token = "0x4000C91")]
private int _readLen;
// Token: 0x04000C92 RID: 3218
[global::Cpp2IlInjected.FieldOffset(Offset = "0x44")]
[Token(Token = "0x4000C92")]
private int _writePos;
// Token: 0x04000C93 RID: 3219
[global::Cpp2IlInjected.FieldOffset(Offset = "0x48")]
[Token(Token = "0x4000C93")]
private BeginEndAwaitableAdapter _beginEndAwaitable;
// Token: 0x04000C94 RID: 3220
[global::Cpp2IlInjected.FieldOffset(Offset = "0x50")]
[Token(Token = "0x4000C94")]
private Task _lastSyncCompletedReadTask;
}
}