Files
Aug2021-Cpp2IL-Dump/mscorlib/System/Text/EncoderReplacementFallbackBuffer.cs
T
2026-04-10 22:50:51 +02:00

112 lines
5.9 KiB
C#

using System;
using Cpp2IlInjected;
namespace System.Text
{
/// <summary>Represents a substitute input string that is used when the original input character cannot be encoded. This class cannot be inherited.</summary>
// Token: 0x020001D2 RID: 466
[Token(Token = "0x20001D2")]
public sealed class EncoderReplacementFallbackBuffer : EncoderFallbackBuffer
{
/// <summary>Initializes a new instance of the <see cref="T:System.Text.EncoderReplacementFallbackBuffer" /> class using the value of a <see cref="T:System.Text.EncoderReplacementFallback" /> object.</summary>
/// <param name="fallback">A <see cref="T:System.Text.EncoderReplacementFallback" /> object.</param>
// Token: 0x06001185 RID: 4485 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001185")]
[Address(RVA = "0x2F1C510", Offset = "0x2F1B310", VA = "0x182F1C510")]
public EncoderReplacementFallbackBuffer(EncoderReplacementFallback fallback)
{
}
/// <summary>Prepares the replacement fallback buffer to use the current replacement string.</summary>
/// <param name="charUnknown">An input character. This parameter is ignored in this operation unless an exception is thrown.</param>
/// <param name="index">The index position of the character in the input buffer. This parameter is ignored in this operation.</param>
/// <returns>
/// <see langword="true" /> if the replacement string is not empty; <see langword="false" /> if the replacement string is empty.</returns>
/// <exception cref="T:System.ArgumentException">This method is called again before the <see cref="M:System.Text.EncoderReplacementFallbackBuffer.GetNextChar" /> method has read all the characters in the replacement fallback buffer.</exception>
// Token: 0x06001186 RID: 4486 RVA: 0x0000DB48 File Offset: 0x0000BD48
[Token(Token = "0x6001186")]
[Address(RVA = "0x2F1C330", Offset = "0x2F1B130", VA = "0x182F1C330", Slot = "4")]
public override bool Fallback(char charUnknown, int index)
{
return default(bool);
}
/// <summary>Indicates whether a replacement string can be used when an input surrogate pair cannot be encoded, or whether the surrogate pair can be ignored. Parameters specify the surrogate pair and the index position of the pair in the input.</summary>
/// <param name="charUnknownHigh">The high surrogate of the input pair.</param>
/// <param name="charUnknownLow">The low surrogate of the input pair.</param>
/// <param name="index">The index position of the surrogate pair in the input buffer.</param>
/// <returns>
/// <see langword="true" /> if the replacement string is not empty; <see langword="false" /> if the replacement string is empty.</returns>
/// <exception cref="T:System.ArgumentException">This method is called again before the <see cref="M:System.Text.EncoderReplacementFallbackBuffer.GetNextChar" /> method has read all the replacement string characters.</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">The value of <paramref name="charUnknownHigh" /> is less than U+D800 or greater than U+D8FF.
/// -or-
/// The value of <paramref name="charUnknownLow" /> is less than U+DC00 or greater than U+DFFF.</exception>
// Token: 0x06001187 RID: 4487 RVA: 0x0000DB60 File Offset: 0x0000BD60
[Token(Token = "0x6001187")]
[Address(RVA = "0x2F1C070", Offset = "0x2F1AE70", VA = "0x182F1C070", Slot = "5")]
public override bool Fallback(char charUnknownHigh, char charUnknownLow, int index)
{
return default(bool);
}
/// <summary>Retrieves the next character in the replacement fallback buffer.</summary>
/// <returns>The next Unicode character in the replacement fallback buffer that the application can encode.</returns>
// Token: 0x06001188 RID: 4488 RVA: 0x0000DB78 File Offset: 0x0000BD78
[Token(Token = "0x6001188")]
[Address(RVA = "0x2F1C480", Offset = "0x2F1B280", VA = "0x182F1C480", Slot = "6")]
public override char GetNextChar()
{
return '\0';
}
/// <summary>Causes the next call to the <see cref="M:System.Text.EncoderReplacementFallbackBuffer.GetNextChar" /> method to access the character position in the replacement fallback buffer prior to the current character position.</summary>
/// <returns>
/// <see langword="true" /> if the <see cref="M:System.Text.EncoderReplacementFallbackBuffer.MovePrevious" /> operation was successful; otherwise, <see langword="false" />.</returns>
// Token: 0x06001189 RID: 4489 RVA: 0x0000DB90 File Offset: 0x0000BD90
[Token(Token = "0x6001189")]
[Address(RVA = "0x2F1C4D0", Offset = "0x2F1B2D0", VA = "0x182F1C4D0", Slot = "7")]
public override bool MovePrevious()
{
return default(bool);
}
/// <summary>Gets the number of characters in the replacement fallback buffer that remain to be processed.</summary>
/// <returns>The number of characters in the replacement fallback buffer that have not yet been processed.</returns>
// Token: 0x170001BA RID: 442
// (get) Token: 0x0600118A RID: 4490 RVA: 0x0000DBA8 File Offset: 0x0000BDA8
[Token(Token = "0x170001BA")]
public override int Remaining
{
[Token(Token = "0x600118A")]
[Address(RVA = "0x2F1C560", Offset = "0x2F1B360", VA = "0x182F1C560", Slot = "8")]
get
{
return 0;
}
}
/// <summary>Initializes all internal state information and data in this instance of <see cref="T:System.Text.EncoderReplacementFallbackBuffer" />.</summary>
// Token: 0x0600118B RID: 4491 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600118B")]
[Address(RVA = "0x2F1C4F0", Offset = "0x2F1B2F0", VA = "0x182F1C4F0", Slot = "9")]
public override void Reset()
{
}
// Token: 0x0400090F RID: 2319
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x400090F")]
private string strDefault;
// Token: 0x04000910 RID: 2320
[FieldOffset(Offset = "0x38")]
[Token(Token = "0x4000910")]
private int fallbackCount;
// Token: 0x04000911 RID: 2321
[FieldOffset(Offset = "0x3C")]
[Token(Token = "0x4000911")]
private int fallbackIndex;
}
}