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: 0x02000299 RID: 665
[Token(Token = "0x2000299")]
[ComVisible(true)]
[Serializable]
public class MemoryStream : Stream
{
/// Initializes a new instance of the class with an expandable capacity initialized to zero.
// Token: 0x0600180B RID: 6155 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600180B")]
[Address(RVA = "0xCC20D0", Offset = "0xCC10D0", VA = "0x180CC20D0")]
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: 0x0600180C RID: 6156 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600180C")]
[Address(RVA = "0xCC2000", Offset = "0xCC1000", VA = "0x180CC2000")]
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: 0x0600180D RID: 6157 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600180D")]
[Address(RVA = "0xCC1F30", Offset = "0xCC0F30", VA = "0x180CC1F30")]
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: 0x0600180E RID: 6158 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600180E")]
[Address(RVA = "0xCC1C70", Offset = "0xCC0C70", VA = "0x180CC1C70")]
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: 0x0600180F RID: 6159 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600180F")]
[Address(RVA = "0xCC1C40", Offset = "0xCC0C40", VA = "0x180CC1C40")]
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: 0x06001810 RID: 6160 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001810")]
[Address(RVA = "0xCC2150", Offset = "0xCC1150", VA = "0x180CC2150")]
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: 0x06001811 RID: 6161 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001811")]
[Address(RVA = "0xCC1D50", Offset = "0xCC0D50", VA = "0x180CC1D50")]
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: 0x170002DC RID: 732
// (get) Token: 0x06001812 RID: 6162 RVA: 0x00010668 File Offset: 0x0000E868
[Token(Token = "0x170002DC")]
public override bool CanRead
{
[Token(Token = "0x6001812")]
[Address(RVA = "0x6B4A60", Offset = "0x6B3A60", VA = "0x1806B4A60", Slot = "7")]
get
{
return default(bool);
}
}
/// Gets a value indicating whether the current stream supports seeking.
///
/// if the stream is open.
// Token: 0x170002DD RID: 733
// (get) Token: 0x06001813 RID: 6163 RVA: 0x00010680 File Offset: 0x0000E880
[Token(Token = "0x170002DD")]
public override bool CanSeek
{
[Token(Token = "0x6001813")]
[Address(RVA = "0x6B4A60", Offset = "0x6B3A60", VA = "0x1806B4A60", Slot = "8")]
get
{
return default(bool);
}
}
/// Gets a value indicating whether the current stream supports writing.
///
/// if the stream supports writing; otherwise, .
// Token: 0x170002DE RID: 734
// (get) Token: 0x06001814 RID: 6164 RVA: 0x00010698 File Offset: 0x0000E898
[Token(Token = "0x170002DE")]
public override bool CanWrite
{
[Token(Token = "0x6001814")]
[Address(RVA = "0x41CF10", Offset = "0x41BF10", VA = "0x18041CF10", Slot = "9")]
get
{
return default(bool);
}
}
// Token: 0x06001815 RID: 6165 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001815")]
[Address(RVA = "0xCC0860", Offset = "0xCBF860", VA = "0x180CC0860")]
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: 0x06001816 RID: 6166 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001816")]
[Address(RVA = "0xCC0730", Offset = "0xCBF730", VA = "0x180CC0730", Slot = "16")]
protected override void Dispose(bool disposing)
{
}
// Token: 0x06001817 RID: 6167 RVA: 0x000106B0 File Offset: 0x0000E8B0
[Token(Token = "0x6001817")]
[Address(RVA = "0xCC0790", Offset = "0xCBF790", VA = "0x180CC0790")]
private bool EnsureCapacity(int value)
{
return default(bool);
}
/// Overrides the method so that no action is performed.
// Token: 0x06001818 RID: 6168 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001818")]
[Address(RVA = "0x4242D0", Offset = "0x4232D0", VA = "0x1804242D0", 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: 0x06001819 RID: 6169 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6001819")]
[Address(RVA = "0xCC0890", Offset = "0xCBF890", VA = "0x180CC0890", 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: 0x0600181A RID: 6170 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600181A")]
[Address(RVA = "0xCC0990", Offset = "0xCBF990", VA = "0x180CC0990", Slot = "31")]
public virtual byte[] GetBuffer()
{
return null;
}
// Token: 0x0600181B RID: 6171 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600181B")]
[Address(RVA = "0x4157D0", Offset = "0x4147D0", VA = "0x1804157D0")]
internal byte[] InternalGetBuffer()
{
return null;
}
// Token: 0x0600181C RID: 6172 RVA: 0x000106C8 File Offset: 0x0000E8C8
[Token(Token = "0x600181C")]
[Address(RVA = "0xCC0A50", Offset = "0xCBFA50", VA = "0x180CC0A50")]
internal int InternalGetPosition()
{
return 0;
}
// Token: 0x0600181D RID: 6173 RVA: 0x000106E0 File Offset: 0x0000E8E0
[Token(Token = "0x600181D")]
[Address(RVA = "0xCC0A70", Offset = "0xCBFA70", VA = "0x180CC0A70")]
internal int InternalReadInt32()
{
return 0;
}
// Token: 0x0600181E RID: 6174 RVA: 0x000106F8 File Offset: 0x0000E8F8
[Token(Token = "0x600181E")]
[Address(RVA = "0xCC0A10", Offset = "0xCBFA10", VA = "0x180CC0A10")]
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: 0x170002DF RID: 735
// (get) Token: 0x0600181F RID: 6175 RVA: 0x00010710 File Offset: 0x0000E910
// (set) Token: 0x06001820 RID: 6176 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x170002DF")]
public virtual int Capacity
{
[Token(Token = "0x600181F")]
[Address(RVA = "0xCC2180", Offset = "0xCC1180", VA = "0x180CC2180", Slot = "32")]
get
{
return 0;
}
[Token(Token = "0x6001820")]
[Address(RVA = "0xCC21E0", Offset = "0xCC11E0", VA = "0x180CC21E0", Slot = "33")]
set
{
}
}
/// Gets the length of the stream in bytes.
/// The length of the stream in bytes.
/// The stream is closed.
// Token: 0x170002E0 RID: 736
// (get) Token: 0x06001821 RID: 6177 RVA: 0x00010728 File Offset: 0x0000E928
[Token(Token = "0x170002E0")]
public override long Length
{
[Token(Token = "0x6001821")]
[Address(RVA = "0xCC21A0", Offset = "0xCC11A0", VA = "0x180CC21A0", 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: 0x170002E1 RID: 737
// (get) Token: 0x06001822 RID: 6178 RVA: 0x00010740 File Offset: 0x0000E940
// (set) Token: 0x06001823 RID: 6179 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x170002E1")]
public override long Position
{
[Token(Token = "0x6001822")]
[Address(RVA = "0xCC21C0", Offset = "0xCC11C0", VA = "0x180CC21C0", Slot = "11")]
get
{
return 0L;
}
[Token(Token = "0x6001823")]
[Address(RVA = "0xCC2320", Offset = "0xCC1320", VA = "0x180CC2320", 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: 0x06001824 RID: 6180 RVA: 0x00010758 File Offset: 0x0000E958
[Token(Token = "0x6001824")]
[Address(RVA = "0xCC0EA0", Offset = "0xCBFEA0", VA = "0x180CC0EA0", 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: 0x06001825 RID: 6181 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6001825")]
[Address(RVA = "0xCC0B80", Offset = "0xCBFB80", VA = "0x180CC0B80", 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: 0x06001826 RID: 6182 RVA: 0x00010770 File Offset: 0x0000E970
[Token(Token = "0x6001826")]
[Address(RVA = "0xCC0E40", Offset = "0xCBFE40", VA = "0x180CC0E40", 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: 0x06001827 RID: 6183 RVA: 0x00010788 File Offset: 0x0000E988
[Token(Token = "0x6001827")]
[Address(RVA = "0xCC1100", Offset = "0xCC0100", VA = "0x180CC1100", 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: 0x06001828 RID: 6184 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001828")]
[Address(RVA = "0xCC1310", Offset = "0xCC0310", VA = "0x180CC1310", 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: 0x06001829 RID: 6185 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6001829")]
[Address(RVA = "0xCC1450", Offset = "0xCC0450", VA = "0x180CC1450", 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: 0x0600182A RID: 6186 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600182A")]
[Address(RVA = "0xCC1940", Offset = "0xCC0940", VA = "0x180CC1940", 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: 0x0600182B RID: 6187 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600182B")]
[Address(RVA = "0xCC1500", Offset = "0xCC0500", VA = "0x180CC1500", 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: 0x0600182C RID: 6188 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600182C")]
[Address(RVA = "0xCC1790", Offset = "0xCC0790", VA = "0x180CC1790", 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: 0x0600182D RID: 6189 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600182D")]
[Address(RVA = "0xCC1880", Offset = "0xCC0880", VA = "0x180CC1880", Slot = "35")]
public virtual void WriteTo(Stream stream)
{
}
// Token: 0x04000CE4 RID: 3300
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
[Token(Token = "0x4000CE4")]
private byte[] _buffer;
// Token: 0x04000CE5 RID: 3301
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
[Token(Token = "0x4000CE5")]
private int _origin;
// Token: 0x04000CE6 RID: 3302
[global::Cpp2IlInjected.FieldOffset(Offset = "0x34")]
[Token(Token = "0x4000CE6")]
private int _position;
// Token: 0x04000CE7 RID: 3303
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
[Token(Token = "0x4000CE7")]
private int _length;
// Token: 0x04000CE8 RID: 3304
[global::Cpp2IlInjected.FieldOffset(Offset = "0x3C")]
[Token(Token = "0x4000CE8")]
private int _capacity;
// Token: 0x04000CE9 RID: 3305
[global::Cpp2IlInjected.FieldOffset(Offset = "0x40")]
[Token(Token = "0x4000CE9")]
private bool _expandable;
// Token: 0x04000CEA RID: 3306
[global::Cpp2IlInjected.FieldOffset(Offset = "0x41")]
[Token(Token = "0x4000CEA")]
private bool _writable;
// Token: 0x04000CEB RID: 3307
[global::Cpp2IlInjected.FieldOffset(Offset = "0x42")]
[Token(Token = "0x4000CEB")]
private bool _exposable;
// Token: 0x04000CEC RID: 3308
[global::Cpp2IlInjected.FieldOffset(Offset = "0x43")]
[Token(Token = "0x4000CEC")]
private bool _isOpen;
// Token: 0x04000CED RID: 3309
[global::Cpp2IlInjected.FieldOffset(Offset = "0x48")]
[Token(Token = "0x4000CED")]
[NonSerialized]
private Task _lastReadTask;
}
}