Files
27Aug2021-Cpp2IL-Dump/mscorlib/System/IO/StringWriter.cs
T
niko c12fbe3fc6 m
2026-04-12 16:51:38 +02:00

150 lines
6.9 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: 0x020002A7 RID: 679
[Token(Token = "0x20002A7")]
[ComVisible(true)]
[Serializable]
public class StringWriter : TextWriter
{
/// <summary>Initializes a new instance of the <see cref="T:System.IO.StringWriter" /> class.</summary>
// Token: 0x060018DC RID: 6364 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60018DC")]
[Address(RVA = "0xCCEEC0", Offset = "0xCCDEC0", VA = "0x180CCEEC0")]
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: 0x060018DD RID: 6365 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60018DD")]
[Address(RVA = "0xCCEE50", Offset = "0xCCDE50", VA = "0x180CCEE50")]
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: 0x060018DE RID: 6366 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60018DE")]
[Address(RVA = "0xCCEF50", Offset = "0xCCDF50", VA = "0x180CCEF50")]
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: 0x060018DF RID: 6367 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60018DF")]
[Address(RVA = "0xCCEFC0", Offset = "0xCCDFC0", VA = "0x180CCEFC0")]
public StringWriter(StringBuilder sb, IFormatProvider formatProvider)
{
}
/// <summary>Closes the current <see cref="T:System.IO.StringWriter" /> and the underlying stream.</summary>
// Token: 0x060018E0 RID: 6368 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60018E0")]
[Address(RVA = "0x41EF10", Offset = "0x41DF10", VA = "0x18041EF10", 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: 0x060018E1 RID: 6369 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60018E1")]
[Address(RVA = "0x6E1A50", Offset = "0x6E0A50", VA = "0x1806E1A50", 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: 0x170002FE RID: 766
// (get) Token: 0x060018E2 RID: 6370 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x170002FE")]
public override Encoding Encoding
{
[Token(Token = "0x60018E2")]
[Address(RVA = "0xCCF090", Offset = "0xCCE090", VA = "0x180CCF090", 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: 0x060018E3 RID: 6371 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60018E3")]
[Address(RVA = "0xCCEE20", Offset = "0xCCDE20", VA = "0x180CCEE20", Slot = "13")]
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" />)&gt; <paramref name="buffer" />. <see langword="Length" />.</exception>
/// <exception cref="T:System.ObjectDisposedException">The writer is closed.</exception>
// Token: 0x060018E4 RID: 6372 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60018E4")]
[Address(RVA = "0xCCEC20", Offset = "0xCCDC20", VA = "0x180CCEC20", Slot = "15")]
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: 0x060018E5 RID: 6373 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60018E5")]
[Address(RVA = "0xCCEDE0", Offset = "0xCCDDE0", VA = "0x180CCEDE0", Slot = "18")]
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: 0x060018E6 RID: 6374 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60018E6")]
[Address(RVA = "0xCCEBF0", Offset = "0xCCDBF0", VA = "0x180CCEBF0", Slot = "3")]
public override string ToString()
{
return null;
}
// Token: 0x04000D39 RID: 3385
[Token(Token = "0x4000D39")]
private static UnicodeEncoding m_encoding;
// Token: 0x04000D3A RID: 3386
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
[Token(Token = "0x4000D3A")]
private StringBuilder _sb;
// Token: 0x04000D3B RID: 3387
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
[Token(Token = "0x4000D3B")]
private bool _isOpen;
}
}