Files
niko c12fbe3fc6 m
2026-04-12 16:51:38 +02:00

250 lines
12 KiB
C#

using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.IO
{
/// <summary>Represents a reader that can read a sequential series of characters.</summary>
// Token: 0x020002A8 RID: 680
[Token(Token = "0x20002A8")]
[ComVisible(true)]
[Serializable]
public abstract class TextReader : MarshalByRefObject, IDisposable
{
/// <summary>Initializes a new instance of the <see cref="T:System.IO.TextReader" /> class.</summary>
// Token: 0x060018E7 RID: 6375 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60018E7")]
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
protected TextReader()
{
}
/// <summary>Closes the <see cref="T:System.IO.TextReader" /> and releases any system resources associated with the <see langword="TextReader" />.</summary>
// 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()
{
}
/// <summary>Releases all resources used by the <see cref="T:System.IO.TextReader" /> object.</summary>
// Token: 0x060018E9 RID: 6377 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60018E9")]
[Address(RVA = "0xCCF7A0", Offset = "0xCCE7A0", VA = "0x180CCF7A0", Slot = "6")]
public void Dispose()
{
}
/// <summary>Releases the unmanaged resources used by the <see cref="T:System.IO.TextReader" /> 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: 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)
{
}
/// <summary>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.</summary>
/// <returns>An integer representing the next character to be read, or -1 if no more characters are available or the reader does not support seeking.</returns>
/// <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.IO.TextReader" /> is closed.</exception>
/// <exception cref="T:System.IO.IOException">An I/O error occurs.</exception>
// 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;
}
/// <summary>Reads the next character from the text reader and advances the character position by one character.</summary>
/// <returns>The next character from the text reader, or -1 if no more characters are available. The default implementation returns -1.</returns>
/// <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.IO.TextReader" /> is closed.</exception>
/// <exception cref="T:System.IO.IOException">An I/O error occurs.</exception>
// 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;
}
/// <summary>Reads a specified maximum number of characters from the current reader and writes the data to a buffer, beginning at the specified index.</summary>
/// <param name="buffer">When this method returns, contains the specified character array with the values between <paramref name="index" /> and (<paramref name="index" /> + <paramref name="count" /> - 1) replaced by the characters read from the current source.</param>
/// <param name="index">The position in <paramref name="buffer" /> at which to begin writing.</param>
/// <param name="count">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.</param>
/// <returns>The number of characters that have been read. The number will be less than or equal to <paramref name="count" />, 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.</returns>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="buffer" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentException">The buffer length minus <paramref name="index" /> is less than <paramref name="count" />.</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">
/// <paramref name="index" /> or <paramref name="count" /> is negative.</exception>
/// <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.IO.TextReader" /> is closed.</exception>
/// <exception cref="T:System.IO.IOException">An I/O error occurs.</exception>
// 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;
}
/// <summary>Reads all characters from the current position to the end of the text reader and returns them as one string.</summary>
/// <returns>A string that contains all characters from the current position to the end of the text reader.</returns>
/// <exception cref="T:System.IO.IOException">An I/O error occurs.</exception>
/// <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.IO.TextReader" /> is closed.</exception>
/// <exception cref="T:System.OutOfMemoryException">There is insufficient memory to allocate a buffer for the returned string.</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">The number of characters in the next line is larger than <see cref="F:System.Int32.MaxValue" /></exception>
// 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;
}
/// <summary>Reads a line of characters from the text reader and returns the data as a string.</summary>
/// <returns>The next line from the reader, or <see langword="null" /> if all characters have been read.</returns>
/// <exception cref="T:System.IO.IOException">An I/O error occurs.</exception>
/// <exception cref="T:System.OutOfMemoryException">There is insufficient memory to allocate a buffer for the returned string.</exception>
/// <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.IO.TextReader" /> is closed.</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">The number of characters in the next line is larger than <see cref="F:System.Int32.MaxValue" /></exception>
// 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;
}
/// <summary>Creates a thread-safe wrapper around the specified <see langword="TextReader" />.</summary>
/// <param name="reader">The <see langword="TextReader" /> to synchronize.</param>
/// <returns>A thread-safe <see cref="T:System.IO.TextReader" />.</returns>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="reader" /> is <see langword="null" />.</exception>
// 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<object, string> _ReadLineDelegate;
// Token: 0x04000D3D RID: 3389
[Token(Token = "0x4000D3D")]
[NonSerialized]
private static Func<object, int> _ReadDelegate;
/// <summary>Provides a <see langword="TextReader" /> with no data to read from.</summary>
// Token: 0x04000D3E RID: 3390
[Token(Token = "0x4000D3E")]
public static readonly TextReader Null;
// Token: 0x020002A9 RID: 681
[Token(Token = "0x20002A9")]
[Serializable]
private sealed class NullTextReader : TextReader
{
// Token: 0x060018F2 RID: 6386 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60018F2")]
[Address(RVA = "0xCC4670", Offset = "0xCC3670", VA = "0x180CC4670")]
public NullTextReader()
{
}
// Token: 0x060018F3 RID: 6387 RVA: 0x00010B90 File Offset: 0x0000ED90
[Token(Token = "0x60018F3")]
[Address(RVA = "0x4242C0", Offset = "0x4232C0", VA = "0x1804242C0", Slot = "11")]
public override int Read(char[] buffer, int index, int count)
{
return 0;
}
// Token: 0x060018F4 RID: 6388 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60018F4")]
[Address(RVA = "0x4242C0", Offset = "0x4232C0", VA = "0x1804242C0", Slot = "13")]
public override string ReadLine()
{
return null;
}
}
// Token: 0x020002AA RID: 682
[Token(Token = "0x20002AA")]
[Serializable]
internal sealed class SyncTextReader : TextReader
{
// Token: 0x060018F5 RID: 6389 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60018F5")]
[Address(RVA = "0xCCF210", Offset = "0xCCE210", VA = "0x180CCF210")]
internal SyncTextReader(TextReader t)
{
}
// Token: 0x060018F6 RID: 6390 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60018F6")]
[Address(RVA = "0xA1AC70", Offset = "0xA19C70", VA = "0x180A1AC70", Slot = "7")]
public override void Close()
{
}
// Token: 0x060018F7 RID: 6391 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60018F7")]
[Address(RVA = "0xCCF120", Offset = "0xCCE120", VA = "0x180CCF120", Slot = "8")]
protected override void Dispose(bool disposing)
{
}
// Token: 0x060018F8 RID: 6392 RVA: 0x00010BA8 File Offset: 0x0000EDA8
[Token(Token = "0x60018F8")]
[Address(RVA = "0xCCF180", Offset = "0xCCE180", VA = "0x180CCF180", Slot = "9")]
public override int Peek()
{
return 0;
}
// Token: 0x060018F9 RID: 6393 RVA: 0x00010BC0 File Offset: 0x0000EDC0
[Token(Token = "0x60018F9")]
[Address(RVA = "0xA1ACA0", Offset = "0xA19CA0", VA = "0x180A1ACA0", Slot = "10")]
public override int Read()
{
return 0;
}
// Token: 0x060018FA RID: 6394 RVA: 0x00010BD8 File Offset: 0x0000EDD8
[Token(Token = "0x60018FA")]
[Address(RVA = "0xCCF1E0", Offset = "0xCCE1E0", VA = "0x180CCF1E0", Slot = "11")]
public override int Read([In] [Out] char[] buffer, int index, int count)
{
return 0;
}
// Token: 0x060018FB RID: 6395 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60018FB")]
[Address(RVA = "0xA1AC40", Offset = "0xA19C40", VA = "0x180A1AC40", Slot = "13")]
public override string ReadLine()
{
return null;
}
// Token: 0x060018FC RID: 6396 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60018FC")]
[Address(RVA = "0xCCF1B0", Offset = "0xCCE1B0", VA = "0x180CCF1B0", Slot = "12")]
public override string ReadToEnd()
{
return null;
}
// Token: 0x04000D3F RID: 3391
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
[Token(Token = "0x4000D3F")]
internal TextReader _in;
}
}
}