using System;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;
using Cpp2IlInjected;
namespace System.IO
{
/// Implements a that reads characters from a byte stream in a particular encoding.
// Token: 0x020002A3 RID: 675
[Token(Token = "0x20002A3")]
[ComVisible(true)]
[Serializable]
public class StreamReader : TextReader
{
// Token: 0x170002F2 RID: 754
// (get) Token: 0x0600188F RID: 6287 RVA: 0x00010998 File Offset: 0x0000EB98
[Token(Token = "0x170002F2")]
internal static int DefaultBufferSize
{
[Token(Token = "0x600188F")]
[Address(RVA = "0xCCB240", Offset = "0xCCA240", VA = "0x180CCB240")]
get
{
return 0;
}
}
// Token: 0x06001890 RID: 6288 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001890")]
[Address(RVA = "0xCC9760", Offset = "0xCC8760", VA = "0x180CC9760")]
private void CheckAsyncTaskInProgress()
{
}
// Token: 0x06001891 RID: 6289 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001891")]
[Address(RVA = "0xCCB1E0", Offset = "0xCCA1E0", VA = "0x180CCB1E0")]
internal StreamReader()
{
}
/// Initializes a new instance of the class for the specified stream.
/// The stream to be read.
///
/// does not support reading.
///
/// is .
// Token: 0x06001892 RID: 6290 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001892")]
[Address(RVA = "0xCCABB0", Offset = "0xCC9BB0", VA = "0x180CCABB0")]
public StreamReader(Stream stream)
{
}
/// Initializes a new instance of the class for the specified stream, with the specified byte order mark detection option.
/// The stream to be read.
/// Indicates whether to look for byte order marks at the beginning of the file.
///
/// does not support reading.
///
/// is .
// Token: 0x06001893 RID: 6291 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001893")]
[Address(RVA = "0xCCAC40", Offset = "0xCC9C40", VA = "0x180CCAC40")]
public StreamReader(Stream stream, bool detectEncodingFromByteOrderMarks)
{
}
/// Initializes a new instance of the class for the specified stream, with the specified character encoding.
/// The stream to be read.
/// The character encoding to use.
///
/// does not support reading.
///
/// or is .
// Token: 0x06001894 RID: 6292 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001894")]
[Address(RVA = "0xCCAF00", Offset = "0xCC9F00", VA = "0x180CCAF00")]
public StreamReader(Stream stream, Encoding encoding)
{
}
/// Initializes a new instance of the class for the specified stream, with the specified character encoding and byte order mark detection option.
/// The stream to be read.
/// The character encoding to use.
/// Indicates whether to look for byte order marks at the beginning of the file.
///
/// does not support reading.
///
/// or is .
// Token: 0x06001895 RID: 6293 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001895")]
[Address(RVA = "0xCCAA50", Offset = "0xCC9A50", VA = "0x180CCAA50")]
public StreamReader(Stream stream, Encoding encoding, bool detectEncodingFromByteOrderMarks)
{
}
/// Initializes a new instance of the class for the specified stream based on the specified character encoding, byte order mark detection option, and buffer size, and optionally leaves the stream open.
/// The stream to read.
/// The character encoding to use.
///
/// to look for byte order marks at the beginning of the file; otherwise, .
/// The minimum buffer size.
///
/// to leave the stream open after the object is disposed; otherwise, .
// Token: 0x06001896 RID: 6294 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001896")]
[Address(RVA = "0xCCACE0", Offset = "0xCC9CE0", VA = "0x180CCACE0")]
public StreamReader(Stream stream, Encoding encoding, bool detectEncodingFromByteOrderMarks, int bufferSize, bool leaveOpen)
{
}
/// Initializes a new instance of the class for the specified file name.
/// The complete file path to be read.
///
/// is an empty string ("").
///
/// is .
/// The file cannot be found.
/// The specified path is invalid, such as being on an unmapped drive.
///
/// includes an incorrect or invalid syntax for file name, directory name, or volume label.
// Token: 0x06001897 RID: 6295 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001897")]
[Address(RVA = "0xCCAE70", Offset = "0xCC9E70", VA = "0x180CCAE70")]
public StreamReader(string path)
{
}
/// Initializes a new instance of the class for the specified file name, with the specified byte order mark detection option.
/// The complete file path to be read.
/// Indicates whether to look for byte order marks at the beginning of the file.
///
/// is an empty string ("").
///
/// is .
/// The file cannot be found.
/// The specified path is invalid, such as being on an unmapped drive.
///
/// includes an incorrect or invalid syntax for file name, directory name, or volume label.
// Token: 0x06001898 RID: 6296 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001898")]
[Address(RVA = "0xCCA9B0", Offset = "0xCC99B0", VA = "0x180CCA9B0")]
public StreamReader(string path, bool detectEncodingFromByteOrderMarks)
{
}
/// Initializes a new instance of the class for the specified file name, with the specified character encoding.
/// The complete file path to be read.
/// The character encoding to use.
///
/// is an empty string ("").
///
/// or is .
/// The file cannot be found.
/// The specified path is invalid, such as being on an unmapped drive.
///
/// includes an incorrect or invalid syntax for file name, directory name, or volume label.
// Token: 0x06001899 RID: 6297 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001899")]
[Address(RVA = "0xCCAB20", Offset = "0xCC9B20", VA = "0x180CCAB20")]
public StreamReader(string path, Encoding encoding)
{
}
/// Initializes a new instance of the class for the specified file name, with the specified character encoding, byte order mark detection option, and buffer size.
/// The complete file path to be read.
/// The character encoding to use.
/// Indicates whether to look for byte order marks at the beginning of the file.
/// The minimum buffer size, in number of 16-bit characters.
///
/// is an empty string ("").
///
/// or is .
/// The file cannot be found.
/// The specified path is invalid, such as being on an unmapped drive.
///
/// includes an incorrect or invalid syntax for file name, directory name, or volume label.
///
/// is less than or equal to zero.
// Token: 0x0600189A RID: 6298 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600189A")]
[Address(RVA = "0xCCAAF0", Offset = "0xCC9AF0", VA = "0x180CCAAF0")]
public StreamReader(string path, Encoding encoding, bool detectEncodingFromByteOrderMarks, int bufferSize)
{
}
// Token: 0x0600189B RID: 6299 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600189B")]
[Address(RVA = "0xCCAF90", Offset = "0xCC9F90", VA = "0x180CCAF90")]
internal StreamReader(string path, Encoding encoding, bool detectEncodingFromByteOrderMarks, int bufferSize, bool checkHost)
{
}
// Token: 0x0600189C RID: 6300 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600189C")]
[Address(RVA = "0xCC9C40", Offset = "0xCC8C40", VA = "0x180CC9C40")]
private void Init(Stream stream, Encoding encoding, bool detectEncodingFromByteOrderMarks, int bufferSize, bool leaveOpen)
{
}
// Token: 0x0600189D RID: 6301 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600189D")]
[Address(RVA = "0xCC9D50", Offset = "0xCC8D50", VA = "0x180CC9D50")]
internal void Init(Stream stream)
{
}
/// Closes the object and the underlying stream, and releases any system resources associated with the reader.
// Token: 0x0600189E RID: 6302 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600189E")]
[Address(RVA = "0xCC97F0", Offset = "0xCC87F0", VA = "0x180CC97F0", Slot = "7")]
public override void Close()
{
}
/// Closes the underlying stream, 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: 0x0600189F RID: 6303 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600189F")]
[Address(RVA = "0xCC9B80", Offset = "0xCC8B80", VA = "0x180CC9B80", Slot = "8")]
protected override void Dispose(bool disposing)
{
}
/// Gets the current character encoding that the current object is using.
/// The current character encoding used by the current reader. The value can be different after the first call to any method of , since encoding autodetection is not done until the first call to a method.
// Token: 0x170002F3 RID: 755
// (get) Token: 0x060018A0 RID: 6304 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x170002F3")]
public virtual Encoding CurrentEncoding
{
[Token(Token = "0x60018A0")]
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0", Slot = "14")]
get
{
return null;
}
}
/// Returns the underlying stream.
/// The underlying stream.
// Token: 0x170002F4 RID: 756
// (get) Token: 0x060018A1 RID: 6305 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x170002F4")]
public virtual Stream BaseStream
{
[Token(Token = "0x60018A1")]
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0", Slot = "15")]
get
{
return null;
}
}
// Token: 0x170002F5 RID: 757
// (get) Token: 0x060018A2 RID: 6306 RVA: 0x000109B0 File Offset: 0x0000EBB0
[Token(Token = "0x170002F5")]
internal bool LeaveOpen
{
[Token(Token = "0x60018A2")]
[Address(RVA = "0xCCB2A0", Offset = "0xCCA2A0", VA = "0x180CCB2A0")]
get
{
return default(bool);
}
}
/// Gets a value that indicates whether the current stream position is at the end of the stream.
///
/// if the current stream position is at the end of the stream; otherwise .
/// The underlying stream has been disposed.
// Token: 0x170002F6 RID: 758
// (get) Token: 0x060018A3 RID: 6307 RVA: 0x000109C8 File Offset: 0x0000EBC8
[Token(Token = "0x170002F6")]
public bool EndOfStream
{
[Token(Token = "0x60018A3")]
[Address(RVA = "0xCCB250", Offset = "0xCCA250", VA = "0x180CCB250")]
get
{
return default(bool);
}
}
/// Returns the next available character but does not consume it.
/// An integer representing the next character to be read, or -1 if there are no characters to be read or if the stream does not support seeking.
/// An I/O error occurs.
// Token: 0x060018A4 RID: 6308 RVA: 0x000109E0 File Offset: 0x0000EBE0
[Token(Token = "0x60018A4")]
[Address(RVA = "0xCC9E70", Offset = "0xCC8E70", VA = "0x180CC9E70", Slot = "9")]
public override int Peek()
{
return 0;
}
// Token: 0x060018A5 RID: 6309 RVA: 0x000109F8 File Offset: 0x0000EBF8
[Token(Token = "0x60018A5")]
[Address(RVA = "0xCC9850", Offset = "0xCC8850", VA = "0x180CC9850")]
internal bool DataAvailable()
{
return default(bool);
}
/// Reads the next character from the input stream and advances the character position by one character.
/// The next character from the input stream represented as an object, or -1 if no more characters are available.
/// An I/O error occurs.
// Token: 0x060018A6 RID: 6310 RVA: 0x00010A10 File Offset: 0x0000EC10
[Token(Token = "0x60018A6")]
[Address(RVA = "0xCCA600", Offset = "0xCC9600", VA = "0x180CCA600", Slot = "10")]
public override int Read()
{
return 0;
}
/// Reads a specified maximum of characters from the current stream into a buffer, beginning at the specified index.
/// When this method returns, contains the specified character array with the values between and (index + count - 1) replaced by the characters read from the current source.
/// The index of at which to begin writing.
/// The maximum number of characters to read.
/// The number of characters that have been read, or 0 if at the end of the stream and no data was read. The number will be less than or equal to the parameter, depending on whether the data is available within the stream.
/// The buffer length minus is less than .
///
/// is .
///
/// or is negative.
/// An I/O error occurs, such as the stream is closed.
// Token: 0x060018A7 RID: 6311 RVA: 0x00010A28 File Offset: 0x0000EC28
[Token(Token = "0x60018A7")]
[Address(RVA = "0xCCA690", Offset = "0xCC9690", VA = "0x180CCA690", Slot = "11")]
public override int Read([In] [Out] char[] buffer, int index, int count)
{
return 0;
}
/// Reads all characters from the current position to the end of the stream.
/// The rest of the stream as a string, from the current position to the end. If the current position is at the end of the stream, returns an empty string ("").
/// There is insufficient memory to allocate a buffer for the returned string.
/// An I/O error occurs.
// Token: 0x060018A8 RID: 6312 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60018A8")]
[Address(RVA = "0xCCA510", Offset = "0xCC9510", VA = "0x180CCA510", Slot = "12")]
public override string ReadToEnd()
{
return null;
}
// Token: 0x060018A9 RID: 6313 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60018A9")]
[Address(RVA = "0xCC9810", Offset = "0xCC8810", VA = "0x180CC9810")]
private void CompressBuffer(int n)
{
}
// Token: 0x060018AA RID: 6314 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60018AA")]
[Address(RVA = "0xCC9860", Offset = "0xCC8860", VA = "0x180CC9860")]
private void DetectEncoding()
{
}
// Token: 0x060018AB RID: 6315 RVA: 0x00010A40 File Offset: 0x0000EC40
[Token(Token = "0x60018AB")]
[Address(RVA = "0xCC9D60", Offset = "0xCC8D60", VA = "0x180CC9D60")]
private bool IsPreamble()
{
return default(bool);
}
// Token: 0x060018AC RID: 6316 RVA: 0x00010A58 File Offset: 0x0000EC58
[Token(Token = "0x60018AC")]
[Address(RVA = "0xCCA150", Offset = "0xCC9150", VA = "0x180CCA150", Slot = "16")]
internal virtual int ReadBuffer()
{
return 0;
}
// Token: 0x060018AD RID: 6317 RVA: 0x00010A70 File Offset: 0x0000EC70
[Token(Token = "0x60018AD")]
[Address(RVA = "0xCC9F00", Offset = "0xCC8F00", VA = "0x180CC9F00")]
private int ReadBuffer(char[] userBuffer, int userOffset, int desiredChars, out bool readToUserBuffer)
{
return 0;
}
/// Reads a line of characters from the current stream and returns the data as a string.
/// The next line from the input stream, or if the end of the input stream is reached.
/// There is insufficient memory to allocate a buffer for the returned string.
/// An I/O error occurs.
// Token: 0x060018AE RID: 6318 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60018AE")]
[Address(RVA = "0xCCA300", Offset = "0xCC9300", VA = "0x180CCA300", Slot = "13")]
public override string ReadLine()
{
return null;
}
/// A object around an empty stream.
// Token: 0x04000D12 RID: 3346
[Token(Token = "0x4000D12")]
public new static readonly StreamReader Null;
// Token: 0x04000D13 RID: 3347
[Token(Token = "0x4000D13")]
private const int DefaultFileStreamBufferSize = 4096;
// Token: 0x04000D14 RID: 3348
[Token(Token = "0x4000D14")]
private const int MinBufferSize = 128;
// Token: 0x04000D15 RID: 3349
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
[Token(Token = "0x4000D15")]
private Stream stream;
// Token: 0x04000D16 RID: 3350
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
[Token(Token = "0x4000D16")]
private Encoding encoding;
// Token: 0x04000D17 RID: 3351
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
[Token(Token = "0x4000D17")]
private Decoder decoder;
// Token: 0x04000D18 RID: 3352
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
[Token(Token = "0x4000D18")]
private byte[] byteBuffer;
// Token: 0x04000D19 RID: 3353
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
[Token(Token = "0x4000D19")]
private char[] charBuffer;
// Token: 0x04000D1A RID: 3354
[global::Cpp2IlInjected.FieldOffset(Offset = "0x40")]
[Token(Token = "0x4000D1A")]
private byte[] _preamble;
// Token: 0x04000D1B RID: 3355
[global::Cpp2IlInjected.FieldOffset(Offset = "0x48")]
[Token(Token = "0x4000D1B")]
private int charPos;
// Token: 0x04000D1C RID: 3356
[global::Cpp2IlInjected.FieldOffset(Offset = "0x4C")]
[Token(Token = "0x4000D1C")]
private int charLen;
// Token: 0x04000D1D RID: 3357
[global::Cpp2IlInjected.FieldOffset(Offset = "0x50")]
[Token(Token = "0x4000D1D")]
private int byteLen;
// Token: 0x04000D1E RID: 3358
[global::Cpp2IlInjected.FieldOffset(Offset = "0x54")]
[Token(Token = "0x4000D1E")]
private int bytePos;
// Token: 0x04000D1F RID: 3359
[global::Cpp2IlInjected.FieldOffset(Offset = "0x58")]
[Token(Token = "0x4000D1F")]
private int _maxCharsPerBuffer;
// Token: 0x04000D20 RID: 3360
[global::Cpp2IlInjected.FieldOffset(Offset = "0x5C")]
[Token(Token = "0x4000D20")]
private bool _detectEncoding;
// Token: 0x04000D21 RID: 3361
[global::Cpp2IlInjected.FieldOffset(Offset = "0x5D")]
[Token(Token = "0x4000D21")]
private bool _checkPreamble;
// Token: 0x04000D22 RID: 3362
[global::Cpp2IlInjected.FieldOffset(Offset = "0x5E")]
[Token(Token = "0x4000D22")]
private bool _isBlocked;
// Token: 0x04000D23 RID: 3363
[global::Cpp2IlInjected.FieldOffset(Offset = "0x5F")]
[Token(Token = "0x4000D23")]
private bool _closable;
// Token: 0x04000D24 RID: 3364
[global::Cpp2IlInjected.FieldOffset(Offset = "0x60")]
[Token(Token = "0x4000D24")]
[NonSerialized]
private Task _asyncReadTask;
// Token: 0x020002A4 RID: 676
[Token(Token = "0x20002A4")]
private class NullStreamReader : StreamReader
{
// Token: 0x060018B0 RID: 6320 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60018B0")]
[Address(RVA = "0xCC40E0", Offset = "0xCC30E0", VA = "0x180CC40E0")]
internal NullStreamReader()
{
}
// Token: 0x170002F7 RID: 759
// (get) Token: 0x060018B1 RID: 6321 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x170002F7")]
public override Stream BaseStream
{
[Token(Token = "0x60018B1")]
[Address(RVA = "0xCC41B0", Offset = "0xCC31B0", VA = "0x180CC41B0", Slot = "15")]
get
{
return null;
}
}
// Token: 0x170002F8 RID: 760
// (get) Token: 0x060018B2 RID: 6322 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x170002F8")]
public override Encoding CurrentEncoding
{
[Token(Token = "0x60018B2")]
[Address(RVA = "0xCC4210", Offset = "0xCC3210", VA = "0x180CC4210", Slot = "14")]
get
{
return null;
}
}
// Token: 0x060018B3 RID: 6323 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60018B3")]
[Address(RVA = "0x4242D0", Offset = "0x4232D0", VA = "0x1804242D0", Slot = "8")]
protected override void Dispose(bool disposing)
{
}
// Token: 0x060018B4 RID: 6324 RVA: 0x00010A88 File Offset: 0x0000EC88
[Token(Token = "0x60018B4")]
[Address(RVA = "0x716A60", Offset = "0x715A60", VA = "0x180716A60", Slot = "9")]
public override int Peek()
{
return 0;
}
// Token: 0x060018B5 RID: 6325 RVA: 0x00010AA0 File Offset: 0x0000ECA0
[Token(Token = "0x60018B5")]
[Address(RVA = "0x716A60", Offset = "0x715A60", VA = "0x180716A60", Slot = "10")]
public override int Read()
{
return 0;
}
// Token: 0x060018B6 RID: 6326 RVA: 0x00010AB8 File Offset: 0x0000ECB8
[Token(Token = "0x60018B6")]
[Address(RVA = "0x4242C0", Offset = "0x4232C0", VA = "0x1804242C0", Slot = "11")]
public override int Read(char[] buffer, int index, int count)
{
return 0;
}
// Token: 0x060018B7 RID: 6327 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60018B7")]
[Address(RVA = "0x4242C0", Offset = "0x4232C0", VA = "0x1804242C0", Slot = "13")]
public override string ReadLine()
{
return null;
}
// Token: 0x060018B8 RID: 6328 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60018B8")]
[Address(RVA = "0xCC40A0", Offset = "0xCC30A0", VA = "0x180CC40A0", Slot = "12")]
public override string ReadToEnd()
{
return null;
}
// Token: 0x060018B9 RID: 6329 RVA: 0x00010AD0 File Offset: 0x0000ECD0
[Token(Token = "0x60018B9")]
[Address(RVA = "0x4242C0", Offset = "0x4232C0", VA = "0x1804242C0", Slot = "16")]
internal override int ReadBuffer()
{
return 0;
}
}
}
}