using System;
using System.Runtime.InteropServices;
using System.Threading;
using System.Threading.Tasks;
using Cpp2IlInjected;
namespace System.IO
{
/// Creates a stream whose backing store is memory.
// Token: 0x02000292 RID: 658
[Token(Token = "0x2000292")]
[ComVisible(true)]
[Serializable]
public class MemoryStream : Stream
{
/// Initializes a new instance of the class with an expandable capacity initialized to zero.
// Token: 0x060017CC RID: 6092 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60017CC")]
[Address(RVA = "0x293F240", Offset = "0x293E040", VA = "0x18293F240")]
public MemoryStream()
{
}
/// Initializes a new instance of the class with an expandable capacity initialized as specified.
/// The initial size of the internal array in bytes.
///
/// is negative.
// Token: 0x060017CD RID: 6093 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60017CD")]
[Address(RVA = "0x293F170", Offset = "0x293DF70", VA = "0x18293F170")]
public MemoryStream(int capacity)
{
}
/// Initializes a new non-resizable instance of the class based on the specified byte array.
/// The array of unsigned bytes from which to create the current stream.
///
/// is .
// Token: 0x060017CE RID: 6094 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60017CE")]
[Address(RVA = "0x293F0A0", Offset = "0x293DEA0", VA = "0x18293F0A0")]
public MemoryStream(byte[] buffer)
{
}
/// Initializes a new non-resizable instance of the class based on the specified byte array with the property set as specified.
/// The array of unsigned bytes from which to create this stream.
/// The setting of the property, which determines whether the stream supports writing.
///
/// is .
// Token: 0x060017CF RID: 6095 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60017CF")]
[Address(RVA = "0x293EDE0", Offset = "0x293DBE0", VA = "0x18293EDE0")]
public MemoryStream(byte[] buffer, bool writable)
{
}
/// Initializes a new non-resizable instance of the class based on the specified region (index) of a byte array.
/// The array of unsigned bytes from which to create this stream.
/// The index into at which the stream begins.
/// The length of the stream in bytes.
///
/// is .
///
/// or is less than zero.
/// The buffer length minus is less than .
// Token: 0x060017D0 RID: 6096 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60017D0")]
[Address(RVA = "0x293EDB0", Offset = "0x293DBB0", VA = "0x18293EDB0")]
public MemoryStream(byte[] buffer, int index, int count)
{
}
/// Initializes a new non-resizable instance of the class based on the specified region of a byte array, with the property set as specified.
/// The array of unsigned bytes from which to create this stream.
/// The index in at which the stream begins.
/// The length of the stream in bytes.
/// The setting of the property, which determines whether the stream supports writing.
///
/// is .
///
/// or are negative.
/// The buffer length minus is less than .
// Token: 0x060017D1 RID: 6097 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60017D1")]
[Address(RVA = "0x293F2C0", Offset = "0x293E0C0", VA = "0x18293F2C0")]
public MemoryStream(byte[] buffer, int index, int count, bool writable)
{
}
/// Initializes a new instance of the class based on the specified region of a byte array, with the property set as specified, and the ability to call set as specified.
/// The array of unsigned bytes from which to create this stream.
/// The index into at which the stream begins.
/// The length of the stream in bytes.
/// The setting of the property, which determines whether the stream supports writing.
///
/// to enable , which returns the unsigned byte array from which the stream was created; otherwise, .
///
/// is .
///
/// or is negative.
/// The buffer length minus is less than .
// Token: 0x060017D2 RID: 6098 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60017D2")]
[Address(RVA = "0x293EEC0", Offset = "0x293DCC0", VA = "0x18293EEC0")]
public MemoryStream(byte[] buffer, int index, int count, bool writable, bool publiclyVisible)
{
}
/// Gets a value indicating whether the current stream supports reading.
///
/// if the stream is open.
// Token: 0x170002D1 RID: 721
// (get) Token: 0x060017D3 RID: 6099 RVA: 0x00010308 File Offset: 0x0000E508
[Token(Token = "0x170002D1")]
public override bool CanRead
{
[Token(Token = "0x60017D3")]
[Address(RVA = "0x436580", Offset = "0x435380", VA = "0x180436580", Slot = "7")]
get
{
return default(bool);
}
}
/// Gets a value indicating whether the current stream supports seeking.
///
/// if the stream is open.
// Token: 0x170002D2 RID: 722
// (get) Token: 0x060017D4 RID: 6100 RVA: 0x00010320 File Offset: 0x0000E520
[Token(Token = "0x170002D2")]
public override bool CanSeek
{
[Token(Token = "0x60017D4")]
[Address(RVA = "0x436580", Offset = "0x435380", VA = "0x180436580", Slot = "8")]
get
{
return default(bool);
}
}
/// Gets a value indicating whether the current stream supports writing.
///
/// if the stream supports writing; otherwise, .
// Token: 0x170002D3 RID: 723
// (get) Token: 0x060017D5 RID: 6101 RVA: 0x00010338 File Offset: 0x0000E538
[Token(Token = "0x170002D3")]
public override bool CanWrite
{
[Token(Token = "0x60017D5")]
[Address(RVA = "0x4364E0", Offset = "0x4352E0", VA = "0x1804364E0", Slot = "9")]
get
{
return default(bool);
}
}
// Token: 0x060017D6 RID: 6102 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60017D6")]
[Address(RVA = "0x293D9F0", Offset = "0x293C7F0", VA = "0x18293D9F0")]
private void EnsureWriteable()
{
}
/// Releases the unmanaged resources used by the class and optionally releases the managed resources.
///
/// to release both managed and unmanaged resources; to release only unmanaged resources.
// Token: 0x060017D7 RID: 6103 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60017D7")]
[Address(RVA = "0x293D8C0", Offset = "0x293C6C0", VA = "0x18293D8C0", Slot = "16")]
protected override void Dispose(bool disposing)
{
}
// Token: 0x060017D8 RID: 6104 RVA: 0x00010350 File Offset: 0x0000E550
[Token(Token = "0x60017D8")]
[Address(RVA = "0x293D920", Offset = "0x293C720", VA = "0x18293D920")]
private bool EnsureCapacity(int value)
{
return default(bool);
}
/// Overrides the method so that no action is performed.
// Token: 0x060017D9 RID: 6105 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60017D9")]
[Address(RVA = "0x402080", Offset = "0x400E80", VA = "0x180402080", Slot = "17")]
public override void Flush()
{
}
/// Asynchronously clears all buffers for this stream, 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: 0x060017DA RID: 6106 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60017DA")]
[Address(RVA = "0x293DA20", Offset = "0x293C820", VA = "0x18293DA20", Slot = "18")]
[ComVisible(false)]
public override Task FlushAsync(CancellationToken cancellationToken)
{
return null;
}
/// Returns the array of unsigned bytes from which this stream was created.
/// The byte array from which this stream was created, or the underlying array if a byte array was not provided to the constructor during construction of the current instance.
/// The instance was not created with a publicly visible buffer.
// Token: 0x060017DB RID: 6107 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60017DB")]
[Address(RVA = "0x293DB20", Offset = "0x293C920", VA = "0x18293DB20", Slot = "31")]
public virtual byte[] GetBuffer()
{
return null;
}
// Token: 0x060017DC RID: 6108 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60017DC")]
[Address(RVA = "0x3F63E0", Offset = "0x3F51E0", VA = "0x1803F63E0")]
internal byte[] InternalGetBuffer()
{
return null;
}
// Token: 0x060017DD RID: 6109 RVA: 0x00010368 File Offset: 0x0000E568
[Token(Token = "0x60017DD")]
[Address(RVA = "0x293DBF0", Offset = "0x293C9F0", VA = "0x18293DBF0")]
internal int InternalGetPosition()
{
return 0;
}
// Token: 0x060017DE RID: 6110 RVA: 0x00010380 File Offset: 0x0000E580
[Token(Token = "0x60017DE")]
[Address(RVA = "0x293DC20", Offset = "0x293CA20", VA = "0x18293DC20")]
internal int InternalReadInt32()
{
return 0;
}
// Token: 0x060017DF RID: 6111 RVA: 0x00010398 File Offset: 0x0000E598
[Token(Token = "0x60017DF")]
[Address(RVA = "0x293DBA0", Offset = "0x293C9A0", VA = "0x18293DBA0")]
internal int InternalEmulateRead(int count)
{
return 0;
}
/// Gets or sets the number of bytes allocated for this stream.
/// The length of the usable portion of the buffer for the stream.
/// A capacity is set that is negative or less than the current length of the stream.
/// The current stream is closed.
///
/// is invoked on a stream whose capacity cannot be modified.
// Token: 0x170002D4 RID: 724
// (get) Token: 0x060017E0 RID: 6112 RVA: 0x000103B0 File Offset: 0x0000E5B0
// (set) Token: 0x060017E1 RID: 6113 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x170002D4")]
public virtual int Capacity
{
[Token(Token = "0x60017E0")]
[Address(RVA = "0x293F2F0", Offset = "0x293E0F0", VA = "0x18293F2F0", Slot = "32")]
get
{
return 0;
}
[Token(Token = "0x60017E1")]
[Address(RVA = "0x293F380", Offset = "0x293E180", VA = "0x18293F380", Slot = "33")]
set
{
}
}
/// Gets the length of the stream in bytes.
/// The length of the stream in bytes.
/// The stream is closed.
// Token: 0x170002D5 RID: 725
// (get) Token: 0x060017E2 RID: 6114 RVA: 0x000103C8 File Offset: 0x0000E5C8
[Token(Token = "0x170002D5")]
public override long Length
{
[Token(Token = "0x60017E2")]
[Address(RVA = "0x293F320", Offset = "0x293E120", VA = "0x18293F320", Slot = "10")]
get
{
return 0L;
}
}
/// Gets or sets the current position within the stream.
/// The current position within the stream.
/// The position is set to a negative value or a value greater than .
/// The stream is closed.
// Token: 0x170002D6 RID: 726
// (get) Token: 0x060017E3 RID: 6115 RVA: 0x000103E0 File Offset: 0x0000E5E0
// (set) Token: 0x060017E4 RID: 6116 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x170002D6")]
public override long Position
{
[Token(Token = "0x60017E3")]
[Address(RVA = "0x293F350", Offset = "0x293E150", VA = "0x18293F350", Slot = "11")]
get
{
return 0L;
}
[Token(Token = "0x60017E4")]
[Address(RVA = "0x293F4C0", Offset = "0x293E2C0", VA = "0x18293F4C0", Slot = "12")]
set
{
}
}
/// Reads a block of bytes from the current stream and writes the data to a buffer.
/// When this method returns, contains the specified byte array with the values between and ( + - 1) replaced by the characters read from the current stream.
/// The zero-based byte offset in at which to begin storing data from the current stream.
/// The maximum number of bytes to read.
/// The total number of bytes written into the buffer. This can be less than the number of bytes requested if that number of bytes are not currently available, or zero if the end of the stream is reached before any bytes are read.
///
/// is .
///
/// or is negative.
///
/// subtracted from the buffer length is less than .
/// The current stream instance is closed.
// Token: 0x060017E5 RID: 6117 RVA: 0x000103F8 File Offset: 0x0000E5F8
[Token(Token = "0x60017E5")]
[Address(RVA = "0x293E040", Offset = "0x293CE40", VA = "0x18293E040", Slot = "27")]
public override int Read([In] [Out] byte[] buffer, int offset, int count)
{
return 0;
}
/// 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. The default value is .
/// 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: 0x060017E6 RID: 6118 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60017E6")]
[Address(RVA = "0x293DD20", Offset = "0x293CB20", VA = "0x18293DD20", Slot = "21")]
[ComVisible(false)]
public override Task ReadAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken)
{
return null;
}
/// Reads a byte from the current stream.
/// The byte cast to a , or -1 if the end of the stream has been reached.
/// The current stream instance is closed.
// Token: 0x060017E7 RID: 6119 RVA: 0x00010410 File Offset: 0x0000E610
[Token(Token = "0x60017E7")]
[Address(RVA = "0x293DFE0", Offset = "0x293CDE0", VA = "0x18293DFE0", Slot = "28")]
public override int ReadByte()
{
return 0;
}
/// Sets the position within the current stream to the specified value.
/// The new position within the stream. This is relative to the parameter, and can be positive or negative.
/// A value of type , which acts as the seek reference point.
/// The new position within the stream, calculated by combining the initial reference point and the offset.
/// Seeking is attempted before the beginning of the stream.
///
/// is greater than .
/// There is an invalid .
/// -or-
/// caused an arithmetic overflow.
/// The current stream instance is closed.
// Token: 0x060017E8 RID: 6120 RVA: 0x00010428 File Offset: 0x0000E628
[Token(Token = "0x60017E8")]
[Address(RVA = "0x293E290", Offset = "0x293D090", VA = "0x18293E290", Slot = "25")]
public override long Seek(long offset, SeekOrigin loc)
{
return 0L;
}
/// Sets the length of the current stream to the specified value.
/// The value at which to set the length.
/// The current stream is not resizable and is larger than the current capacity.
/// -or-
/// The current stream does not support writing.
///
/// is negative or is greater than the maximum length of the , where the maximum length is( - origin), and origin is the index into the underlying buffer at which the stream starts.
// Token: 0x060017E9 RID: 6121 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60017E9")]
[Address(RVA = "0x293E4A0", Offset = "0x293D2A0", VA = "0x18293E4A0", Slot = "26")]
public override void SetLength(long value)
{
}
/// Writes the stream contents to a byte array, regardless of the property.
/// A new byte array.
// Token: 0x060017EA RID: 6122 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60017EA")]
[Address(RVA = "0x293E5E0", Offset = "0x293D3E0", VA = "0x18293E5E0", Slot = "34")]
public virtual byte[] ToArray()
{
return null;
}
/// Writes a block of bytes to the current stream using data read from a buffer.
/// The buffer to write data from.
/// The zero-based byte offset in at which to begin copying bytes to the current stream.
/// The maximum number of bytes to write.
///
/// is .
/// The stream does not support writing. For additional information see .
/// -or-
/// The current position is closer than bytes to the end of the stream, and the capacity cannot be modified.
///
/// subtracted from the buffer length is less than .
///
/// or are negative.
/// An I/O error occurs.
/// The current stream instance is closed.
// Token: 0x060017EB RID: 6123 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60017EB")]
[Address(RVA = "0x293EAC0", Offset = "0x293D8C0", VA = "0x18293EAC0", Slot = "29")]
public override void Write(byte[] buffer, int offset, int count)
{
}
/// 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. The default value is .
/// 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: 0x060017EC RID: 6124 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60017EC")]
[Address(RVA = "0x293E690", Offset = "0x293D490", VA = "0x18293E690", Slot = "24")]
[ComVisible(false)]
public override Task WriteAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken)
{
return null;
}
/// Writes a byte to the current stream at the current position.
/// The byte to write.
/// The stream does not support writing. For additional information see .
/// -or-
/// The current position is at the end of the stream, and the capacity cannot be modified.
/// The current stream is closed.
// Token: 0x060017ED RID: 6125 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60017ED")]
[Address(RVA = "0x293E920", Offset = "0x293D720", VA = "0x18293E920", Slot = "30")]
public override void WriteByte(byte value)
{
}
/// Writes the entire contents of this memory stream to another stream.
/// The stream to write this memory stream to.
///
/// is .
/// The current or target stream is closed.
// Token: 0x060017EE RID: 6126 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60017EE")]
[Address(RVA = "0x293EA00", Offset = "0x293D800", VA = "0x18293EA00", Slot = "35")]
public virtual void WriteTo(Stream stream)
{
}
// Token: 0x04000CDA RID: 3290
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
[Token(Token = "0x4000CDA")]
private byte[] _buffer;
// Token: 0x04000CDB RID: 3291
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
[Token(Token = "0x4000CDB")]
private int _origin;
// Token: 0x04000CDC RID: 3292
[global::Cpp2IlInjected.FieldOffset(Offset = "0x34")]
[Token(Token = "0x4000CDC")]
private int _position;
// Token: 0x04000CDD RID: 3293
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
[Token(Token = "0x4000CDD")]
private int _length;
// Token: 0x04000CDE RID: 3294
[global::Cpp2IlInjected.FieldOffset(Offset = "0x3C")]
[Token(Token = "0x4000CDE")]
private int _capacity;
// Token: 0x04000CDF RID: 3295
[global::Cpp2IlInjected.FieldOffset(Offset = "0x40")]
[Token(Token = "0x4000CDF")]
private bool _expandable;
// Token: 0x04000CE0 RID: 3296
[global::Cpp2IlInjected.FieldOffset(Offset = "0x41")]
[Token(Token = "0x4000CE0")]
private bool _writable;
// Token: 0x04000CE1 RID: 3297
[global::Cpp2IlInjected.FieldOffset(Offset = "0x42")]
[Token(Token = "0x4000CE1")]
private bool _exposable;
// Token: 0x04000CE2 RID: 3298
[global::Cpp2IlInjected.FieldOffset(Offset = "0x43")]
[Token(Token = "0x4000CE2")]
private bool _isOpen;
// Token: 0x04000CE3 RID: 3299
[global::Cpp2IlInjected.FieldOffset(Offset = "0x48")]
[Token(Token = "0x4000CE3")]
[NonSerialized]
private Task _lastReadTask;
}
}