Files
niko 8fc35183db a
2026-04-11 22:19:20 +02:00

123 lines
6.4 KiB
C#

using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.IO
{
/// <summary>Implements a <see cref="T:System.IO.TextReader" /> that reads from a string.</summary>
// Token: 0x0200029F RID: 671
[Token(Token = "0x200029F")]
[ComVisible(true)]
[Serializable]
public class StringReader : TextReader
{
/// <summary>Initializes a new instance of the <see cref="T:System.IO.StringReader" /> class that reads from the specified string.</summary>
/// <param name="s">The string to which the <see cref="T:System.IO.StringReader" /> should be initialized.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="s" /> parameter is <see langword="null" />.</exception>
// Token: 0x06001895 RID: 6293 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001895")]
[Address(RVA = "0x260D900", Offset = "0x260C700", VA = "0x18260D900")]
public StringReader(string s)
{
}
/// <summary>Closes the <see cref="T:System.IO.StringReader" />.</summary>
// Token: 0x06001896 RID: 6294 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001896")]
[Address(RVA = "0x6A2590", Offset = "0x6A1390", VA = "0x1806A2590", Slot = "7")]
public override void Close()
{
}
/// <summary>Releases the unmanaged resources used by the <see cref="T:System.IO.StringReader" /> 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: 0x06001897 RID: 6295 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001897")]
[Address(RVA = "0x260D560", Offset = "0x260C360", VA = "0x18260D560", Slot = "8")]
protected override void Dispose(bool disposing)
{
}
/// <summary>Returns the next available character but does not consume it.</summary>
/// <returns>An integer representing the next character to be read, or -1 if no more characters are available or the stream does not support seeking.</returns>
/// <exception cref="T:System.ObjectDisposedException">The current reader is closed.</exception>
// Token: 0x06001898 RID: 6296 RVA: 0x000107A0 File Offset: 0x0000E9A0
[Token(Token = "0x6001898")]
[Address(RVA = "0x260D570", Offset = "0x260C370", VA = "0x18260D570", Slot = "9")]
public override int Peek()
{
return 0;
}
/// <summary>Reads the next character from the input string and advances the character position by one character.</summary>
/// <returns>The next character from the underlying string, or -1 if no more characters are available.</returns>
/// <exception cref="T:System.ObjectDisposedException">The current reader is closed.</exception>
// Token: 0x06001899 RID: 6297 RVA: 0x000107B8 File Offset: 0x0000E9B8
[Token(Token = "0x6001899")]
[Address(RVA = "0x260D6F0", Offset = "0x260C4F0", VA = "0x18260D6F0", Slot = "10")]
public override int Read()
{
return 0;
}
/// <summary>Reads a block of characters from the input string and advances the character position by <paramref name="count" />.</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 starting index in the buffer.</param>
/// <param name="count">The number of characters to read.</param>
/// <returns>The total number of characters read into the buffer. This can be less than the number of characters requested if that many characters are not currently available, or zero if the end of the underlying string has been reached.</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 current reader is closed.</exception>
// Token: 0x0600189A RID: 6298 RVA: 0x000107D0 File Offset: 0x0000E9D0
[Token(Token = "0x600189A")]
[Address(RVA = "0x260D730", Offset = "0x260C530", VA = "0x18260D730", Slot = "11")]
public override 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 string and returns them as a single string.</summary>
/// <returns>The content from the current position to the end of the underlying string.</returns>
/// <exception cref="T:System.OutOfMemoryException">There is insufficient memory to allocate a buffer for the returned string.</exception>
/// <exception cref="T:System.ObjectDisposedException">The current reader is closed.</exception>
// Token: 0x0600189B RID: 6299 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600189B")]
[Address(RVA = "0x260D6B0", Offset = "0x260C4B0", VA = "0x18260D6B0", Slot = "12")]
public override string ReadToEnd()
{
return null;
}
/// <summary>Reads a line of characters from the current string and returns the data as a string.</summary>
/// <returns>The next line from the current string, or <see langword="null" /> if the end of the string is reached.</returns>
/// <exception cref="T:System.ObjectDisposedException">The current reader is closed.</exception>
/// <exception cref="T:System.OutOfMemoryException">There is insufficient memory to allocate a buffer for the returned string.</exception>
// Token: 0x0600189C RID: 6300 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600189C")]
[Address(RVA = "0x260D5B0", Offset = "0x260C3B0", VA = "0x18260D5B0", Slot = "13")]
public override string ReadLine()
{
return null;
}
// Token: 0x04000D2C RID: 3372
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
[Token(Token = "0x4000D2C")]
private string _s;
// Token: 0x04000D2D RID: 3373
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
[Token(Token = "0x4000D2D")]
private int _pos;
// Token: 0x04000D2E RID: 3374
[global::Cpp2IlInjected.FieldOffset(Offset = "0x24")]
[Token(Token = "0x4000D2E")]
private int _length;
}
}