Files
27Aug2021-Cpp2IL-Dump/mscorlib/System/Text/DecoderReplacementFallbackBuffer.cs
T
niko c12fbe3fc6 m
2026-04-12 16:51:38 +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: 0x020001CE RID: 462
[Token(Token = "0x20001CE")]
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: 0x06001169 RID: 4457 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001169")]
[Address(RVA = "0xD239B0", Offset = "0xD229B0", VA = "0x180D239B0")]
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: 0x0600116A RID: 4458 RVA: 0x0000DB30 File Offset: 0x0000BD30
[Token(Token = "0x600116A")]
[Address(RVA = "0xD238F0", Offset = "0xD228F0", VA = "0x180D238F0", 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: 0x0600116B RID: 4459 RVA: 0x0000DB48 File Offset: 0x0000BD48
[Token(Token = "0x600116B")]
[Address(RVA = "0xD23940", Offset = "0xD22940", VA = "0x180D23940", 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: 0x170001AF RID: 431
// (get) Token: 0x0600116C RID: 4460 RVA: 0x0000DB60 File Offset: 0x0000BD60
[Token(Token = "0x170001AF")]
public override int Remaining
{
[Token(Token = "0x600116C")]
[Address(RVA = "0xD239F0", Offset = "0xD229F0", VA = "0x180D239F0", Slot = "6")]
get
{
return 0;
}
}
/// <summary>Initializes all internal state information and data in the <see cref="T:System.Text.DecoderReplacementFallbackBuffer" /> object.</summary>
// Token: 0x0600116D RID: 4461 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600116D")]
[Address(RVA = "0xD23990", Offset = "0xD22990", VA = "0x180D23990", Slot = "7")]
public override void Reset()
{
}
// Token: 0x0600116E RID: 4462 RVA: 0x0000DB78 File Offset: 0x0000BD78
[Token(Token = "0x600116E")]
[Address(RVA = "0x590480", Offset = "0x58F480", VA = "0x180590480", Slot = "9")]
internal unsafe override int InternalFallback(byte[] bytes, byte* pBytes)
{
return 0;
}
// Token: 0x040008F7 RID: 2295
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x40008F7")]
private string strDefault;
// Token: 0x040008F8 RID: 2296
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x40008F8")]
private int fallbackCount;
// Token: 0x040008F9 RID: 2297
[FieldOffset(Offset = "0x2C")]
[Token(Token = "0x40008F9")]
private int fallbackIndex;
}
}