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

152 lines
6.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 an encoder when it cannot encode an input character.</summary>
// Token: 0x020001CF RID: 463
[Token(Token = "0x20001CF")]
public abstract class EncoderFallbackBuffer
{
/// <summary>When overridden in a derived class, prepares the fallback buffer to handle the specified input character.</summary>
/// <param name="charUnknown">An input character.</param>
/// <param name="index">The index position of the character in the input buffer.</param>
/// <returns>
/// <see langword="true" /> if the fallback buffer can process <paramref name="charUnknown" />; <see langword="false" /> if the fallback buffer ignores <paramref name="charUnknown" />.</returns>
// Token: 0x06001166 RID: 4454
[Token(Token = "0x6001166")]
[Address(Slot = "4")]
public abstract bool Fallback(char charUnknown, int index);
/// <summary>When overridden in a derived class, prepares the fallback buffer to handle the specified surrogate pair.</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 fallback buffer can process <paramref name="charUnknownHigh" /> and <paramref name="charUnknownLow" />; <see langword="false" /> if the fallback buffer ignores the surrogate pair.</returns>
// Token: 0x06001167 RID: 4455
[Token(Token = "0x6001167")]
[Address(Slot = "5")]
public abstract bool Fallback(char charUnknownHigh, char charUnknownLow, 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: 0x06001168 RID: 4456
[Token(Token = "0x6001168")]
[Address(Slot = "6")]
public abstract char GetNextChar();
/// <summary>When overridden in a derived class, causes the next call to the <see cref="M:System.Text.EncoderFallbackBuffer.GetNextChar" /> method to access the data buffer character position that is prior to the current character position.</summary>
/// <returns>
/// <see langword="true" /> if the <see cref="M:System.Text.EncoderFallbackBuffer.MovePrevious" /> operation was successful; otherwise, <see langword="false" />.</returns>
// Token: 0x06001169 RID: 4457
[Token(Token = "0x6001169")]
[Address(Slot = "7")]
public abstract bool MovePrevious();
/// <summary>When overridden in a derived class, gets the number of characters in the current <see cref="T:System.Text.EncoderFallbackBuffer" /> 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: 0x170001B5 RID: 437
// (get) Token: 0x0600116A RID: 4458
[Token(Token = "0x170001B5")]
public abstract int Remaining
{
[Token(Token = "0x600116A")]
[Address(Slot = "8")]
get;
}
/// <summary>Initializes all data and state information pertaining to this fallback buffer.</summary>
// Token: 0x0600116B RID: 4459 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600116B")]
[Address(RVA = "0x2F1B050", Offset = "0x2F19E50", VA = "0x182F1B050", Slot = "9")]
public virtual void Reset()
{
}
// Token: 0x0600116C RID: 4460 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600116C")]
[Address(RVA = "0x2F1B030", Offset = "0x2F19E30", VA = "0x182F1B030")]
internal void InternalReset()
{
}
// Token: 0x0600116D RID: 4461 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600116D")]
[Address(RVA = "0x2F1B000", Offset = "0x2F19E00", VA = "0x182F1B000")]
internal unsafe void InternalInitialize(char* charStart, char* charEnd, EncoderNLS encoder, bool setEncoder)
{
}
// Token: 0x0600116E RID: 4462 RVA: 0x0000DA58 File Offset: 0x0000BC58
[Token(Token = "0x600116E")]
[Address(RVA = "0x2F1AFC0", Offset = "0x2F19DC0", VA = "0x182F1AFC0")]
internal char InternalGetNextChar()
{
return '\0';
}
// Token: 0x0600116F RID: 4463 RVA: 0x0000DA70 File Offset: 0x0000BC70
[Token(Token = "0x600116F")]
[Address(RVA = "0x2F1AE00", Offset = "0x2F19C00", VA = "0x182F1AE00", Slot = "10")]
internal unsafe virtual bool InternalFallback(char ch, ref char* chars)
{
return default(bool);
}
// Token: 0x06001170 RID: 4464 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001170")]
[Address(RVA = "0x2F1B080", Offset = "0x2F19E80", VA = "0x182F1B080")]
internal void ThrowLastCharRecursive(int charRecursive)
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Text.EncoderFallbackBuffer" /> class.</summary>
// Token: 0x06001171 RID: 4465 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001171")]
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
protected EncoderFallbackBuffer()
{
}
// Token: 0x04000901 RID: 2305
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4000901")]
internal unsafe char* charStart;
// Token: 0x04000902 RID: 2306
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4000902")]
internal unsafe char* charEnd;
// Token: 0x04000903 RID: 2307
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x4000903")]
internal EncoderNLS encoder;
// Token: 0x04000904 RID: 2308
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x4000904")]
internal bool setEncoder;
// Token: 0x04000905 RID: 2309
[FieldOffset(Offset = "0x29")]
[Token(Token = "0x4000905")]
internal bool bUsedEncoder;
// Token: 0x04000906 RID: 2310
[FieldOffset(Offset = "0x2A")]
[Token(Token = "0x4000906")]
internal bool bFallingBack;
// Token: 0x04000907 RID: 2311
[FieldOffset(Offset = "0x2C")]
[Token(Token = "0x4000907")]
internal int iRecursionCount;
// Token: 0x04000908 RID: 2312
[Token(Token = "0x4000908")]
private const int iMaxRecursion = 250;
}
}