Files
Aug2021-Cpp2IL-Dump/mscorlib/System/IO/MemoryStream.cs
T
2026-04-10 22:50:51 +02:00

530 lines
28 KiB
C#

using System;
using System.Runtime.InteropServices;
using System.Threading;
using System.Threading.Tasks;
using Cpp2IlInjected;
namespace System.IO
{
/// <summary>Creates a stream whose backing store is memory.</summary>
// Token: 0x02000292 RID: 658
[Token(Token = "0x2000292")]
[ComVisible(true)]
[Serializable]
public class MemoryStream : Stream
{
/// <summary>Initializes a new instance of the <see cref="T:System.IO.MemoryStream" /> class with an expandable capacity initialized to zero.</summary>
// Token: 0x060017CC RID: 6092 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60017CC")]
[Address(RVA = "0x293F240", Offset = "0x293E040", VA = "0x18293F240")]
public MemoryStream()
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.IO.MemoryStream" /> class with an expandable capacity initialized as specified.</summary>
/// <param name="capacity">The initial size of the internal array in bytes.</param>
/// <exception cref="T:System.ArgumentOutOfRangeException">
/// <paramref name="capacity" /> is negative.</exception>
// Token: 0x060017CD RID: 6093 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60017CD")]
[Address(RVA = "0x293F170", Offset = "0x293DF70", VA = "0x18293F170")]
public MemoryStream(int capacity)
{
}
/// <summary>Initializes a new non-resizable instance of the <see cref="T:System.IO.MemoryStream" /> class based on the specified byte array.</summary>
/// <param name="buffer">The array of unsigned bytes from which to create the current stream.</param>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="buffer" /> is <see langword="null" />.</exception>
// Token: 0x060017CE RID: 6094 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60017CE")]
[Address(RVA = "0x293F0A0", Offset = "0x293DEA0", VA = "0x18293F0A0")]
public MemoryStream(byte[] buffer)
{
}
/// <summary>Initializes a new non-resizable instance of the <see cref="T:System.IO.MemoryStream" /> class based on the specified byte array with the <see cref="P:System.IO.MemoryStream.CanWrite" /> property set as specified.</summary>
/// <param name="buffer">The array of unsigned bytes from which to create this stream.</param>
/// <param name="writable">The setting of the <see cref="P:System.IO.MemoryStream.CanWrite" /> property, which determines whether the stream supports writing.</param>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="buffer" /> is <see langword="null" />.</exception>
// 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)
{
}
/// <summary>Initializes a new non-resizable instance of the <see cref="T:System.IO.MemoryStream" /> class based on the specified region (index) of a byte array.</summary>
/// <param name="buffer">The array of unsigned bytes from which to create this stream.</param>
/// <param name="index">The index into <paramref name="buffer" /> at which the stream begins.</param>
/// <param name="count">The length of the stream in bytes.</param>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="buffer" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">
/// <paramref name="index" /> or <paramref name="count" /> is less than zero.</exception>
/// <exception cref="T:System.ArgumentException">The buffer length minus <paramref name="index" /> is less than <paramref name="count" />.</exception>
// 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)
{
}
/// <summary>Initializes a new non-resizable instance of the <see cref="T:System.IO.MemoryStream" /> class based on the specified region of a byte array, with the <see cref="P:System.IO.MemoryStream.CanWrite" /> property set as specified.</summary>
/// <param name="buffer">The array of unsigned bytes from which to create this stream.</param>
/// <param name="index">The index in <paramref name="buffer" /> at which the stream begins.</param>
/// <param name="count">The length of the stream in bytes.</param>
/// <param name="writable">The setting of the <see cref="P:System.IO.MemoryStream.CanWrite" /> property, which determines whether the stream supports writing.</param>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="buffer" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">
/// <paramref name="index" /> or <paramref name="count" /> are negative.</exception>
/// <exception cref="T:System.ArgumentException">The buffer length minus <paramref name="index" /> is less than <paramref name="count" />.</exception>
// 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)
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.IO.MemoryStream" /> class based on the specified region of a byte array, with the <see cref="P:System.IO.MemoryStream.CanWrite" /> property set as specified, and the ability to call <see cref="M:System.IO.MemoryStream.GetBuffer" /> set as specified.</summary>
/// <param name="buffer">The array of unsigned bytes from which to create this stream.</param>
/// <param name="index">The index into <paramref name="buffer" /> at which the stream begins.</param>
/// <param name="count">The length of the stream in bytes.</param>
/// <param name="writable">The setting of the <see cref="P:System.IO.MemoryStream.CanWrite" /> property, which determines whether the stream supports writing.</param>
/// <param name="publiclyVisible">
/// <see langword="true" /> to enable <see cref="M:System.IO.MemoryStream.GetBuffer" />, which returns the unsigned byte array from which the stream was created; otherwise, <see langword="false" />.</param>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="buffer" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">
/// <paramref name="index" /> or <paramref name="count" /> is negative.</exception>
/// <exception cref="T:System.ArgumentException">The buffer length minus <paramref name="index" /> is less than <paramref name="count" />.</exception>
// 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)
{
}
/// <summary>Gets a value indicating whether the current stream supports reading.</summary>
/// <returns>
/// <see langword="true" /> if the stream is open.</returns>
// 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);
}
}
/// <summary>Gets a value indicating whether the current stream supports seeking.</summary>
/// <returns>
/// <see langword="true" /> if the stream is open.</returns>
// 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);
}
}
/// <summary>Gets a value indicating whether the current stream supports writing.</summary>
/// <returns>
/// <see langword="true" /> if the stream supports writing; otherwise, <see langword="false" />.</returns>
// 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()
{
}
/// <summary>Releases the unmanaged resources used by the <see cref="T:System.IO.MemoryStream" /> class and optionally releases the managed resources.</summary>
/// <param name="disposing">
/// <see langword="true" /> to release both managed and unmanaged resources; <see langword="false" /> to release only unmanaged resources.</param>
// 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);
}
/// <summary>Overrides the <see cref="M:System.IO.Stream.Flush" /> method so that no action is performed.</summary>
// 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()
{
}
/// <summary>Asynchronously clears all buffers for this stream, 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: 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;
}
/// <summary>Returns the array of unsigned bytes from which this stream was created.</summary>
/// <returns>The byte array from which this stream was created, or the underlying array if a byte array was not provided to the <see cref="T:System.IO.MemoryStream" /> constructor during construction of the current instance.</returns>
/// <exception cref="T:System.UnauthorizedAccessException">The <see langword="MemoryStream" /> instance was not created with a publicly visible buffer.</exception>
// 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;
}
/// <summary>Gets or sets the number of bytes allocated for this stream.</summary>
/// <returns>The length of the usable portion of the buffer for the stream.</returns>
/// <exception cref="T:System.ArgumentOutOfRangeException">A capacity is set that is negative or less than the current length of the stream.</exception>
/// <exception cref="T:System.ObjectDisposedException">The current stream is closed.</exception>
/// <exception cref="T:System.NotSupportedException">
/// <see langword="set" /> is invoked on a stream whose capacity cannot be modified.</exception>
// 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
{
}
}
/// <summary>Gets the length of the stream in bytes.</summary>
/// <returns>The length of the stream in bytes.</returns>
/// <exception cref="T:System.ObjectDisposedException">The stream is closed.</exception>
// 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;
}
}
/// <summary>Gets or sets the current position within the stream.</summary>
/// <returns>The current position within the stream.</returns>
/// <exception cref="T:System.ArgumentOutOfRangeException">The position is set to a negative value or a value greater than <see cref="F:System.Int32.MaxValue" />.</exception>
/// <exception cref="T:System.ObjectDisposedException">The stream is closed.</exception>
// 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
{
}
}
/// <summary>Reads a block of bytes from the current stream and writes the data to a buffer.</summary>
/// <param name="buffer">When this method returns, contains the specified byte array with the values between <paramref name="offset" /> and (<paramref name="offset" /> + <paramref name="count" /> - 1) replaced by the characters read from the current stream.</param>
/// <param name="offset">The zero-based byte offset in <paramref name="buffer" /> at which to begin storing data from the current stream.</param>
/// <param name="count">The maximum number of bytes to read.</param>
/// <returns>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.</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">
/// <paramref name="offset" /> subtracted from the buffer length is less than <paramref name="count" />.</exception>
/// <exception cref="T:System.ObjectDisposedException">The current stream instance is closed.</exception>
// 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;
}
/// <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. The default value is <see cref="P:System.Threading.CancellationToken.None" />.</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: 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<int> ReadAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken)
{
return null;
}
/// <summary>Reads a byte from the current stream.</summary>
/// <returns>The byte cast to a <see cref="T:System.Int32" />, or -1 if the end of the stream has been reached.</returns>
/// <exception cref="T:System.ObjectDisposedException">The current stream instance is closed.</exception>
// 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;
}
/// <summary>Sets the position within the current stream to the specified value.</summary>
/// <param name="offset">The new position within the stream. This is relative to the <paramref name="loc" /> parameter, and can be positive or negative.</param>
/// <param name="loc">A value of type <see cref="T:System.IO.SeekOrigin" />, which acts as the seek reference point.</param>
/// <returns>The new position within the stream, calculated by combining the initial reference point and the offset.</returns>
/// <exception cref="T:System.IO.IOException">Seeking is attempted before the beginning of the stream.</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">
/// <paramref name="offset" /> is greater than <see cref="F:System.Int32.MaxValue" />.</exception>
/// <exception cref="T:System.ArgumentException">There is an invalid <see cref="T:System.IO.SeekOrigin" />.
/// -or-
/// <paramref name="offset" /> caused an arithmetic overflow.</exception>
/// <exception cref="T:System.ObjectDisposedException">The current stream instance is closed.</exception>
// 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;
}
/// <summary>Sets the length of the current stream to the specified value.</summary>
/// <param name="value">The value at which to set the length.</param>
/// <exception cref="T:System.NotSupportedException">The current stream is not resizable and <paramref name="value" /> is larger than the current capacity.
/// -or-
/// The current stream does not support writing.</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">
/// <paramref name="value" /> is negative or is greater than the maximum length of the <see cref="T:System.IO.MemoryStream" />, where the maximum length is(<see cref="F:System.Int32.MaxValue" /> - origin), and origin is the index into the underlying buffer at which the stream starts.</exception>
// 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)
{
}
/// <summary>Writes the stream contents to a byte array, regardless of the <see cref="P:System.IO.MemoryStream.Position" /> property.</summary>
/// <returns>A new byte array.</returns>
// 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;
}
/// <summary>Writes a block of bytes to the current stream using data read from a buffer.</summary>
/// <param name="buffer">The buffer to write data from.</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>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="buffer" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.NotSupportedException">The stream does not support writing. For additional information see <see cref="P:System.IO.Stream.CanWrite" />.
/// -or-
/// The current position is closer than <paramref name="count" /> bytes to the end of the stream, and the capacity cannot be modified.</exception>
/// <exception cref="T:System.ArgumentException">
/// <paramref name="offset" /> subtracted from the buffer length is less than <paramref name="count" />.</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">
/// <paramref name="offset" /> or <paramref name="count" /> are negative.</exception>
/// <exception cref="T:System.IO.IOException">An I/O error occurs.</exception>
/// <exception cref="T:System.ObjectDisposedException">The current stream instance is closed.</exception>
// 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)
{
}
/// <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. The default value is <see cref="P:System.Threading.CancellationToken.None" />.</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: 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;
}
/// <summary>Writes a byte to the current stream at the current position.</summary>
/// <param name="value">The byte to write.</param>
/// <exception cref="T:System.NotSupportedException">The stream does not support writing. For additional information see <see cref="P:System.IO.Stream.CanWrite" />.
/// -or-
/// The current position is at the end of the stream, and the capacity cannot be modified.</exception>
/// <exception cref="T:System.ObjectDisposedException">The current stream is closed.</exception>
// 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)
{
}
/// <summary>Writes the entire contents of this memory stream to another stream.</summary>
/// <param name="stream">The stream to write this memory stream to.</param>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="stream" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.ObjectDisposedException">The current or target stream is closed.</exception>
// 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<int> _lastReadTask;
}
}