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

104 lines
4.0 KiB
C#

using System;
using Cpp2IlInjected;
namespace System.Text
{
/// <summary>Provides a buffer that allows a fallback handler to return an alternate string to a decoder when it cannot decode an input byte sequence.</summary>
// Token: 0x020001CB RID: 459
[Token(Token = "0x20001CB")]
public abstract class DecoderFallbackBuffer
{
/// <summary>When overridden in a derived class, prepares the fallback buffer to handle the specified input byte sequence.</summary>
/// <param name="bytesUnknown">An input array of bytes.</param>
/// <param name="index">The index position of a byte in <paramref name="bytesUnknown" />.</param>
/// <returns>
/// <see langword="true" /> if the fallback buffer can process <paramref name="bytesUnknown" />; <see langword="false" /> if the fallback buffer ignores <paramref name="bytesUnknown" />.</returns>
// Token: 0x06001148 RID: 4424
[Token(Token = "0x6001148")]
[Address(Slot = "4")]
public abstract bool Fallback(byte[] bytesUnknown, int index);
/// <summary>When overridden in a derived class, retrieves the next character in the fallback buffer.</summary>
/// <returns>The next character in the fallback buffer.</returns>
// Token: 0x06001149 RID: 4425
[Token(Token = "0x6001149")]
[Address(Slot = "5")]
public abstract char GetNextChar();
/// <summary>When overridden in a derived class, gets the number of characters in the current <see cref="T:System.Text.DecoderFallbackBuffer" /> object that remain to be processed.</summary>
/// <returns>The number of characters in the current fallback buffer that have not yet been processed.</returns>
// Token: 0x170001AA RID: 426
// (get) Token: 0x0600114A RID: 4426
[Token(Token = "0x170001AA")]
public abstract int Remaining
{
[Token(Token = "0x600114A")]
[Address(Slot = "6")]
get;
}
/// <summary>Initializes all data and state information pertaining to this fallback buffer.</summary>
// Token: 0x0600114B RID: 4427 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600114B")]
[Address(RVA = "0xD22520", Offset = "0xD21520", VA = "0x180D22520", Slot = "7")]
public virtual void Reset()
{
}
// Token: 0x0600114C RID: 4428 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600114C")]
[Address(RVA = "0xD22500", Offset = "0xD21500", VA = "0x180D22500")]
internal void InternalReset()
{
}
// Token: 0x0600114D RID: 4429 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600114D")]
[Address(RVA = "0xD224F0", Offset = "0xD214F0", VA = "0x180D224F0")]
internal unsafe void InternalInitialize(byte* byteStart, char* charEnd)
{
}
// Token: 0x0600114E RID: 4430 RVA: 0x0000D9F8 File Offset: 0x0000BBF8
[Token(Token = "0x600114E")]
[Address(RVA = "0xD220B0", Offset = "0xD210B0", VA = "0x180D220B0", Slot = "8")]
internal unsafe virtual bool InternalFallback(byte[] bytes, byte* pBytes, ref char* chars)
{
return default(bool);
}
// Token: 0x0600114F RID: 4431 RVA: 0x0000DA10 File Offset: 0x0000BC10
[Token(Token = "0x600114F")]
[Address(RVA = "0xD222E0", Offset = "0xD212E0", VA = "0x180D222E0", Slot = "9")]
internal unsafe virtual int InternalFallback(byte[] bytes, byte* pBytes)
{
return 0;
}
// Token: 0x06001150 RID: 4432 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001150")]
[Address(RVA = "0xD22550", Offset = "0xD21550", VA = "0x180D22550")]
internal void ThrowLastBytesRecursive(byte[] bytesUnknown)
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Text.DecoderFallbackBuffer" /> class.</summary>
// Token: 0x06001151 RID: 4433 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001151")]
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
protected DecoderFallbackBuffer()
{
}
// Token: 0x040008F0 RID: 2288
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x40008F0")]
internal unsafe byte* byteStart;
// Token: 0x040008F1 RID: 2289
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x40008F1")]
internal unsafe char* charEnd;
}
}