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

91 lines
4.0 KiB
C#

using System;
using Cpp2IlInjected;
namespace System.Text
{
/// <summary>Represents a substitute output string that is emitted when the original input byte sequence cannot be decoded. This class cannot be inherited.</summary>
// Token: 0x020001C7 RID: 455
[Token(Token = "0x20001C7")]
public sealed class DecoderReplacementFallbackBuffer : DecoderFallbackBuffer
{
/// <summary>Initializes a new instance of the <see cref="T:System.Text.DecoderReplacementFallbackBuffer" /> class using the value of a <see cref="T:System.Text.DecoderReplacementFallback" /> object.</summary>
/// <param name="fallback">A <see cref="T:System.Text.DecoderReplacementFallback" /> object that contains a replacement string.</param>
// Token: 0x06001133 RID: 4403 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001133")]
[Address(RVA = "0x2F19A00", Offset = "0x2F18800", VA = "0x182F19A00")]
public DecoderReplacementFallbackBuffer(DecoderReplacementFallback fallback)
{
}
/// <summary>Prepares the replacement fallback buffer to use the current replacement string.</summary>
/// <param name="bytesUnknown">An input byte sequence. This parameter is ignored unless an exception is thrown.</param>
/// <param name="index">The index position of the byte in <paramref name="bytesUnknown" />. 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.DecoderReplacementFallbackBuffer.GetNextChar" /> method has read all the characters in the replacement fallback buffer.</exception>
// Token: 0x06001134 RID: 4404 RVA: 0x0000D818 File Offset: 0x0000BA18
[Token(Token = "0x6001134")]
[Address(RVA = "0x2F19920", Offset = "0x2F18720", VA = "0x182F19920", Slot = "4")]
public override bool Fallback(byte[] bytesUnknown, int index)
{
return default(bool);
}
/// <summary>Retrieves the next character in the replacement fallback buffer.</summary>
/// <returns>The next character in the replacement fallback buffer.</returns>
// Token: 0x06001135 RID: 4405 RVA: 0x0000D830 File Offset: 0x0000BA30
[Token(Token = "0x6001135")]
[Address(RVA = "0x2F19970", Offset = "0x2F18770", VA = "0x182F19970", Slot = "5")]
public override char GetNextChar()
{
return '\0';
}
/// <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: 0x170001A8 RID: 424
// (get) Token: 0x06001136 RID: 4406 RVA: 0x0000D848 File Offset: 0x0000BA48
[Token(Token = "0x170001A8")]
public override int Remaining
{
[Token(Token = "0x6001136")]
[Address(RVA = "0x2F19A40", Offset = "0x2F18840", VA = "0x182F19A40", Slot = "6")]
get
{
return 0;
}
}
/// <summary>Initializes all internal state information and data in the <see cref="T:System.Text.DecoderReplacementFallbackBuffer" /> object.</summary>
// Token: 0x06001137 RID: 4407 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001137")]
[Address(RVA = "0x2F199E0", Offset = "0x2F187E0", VA = "0x182F199E0", Slot = "7")]
public override void Reset()
{
}
// Token: 0x06001138 RID: 4408 RVA: 0x0000D860 File Offset: 0x0000BA60
[Token(Token = "0x6001138")]
[Address(RVA = "0x2F199C0", Offset = "0x2F187C0", VA = "0x182F199C0", Slot = "9")]
internal unsafe override int InternalFallback(byte[] bytes, byte* pBytes)
{
return 0;
}
// Token: 0x040008ED RID: 2285
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x40008ED")]
private string strDefault;
// Token: 0x040008EE RID: 2286
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x40008EE")]
private int fallbackCount;
// Token: 0x040008EF RID: 2287
[FieldOffset(Offset = "0x2C")]
[Token(Token = "0x40008EF")]
private int fallbackIndex;
}
}