using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.IO
{
/// Represents a reader that can read a sequential series of characters.
// Token: 0x020002A8 RID: 680
[Token(Token = "0x20002A8")]
[ComVisible(true)]
[Serializable]
public abstract class TextReader : MarshalByRefObject, IDisposable
{
/// Initializes a new instance of the class.
// Token: 0x060018E7 RID: 6375 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60018E7")]
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
protected TextReader()
{
}
/// Closes the and releases any system resources associated with the .
// Token: 0x060018E8 RID: 6376 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60018E8")]
[Address(RVA = "0xCCF730", Offset = "0xCCE730", VA = "0x180CCF730", Slot = "7")]
public virtual void Close()
{
}
/// Releases all resources used by the object.
// Token: 0x060018E9 RID: 6377 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60018E9")]
[Address(RVA = "0xCCF7A0", Offset = "0xCCE7A0", VA = "0x180CCF7A0", Slot = "6")]
public void Dispose()
{
}
/// 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: 0x060018EA RID: 6378 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60018EA")]
[Address(RVA = "0x4242D0", Offset = "0x4232D0", VA = "0x1804242D0", Slot = "8")]
protected virtual void Dispose(bool disposing)
{
}
/// Reads the next character without changing the state of the reader or the character source. Returns the next available character without actually reading it from the reader.
/// An integer representing the next character to be read, or -1 if no more characters are available or the reader does not support seeking.
/// The is closed.
/// An I/O error occurs.
// Token: 0x060018EB RID: 6379 RVA: 0x00010B48 File Offset: 0x0000ED48
[Token(Token = "0x60018EB")]
[Address(RVA = "0x716A60", Offset = "0x715A60", VA = "0x180716A60", Slot = "9")]
public virtual int Peek()
{
return 0;
}
/// Reads the next character from the text reader and advances the character position by one character.
/// The next character from the text reader, or -1 if no more characters are available. The default implementation returns -1.
/// The is closed.
/// An I/O error occurs.
// Token: 0x060018EC RID: 6380 RVA: 0x00010B60 File Offset: 0x0000ED60
[Token(Token = "0x60018EC")]
[Address(RVA = "0x716A60", Offset = "0x715A60", VA = "0x180716A60", Slot = "10")]
public virtual int Read()
{
return 0;
}
/// Reads a specified maximum number of characters from the current reader and writes the data to a buffer, beginning at the specified index.
/// When this method returns, contains the specified character array with the values between and ( + - 1) replaced by the characters read from the current source.
/// The position in at which to begin writing.
/// The maximum number of characters to read. If the end of the reader is reached before the specified number of characters is read into the buffer, the method returns.
/// The number of characters that have been read. The number will be less than or equal to , depending on whether the data is available within the reader. This method returns 0 (zero) if it is called when no more characters are left to read.
///
/// is .
/// The buffer length minus is less than .
///
/// or is negative.
/// The is closed.
/// An I/O error occurs.
// Token: 0x060018ED RID: 6381 RVA: 0x00010B78 File Offset: 0x0000ED78
[Token(Token = "0x60018ED")]
[Address(RVA = "0xCCFA20", Offset = "0xCCEA20", VA = "0x180CCFA20", Slot = "11")]
public virtual int Read([In] [Out] char[] buffer, int index, int count)
{
return 0;
}
/// Reads all characters from the current position to the end of the text reader and returns them as one string.
/// A string that contains all characters from the current position to the end of the text reader.
/// An I/O error occurs.
/// The is closed.
/// There is insufficient memory to allocate a buffer for the returned string.
/// The number of characters in the next line is larger than
// Token: 0x060018EE RID: 6382 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60018EE")]
[Address(RVA = "0xCCF930", Offset = "0xCCE930", VA = "0x180CCF930", Slot = "12")]
public virtual string ReadToEnd()
{
return null;
}
/// Reads a line of characters from the text reader and returns the data as a string.
/// The next line from the reader, or if all characters have been read.
/// An I/O error occurs.
/// There is insufficient memory to allocate a buffer for the returned string.
/// The is closed.
/// The number of characters in the next line is larger than
// Token: 0x060018EF RID: 6383 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60018EF")]
[Address(RVA = "0xCCF810", Offset = "0xCCE810", VA = "0x180CCF810", Slot = "13")]
public virtual string ReadLine()
{
return null;
}
/// Creates a thread-safe wrapper around the specified .
/// The to synchronize.
/// A thread-safe .
///
/// is .
// Token: 0x060018F0 RID: 6384 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60018F0")]
[Address(RVA = "0xCCFC00", Offset = "0xCCEC00", VA = "0x180CCFC00")]
public static TextReader Synchronized(TextReader reader)
{
return null;
}
// Token: 0x04000D3C RID: 3388
[Token(Token = "0x4000D3C")]
[NonSerialized]
private static Func