150 lines
7.0 KiB
C#
150 lines
7.0 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using System.Text;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace System.IO
|
|
{
|
|
/// <summary>Implements a <see cref="T:System.IO.TextWriter" /> for writing information to a string. The information is stored in an underlying <see cref="T:System.Text.StringBuilder" />.</summary>
|
|
// Token: 0x020002A0 RID: 672
|
|
[Token(Token = "0x20002A0")]
|
|
[ComVisible(true)]
|
|
[Serializable]
|
|
public class StringWriter : TextWriter
|
|
{
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.IO.StringWriter" /> class.</summary>
|
|
// Token: 0x0600189D RID: 6301 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x600189D")]
|
|
[Address(RVA = "0x260DD50", Offset = "0x260CB50", VA = "0x18260DD50")]
|
|
public StringWriter()
|
|
{
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.IO.StringWriter" /> class with the specified format control.</summary>
|
|
/// <param name="formatProvider">An <see cref="T:System.IFormatProvider" /> object that controls formatting.</param>
|
|
// Token: 0x0600189E RID: 6302 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x600189E")]
|
|
[Address(RVA = "0x260DCE0", Offset = "0x260CAE0", VA = "0x18260DCE0")]
|
|
public StringWriter(IFormatProvider formatProvider)
|
|
{
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.IO.StringWriter" /> class that writes to the specified <see cref="T:System.Text.StringBuilder" />.</summary>
|
|
/// <param name="sb">The <see cref="T:System.Text.StringBuilder" /> object to write to.</param>
|
|
/// <exception cref="T:System.ArgumentNullException">
|
|
/// <paramref name="sb" /> is <see langword="null" />.</exception>
|
|
// Token: 0x0600189F RID: 6303 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x600189F")]
|
|
[Address(RVA = "0x260DDE0", Offset = "0x260CBE0", VA = "0x18260DDE0")]
|
|
public StringWriter(StringBuilder sb)
|
|
{
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.IO.StringWriter" /> class that writes to the specified <see cref="T:System.Text.StringBuilder" /> and has the specified format provider.</summary>
|
|
/// <param name="sb">The <see cref="T:System.Text.StringBuilder" /> object to write to.</param>
|
|
/// <param name="formatProvider">An <see cref="T:System.IFormatProvider" /> object that controls formatting.</param>
|
|
/// <exception cref="T:System.ArgumentNullException">
|
|
/// <paramref name="sb" /> is <see langword="null" />.</exception>
|
|
// Token: 0x060018A0 RID: 6304 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x60018A0")]
|
|
[Address(RVA = "0x260DE50", Offset = "0x260CC50", VA = "0x18260DE50")]
|
|
public StringWriter(StringBuilder sb, IFormatProvider formatProvider)
|
|
{
|
|
}
|
|
|
|
/// <summary>Closes the current <see cref="T:System.IO.StringWriter" /> and the underlying stream.</summary>
|
|
// Token: 0x060018A1 RID: 6305 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x60018A1")]
|
|
[Address(RVA = "0x1631B50", Offset = "0x1630950", VA = "0x181631B50", Slot = "8")]
|
|
public override void Close()
|
|
{
|
|
}
|
|
|
|
/// <summary>Releases the unmanaged resources used by the <see cref="T:System.IO.StringWriter" /> 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: 0x060018A2 RID: 6306 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x60018A2")]
|
|
[Address(RVA = "0x2514930", Offset = "0x2513730", VA = "0x182514930", Slot = "9")]
|
|
protected override void Dispose(bool disposing)
|
|
{
|
|
}
|
|
|
|
/// <summary>Gets the <see cref="T:System.Text.Encoding" /> in which the output is written.</summary>
|
|
/// <returns>The <see langword="Encoding" /> in which the output is written.</returns>
|
|
// Token: 0x170002F3 RID: 755
|
|
// (get) Token: 0x060018A3 RID: 6307 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x170002F3")]
|
|
public override Encoding Encoding
|
|
{
|
|
[Token(Token = "0x60018A3")]
|
|
[Address(RVA = "0x260DF20", Offset = "0x260CD20", VA = "0x18260DF20", Slot = "11")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/// <summary>Writes a character to the string.</summary>
|
|
/// <param name="value">The character to write.</param>
|
|
/// <exception cref="T:System.ObjectDisposedException">The writer is closed.</exception>
|
|
// Token: 0x060018A4 RID: 6308 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x60018A4")]
|
|
[Address(RVA = "0x260DCB0", Offset = "0x260CAB0", VA = "0x18260DCB0", Slot = "12")]
|
|
public override void Write(char value)
|
|
{
|
|
}
|
|
|
|
/// <summary>Writes a subarray of characters to the string.</summary>
|
|
/// <param name="buffer">The character array to write data from.</param>
|
|
/// <param name="index">The position in the buffer at which to start reading data.</param>
|
|
/// <param name="count">The maximum number of characters to write.</param>
|
|
/// <exception cref="T:System.ArgumentNullException">
|
|
/// <paramref name="buffer" /> is <see langword="null" />.</exception>
|
|
/// <exception cref="T:System.ArgumentOutOfRangeException">
|
|
/// <paramref name="index" /> or <paramref name="count" /> is negative.</exception>
|
|
/// <exception cref="T:System.ArgumentException">(<paramref name="index" /> + <paramref name="count" />)> <paramref name="buffer" />. <see langword="Length" />.</exception>
|
|
/// <exception cref="T:System.ObjectDisposedException">The writer is closed.</exception>
|
|
// Token: 0x060018A5 RID: 6309 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x60018A5")]
|
|
[Address(RVA = "0x260DAB0", Offset = "0x260C8B0", VA = "0x18260DAB0", Slot = "14")]
|
|
public override void Write(char[] buffer, int index, int count)
|
|
{
|
|
}
|
|
|
|
/// <summary>Writes a string to the current string.</summary>
|
|
/// <param name="value">The string to write.</param>
|
|
/// <exception cref="T:System.ObjectDisposedException">The writer is closed.</exception>
|
|
// Token: 0x060018A6 RID: 6310 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x60018A6")]
|
|
[Address(RVA = "0x260DC70", Offset = "0x260CA70", VA = "0x18260DC70", Slot = "17")]
|
|
public override void Write(string value)
|
|
{
|
|
}
|
|
|
|
/// <summary>Returns a string containing the characters written to the current <see langword="StringWriter" /> so far.</summary>
|
|
/// <returns>The string containing the characters written to the current <see langword="StringWriter" />.</returns>
|
|
// Token: 0x060018A7 RID: 6311 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x60018A7")]
|
|
[Address(RVA = "0x260DA80", Offset = "0x260C880", VA = "0x18260DA80", Slot = "3")]
|
|
public override string ToString()
|
|
{
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x04000D2F RID: 3375
|
|
[Token(Token = "0x4000D2F")]
|
|
private static UnicodeEncoding m_encoding;
|
|
|
|
// Token: 0x04000D30 RID: 3376
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x4000D30")]
|
|
private StringBuilder _sb;
|
|
|
|
// Token: 0x04000D31 RID: 3377
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
|
[Token(Token = "0x4000D31")]
|
|
private bool _isOpen;
|
|
}
|
|
}
|