using System;
using System.Runtime.InteropServices;
using System.Threading;
using System.Threading.Tasks;
using Cpp2IlInjected;
namespace System.IO
{
/// Provides access to unmanaged blocks of memory from managed code.
// Token: 0x020002A9 RID: 681
[Token(Token = "0x20002A9")]
public class UnmanagedMemoryStream : Stream
{
/// Initializes a new instance of the class.
/// The user does not have the required permission.
// Token: 0x060018FF RID: 6399 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60018FF")]
[Address(RVA = "0x26123A0", Offset = "0x26111A0", VA = "0x1826123A0")]
protected UnmanagedMemoryStream()
{
}
/// Initializes a new instance of the class using the specified location and memory length.
/// A pointer to an unmanaged memory location.
/// The length of the memory to use.
/// The user does not have the required permission.
/// The value is .
/// The value is less than zero.
/// -or-
/// The is large enough to cause an overflow.
// Token: 0x06001900 RID: 6400 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001900")]
[Address(RVA = "0x26124A0", Offset = "0x26112A0", VA = "0x1826124A0")]
[CLSCompliant(false)]
public unsafe UnmanagedMemoryStream(byte* pointer, long length)
{
}
// Token: 0x06001901 RID: 6401 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001901")]
[Address(RVA = "0x2612400", Offset = "0x2611200", VA = "0x182612400")]
internal unsafe UnmanagedMemoryStream(byte* pointer, long length, long capacity, FileAccess access, bool skipSecurityCheck)
{
}
// Token: 0x06001902 RID: 6402 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001902")]
[Address(RVA = "0x2610CF0", Offset = "0x260FAF0", VA = "0x182610CF0")]
internal unsafe void Initialize(byte* pointer, long length, long capacity, FileAccess access, bool skipSecurityCheck)
{
}
/// Gets a value indicating whether a stream supports reading.
///
/// if the object was created by a constructor with an parameter that did not include reading the stream and if the stream is closed; otherwise, .
// Token: 0x170002FA RID: 762
// (get) Token: 0x06001903 RID: 6403 RVA: 0x000108A8 File Offset: 0x0000EAA8
[Token(Token = "0x170002FA")]
public override bool CanRead
{
[Token(Token = "0x6001903")]
[Address(RVA = "0x2612540", Offset = "0x2611340", VA = "0x182612540", Slot = "7")]
get
{
return default(bool);
}
}
/// Gets a value indicating whether a stream supports seeking.
///
/// if the stream is closed; otherwise, .
// Token: 0x170002FB RID: 763
// (get) Token: 0x06001904 RID: 6404 RVA: 0x000108C0 File Offset: 0x0000EAC0
[Token(Token = "0x170002FB")]
public override bool CanSeek
{
[Token(Token = "0x6001904")]
[Address(RVA = "0xDF7080", Offset = "0xDF5E80", VA = "0x180DF7080", Slot = "8")]
get
{
return default(bool);
}
}
/// Gets a value indicating whether a stream supports writing.
///
/// if the object was created by a constructor with an parameter value that supports writing or was created by a constructor that had no parameters, or if the stream is closed; otherwise, .
// Token: 0x170002FC RID: 764
// (get) Token: 0x06001905 RID: 6405 RVA: 0x000108D8 File Offset: 0x0000EAD8
[Token(Token = "0x170002FC")]
public override bool CanWrite
{
[Token(Token = "0x6001905")]
[Address(RVA = "0x2612550", Offset = "0x2611350", VA = "0x182612550", Slot = "9")]
get
{
return default(bool);
}
}
/// Releases the unmanaged resources used by the and optionally releases the managed resources.
///
/// to release both managed and unmanaged resources; to release only unmanaged resources.
// Token: 0x06001906 RID: 6406 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001906")]
[Address(RVA = "0x2610BB0", Offset = "0x260F9B0", VA = "0x182610BB0", Slot = "16")]
protected override void Dispose(bool disposing)
{
}
/// Overrides the method so that no action is performed.
/// The stream is closed.
// Token: 0x06001907 RID: 6407 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001907")]
[Address(RVA = "0x2610CD0", Offset = "0x260FAD0", VA = "0x182610CD0", Slot = "17")]
public override void Flush()
{
}
/// Overrides the method so that the operation is cancelled if specified, but no other action is performed.
/// Available starting in .NET Framework 4.6
/// The token to monitor for cancellation requests. The default value is .
/// A task that represents the asynchronous flush operation.
// Token: 0x06001908 RID: 6408 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6001908")]
[Address(RVA = "0x2610BD0", Offset = "0x260F9D0", VA = "0x182610BD0", Slot = "18")]
[ComVisible(false)]
public override Task FlushAsync(CancellationToken cancellationToken)
{
return null;
}
/// Gets the length of the data in a stream.
/// The length of the data in the stream.
/// The stream is closed.
// Token: 0x170002FD RID: 765
// (get) Token: 0x06001909 RID: 6409 RVA: 0x000108F0 File Offset: 0x0000EAF0
[Token(Token = "0x170002FD")]
public override long Length
{
[Token(Token = "0x6001909")]
[Address(RVA = "0x2612570", Offset = "0x2611370", VA = "0x182612570", Slot = "10")]
get
{
return 0L;
}
}
/// Gets or sets the current position in a stream.
/// The current position in the stream.
/// The stream is closed.
/// The position is set to a value that is less than zero, or the position is larger than or results in overflow when added to the current pointer.
// Token: 0x170002FE RID: 766
// (get) Token: 0x0600190A RID: 6410 RVA: 0x00010908 File Offset: 0x0000EB08
// (set) Token: 0x0600190B RID: 6411 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x170002FE")]
public override long Position
{
[Token(Token = "0x600190A")]
[Address(RVA = "0x2612680", Offset = "0x2611480", VA = "0x182612680", Slot = "11")]
get
{
return 0L;
}
[Token(Token = "0x600190B")]
[Address(RVA = "0x26126C0", Offset = "0x26114C0", VA = "0x1826126C0", Slot = "12")]
set
{
}
}
/// Gets or sets a byte pointer to a stream based on the current position in the stream.
/// A byte pointer.
/// The current position is larger than the capacity of the stream.
/// The position is being set is not a valid position in the current stream.
/// The pointer is being set to a lower value than the starting position of the stream.
/// The stream was initialized for use with a . The property is valid only for streams that are initialized with a pointer.
// Token: 0x170002FF RID: 767
// (get) Token: 0x0600190C RID: 6412 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x170002FF")]
[CLSCompliant(false)]
public unsafe byte* PositionPointer
{
[Token(Token = "0x600190C")]
[Address(RVA = "0x26125A0", Offset = "0x26113A0", VA = "0x1826125A0")]
get
{
return null;
}
}
/// Reads the specified number of bytes into the specified array.
/// When this method returns, contains the specified byte array with the values between and ( + - 1) replaced by the bytes read from the current source. This parameter is passed uninitialized.
/// The zero-based byte offset in at which to begin storing the data read from the current stream.
/// The maximum number of bytes to read from the current stream.
/// The total number of bytes read into the buffer. This can be less than the number of bytes requested if that many bytes are not currently available, or zero (0) if the end of the stream has been reached.
/// The stream is closed.
/// The underlying memory does not support reading.
/// -or-
/// The property is set to .
/// The parameter is set to .
/// The parameter is less than zero.
/// -or-
/// The parameter is less than zero.
/// The length of the buffer array minus the parameter is less than the parameter.
// Token: 0x0600190D RID: 6413 RVA: 0x00010920 File Offset: 0x0000EB20
[Token(Token = "0x600190D")]
[Address(RVA = "0x2611360", Offset = "0x2610160", VA = "0x182611360", Slot = "27")]
public override int Read([In] [Out] byte[] buffer, int offset, int count)
{
return 0;
}
/// Asynchronously reads the specified number of bytes into the specified array.
/// Available starting in .NET Framework 4.6
/// 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.
// Token: 0x0600190E RID: 6414 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600190E")]
[Address(RVA = "0x2610F30", Offset = "0x260FD30", VA = "0x182610F30", Slot = "21")]
[ComVisible(false)]
public override Task ReadAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken)
{
return null;
}
/// Reads a byte from a stream and advances the position within the stream by one byte, or returns -1 if at the end of the stream.
/// The unsigned byte cast to an object, or -1 if at the end of the stream.
/// The stream is closed.
/// The underlying memory does not support reading.
/// -or-
/// The current position is at the end of the stream.
// Token: 0x0600190F RID: 6415 RVA: 0x00010938 File Offset: 0x0000EB38
[Token(Token = "0x600190F")]
[Address(RVA = "0x26111C0", Offset = "0x260FFC0", VA = "0x1826111C0", Slot = "28")]
public override int ReadByte()
{
return 0;
}
/// Sets the current position of the current stream to the given value.
/// The point relative to origin to begin seeking from.
/// Specifies the beginning, the end, or the current position as a reference point for origin, using a value of type .
/// The new position in the stream.
/// An attempt was made to seek before the beginning of the stream.
/// The value is larger than the maximum size of the stream.
///
/// is invalid.
/// The stream is closed.
// Token: 0x06001910 RID: 6416 RVA: 0x00010950 File Offset: 0x0000EB50
[Token(Token = "0x6001910")]
[Address(RVA = "0x26116E0", Offset = "0x26104E0", VA = "0x1826116E0", Slot = "25")]
public override long Seek(long offset, SeekOrigin loc)
{
return 0L;
}
/// Sets the length of a stream to a specified value.
/// The length of the stream.
/// An I/O error has occurred.
/// The stream is closed.
/// The underlying memory does not support writing.
/// -or-
/// An attempt is made to write to the stream and the property is .
/// The specified exceeds the capacity of the stream.
/// -or-
/// The specified is negative.
// Token: 0x06001911 RID: 6417 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001911")]
[Address(RVA = "0x2611890", Offset = "0x2610690", VA = "0x182611890", Slot = "26")]
public override void SetLength(long value)
{
}
/// Writes a block of bytes to the current stream using data from a buffer.
/// The byte array from which to copy bytes to the current stream.
/// The offset in the buffer at which to begin copying bytes to the current stream.
/// The number of bytes to write to the current stream.
/// The stream is closed.
/// The underlying memory does not support writing.
/// -or-
/// An attempt is made to write to the stream and the property is .
/// -or-
/// The value is greater than the capacity of the stream.
/// -or-
/// The position is at the end of the stream capacity.
/// An I/O error occurs.
/// One of the specified parameters is less than zero.
/// The parameter minus the length of the parameter is less than the parameter.
/// The parameter is .
// Token: 0x06001912 RID: 6418 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001912")]
[Address(RVA = "0x2611F40", Offset = "0x2610D40", VA = "0x182611F40", 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.
/// Available starting in .NET Framework 4.6
/// 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.
// Token: 0x06001913 RID: 6419 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6001913")]
[Address(RVA = "0x2611A50", Offset = "0x2610850", VA = "0x182611A50", Slot = "24")]
[ComVisible(false)]
public override Task WriteAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken)
{
return null;
}
/// Writes a byte to the current position in the file stream.
/// A byte value written to the stream.
/// The stream is closed.
/// The underlying memory does not support writing.
/// -or-
/// An attempt is made to write to the stream and the property is .
/// -or-
/// The current position is at the end of the capacity of the stream.
/// The supplied causes the stream exceed its maximum capacity.
// Token: 0x06001914 RID: 6420 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001914")]
[Address(RVA = "0x2611CB0", Offset = "0x2610AB0", VA = "0x182611CB0", Slot = "30")]
public override void WriteByte(byte value)
{
}
// Token: 0x04000D43 RID: 3395
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
[Token(Token = "0x4000D43")]
private SafeBuffer _buffer;
// Token: 0x04000D44 RID: 3396
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
[Token(Token = "0x4000D44")]
private unsafe byte* _mem;
// Token: 0x04000D45 RID: 3397
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
[Token(Token = "0x4000D45")]
private long _length;
// Token: 0x04000D46 RID: 3398
[global::Cpp2IlInjected.FieldOffset(Offset = "0x40")]
[Token(Token = "0x4000D46")]
private long _capacity;
// Token: 0x04000D47 RID: 3399
[global::Cpp2IlInjected.FieldOffset(Offset = "0x48")]
[Token(Token = "0x4000D47")]
private long _position;
// Token: 0x04000D48 RID: 3400
[global::Cpp2IlInjected.FieldOffset(Offset = "0x50")]
[Token(Token = "0x4000D48")]
private long _offset;
// Token: 0x04000D49 RID: 3401
[global::Cpp2IlInjected.FieldOffset(Offset = "0x58")]
[Token(Token = "0x4000D49")]
private FileAccess _access;
// Token: 0x04000D4A RID: 3402
[global::Cpp2IlInjected.FieldOffset(Offset = "0x5C")]
[Token(Token = "0x4000D4A")]
internal bool _isOpen;
// Token: 0x04000D4B RID: 3403
[global::Cpp2IlInjected.FieldOffset(Offset = "0x60")]
[Token(Token = "0x4000D4B")]
[NonSerialized]
private Task _lastReadTask;
}
}