a
This commit is contained in:
@@ -0,0 +1,249 @@
|
||||
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: 0x020002A1 RID: 673
|
||||
[Token(Token = "0x20002A1")]
|
||||
[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: 0x060018A8 RID: 6312 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60018A8")]
|
||||
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
|
||||
protected TextReader()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Closes the <see cref="T:System.IO.TextReader" /> and releases any system resources associated with the <see langword="TextReader" />.</summary>
|
||||
// Token: 0x060018A9 RID: 6313 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60018A9")]
|
||||
[Address(RVA = "0x260E440", Offset = "0x260D240", VA = "0x18260E440", Slot = "7")]
|
||||
public virtual void Close()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Releases all resources used by the <see cref="T:System.IO.TextReader" /> object.</summary>
|
||||
// Token: 0x060018AA RID: 6314 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60018AA")]
|
||||
[Address(RVA = "0x260E4B0", Offset = "0x260D2B0", VA = "0x18260E4B0", 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: 0x060018AB RID: 6315 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60018AB")]
|
||||
[Address(RVA = "0x402080", Offset = "0x400E80", VA = "0x180402080", 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: 0x060018AC RID: 6316 RVA: 0x000107E8 File Offset: 0x0000E9E8
|
||||
[Token(Token = "0x60018AC")]
|
||||
[Address(RVA = "0x4F9EF0", Offset = "0x4F8CF0", VA = "0x1804F9EF0", 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: 0x060018AD RID: 6317 RVA: 0x00010800 File Offset: 0x0000EA00
|
||||
[Token(Token = "0x60018AD")]
|
||||
[Address(RVA = "0x4F9EF0", Offset = "0x4F8CF0", VA = "0x1804F9EF0", 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: 0x060018AE RID: 6318 RVA: 0x00010818 File Offset: 0x0000EA18
|
||||
[Token(Token = "0x60018AE")]
|
||||
[Address(RVA = "0x260E730", Offset = "0x260D530", VA = "0x18260E730", 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: 0x060018AF RID: 6319 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x60018AF")]
|
||||
[Address(RVA = "0x260E640", Offset = "0x260D440", VA = "0x18260E640", 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: 0x060018B0 RID: 6320 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x60018B0")]
|
||||
[Address(RVA = "0x260E520", Offset = "0x260D320", VA = "0x18260E520", 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: 0x060018B1 RID: 6321 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x60018B1")]
|
||||
[Address(RVA = "0x260E910", Offset = "0x260D710", VA = "0x18260E910")]
|
||||
public static TextReader Synchronized(TextReader reader)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x04000D32 RID: 3378
|
||||
[Token(Token = "0x4000D32")]
|
||||
[NonSerialized]
|
||||
private static Func<object, string> _ReadLineDelegate;
|
||||
|
||||
// Token: 0x04000D33 RID: 3379
|
||||
[Token(Token = "0x4000D33")]
|
||||
[NonSerialized]
|
||||
private static Func<object, int> _ReadDelegate;
|
||||
|
||||
/// <summary>Provides a <see langword="TextReader" /> with no data to read from.</summary>
|
||||
// Token: 0x04000D34 RID: 3380
|
||||
[Token(Token = "0x4000D34")]
|
||||
public static readonly TextReader Null;
|
||||
|
||||
// Token: 0x020002A2 RID: 674
|
||||
[Token(Token = "0x20002A2")]
|
||||
[Serializable]
|
||||
private sealed class NullTextReader : TextReader
|
||||
{
|
||||
// Token: 0x060018B3 RID: 6323 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60018B3")]
|
||||
[Address(RVA = "0x2602CD0", Offset = "0x2601AD0", VA = "0x182602CD0")]
|
||||
public NullTextReader()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x060018B4 RID: 6324 RVA: 0x00010830 File Offset: 0x0000EA30
|
||||
[Token(Token = "0x60018B4")]
|
||||
[Address(RVA = "0x43E630", Offset = "0x43D430", VA = "0x18043E630", Slot = "11")]
|
||||
public override int Read(char[] buffer, int index, int count)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
// Token: 0x060018B5 RID: 6325 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x60018B5")]
|
||||
[Address(RVA = "0x43E630", Offset = "0x43D430", VA = "0x18043E630", Slot = "13")]
|
||||
public override string ReadLine()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x020002A3 RID: 675
|
||||
[Token(Token = "0x20002A3")]
|
||||
[Serializable]
|
||||
internal sealed class SyncTextReader : TextReader
|
||||
{
|
||||
// Token: 0x060018B6 RID: 6326 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60018B6")]
|
||||
[Address(RVA = "0x260E130", Offset = "0x260CF30", VA = "0x18260E130")]
|
||||
internal SyncTextReader(TextReader t)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x060018B7 RID: 6327 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60018B7")]
|
||||
[Address(RVA = "0x260DFB0", Offset = "0x260CDB0", VA = "0x18260DFB0", Slot = "7")]
|
||||
public override void Close()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x060018B8 RID: 6328 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60018B8")]
|
||||
[Address(RVA = "0x260DFE0", Offset = "0x260CDE0", VA = "0x18260DFE0", Slot = "8")]
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x060018B9 RID: 6329 RVA: 0x00010848 File Offset: 0x0000EA48
|
||||
[Token(Token = "0x60018B9")]
|
||||
[Address(RVA = "0x260E040", Offset = "0x260CE40", VA = "0x18260E040", Slot = "9")]
|
||||
public override int Peek()
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
// Token: 0x060018BA RID: 6330 RVA: 0x00010860 File Offset: 0x0000EA60
|
||||
[Token(Token = "0x60018BA")]
|
||||
[Address(RVA = "0x260E100", Offset = "0x260CF00", VA = "0x18260E100", Slot = "10")]
|
||||
public override int Read()
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
// Token: 0x060018BB RID: 6331 RVA: 0x00010878 File Offset: 0x0000EA78
|
||||
[Token(Token = "0x60018BB")]
|
||||
[Address(RVA = "0x260E0D0", Offset = "0x260CED0", VA = "0x18260E0D0", Slot = "11")]
|
||||
public override int Read([In] [Out] char[] buffer, int index, int count)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
// Token: 0x060018BC RID: 6332 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x60018BC")]
|
||||
[Address(RVA = "0x260E070", Offset = "0x260CE70", VA = "0x18260E070", Slot = "13")]
|
||||
public override string ReadLine()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x060018BD RID: 6333 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x60018BD")]
|
||||
[Address(RVA = "0x260E0A0", Offset = "0x260CEA0", VA = "0x18260E0A0", Slot = "12")]
|
||||
public override string ReadToEnd()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x04000D35 RID: 3381
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4000D35")]
|
||||
internal TextReader _in;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user