Files
27Aug2021-Cpp2IL-Dump/mscorlib/System/Text/EncoderFallbackBuffer.cs
T
niko c12fbe3fc6 m
2026-04-12 16:51:38 +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: 0x020001D6 RID: 470
[Token(Token = "0x20001D6")]
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: 0x0600119E RID: 4510
[Token(Token = "0x600119E")]
[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: 0x0600119F RID: 4511
[Token(Token = "0x600119F")]
[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: 0x060011A0 RID: 4512
[Token(Token = "0x60011A0")]
[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: 0x060011A1 RID: 4513
[Token(Token = "0x60011A1")]
[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: 0x170001BC RID: 444
// (get) Token: 0x060011A2 RID: 4514
[Token(Token = "0x170001BC")]
public abstract int Remaining
{
[Token(Token = "0x60011A2")]
[Address(Slot = "8")]
get;
}
/// <summary>Initializes all data and state information pertaining to this fallback buffer.</summary>
// Token: 0x060011A3 RID: 4515 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60011A3")]
[Address(RVA = "0xD25760", Offset = "0xD24760", VA = "0x180D25760", Slot = "9")]
public virtual void Reset()
{
}
// Token: 0x060011A4 RID: 4516 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60011A4")]
[Address(RVA = "0xD25740", Offset = "0xD24740", VA = "0x180D25740")]
internal void InternalReset()
{
}
// Token: 0x060011A5 RID: 4517 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60011A5")]
[Address(RVA = "0xD25710", Offset = "0xD24710", VA = "0x180D25710")]
internal unsafe void InternalInitialize(char* charStart, char* charEnd, EncoderNLS encoder, bool setEncoder)
{
}
// Token: 0x060011A6 RID: 4518 RVA: 0x0000DD70 File Offset: 0x0000BF70
[Token(Token = "0x60011A6")]
[Address(RVA = "0xD256D0", Offset = "0xD246D0", VA = "0x180D256D0")]
internal char InternalGetNextChar()
{
return '\0';
}
// Token: 0x060011A7 RID: 4519 RVA: 0x0000DD88 File Offset: 0x0000BF88
[Token(Token = "0x60011A7")]
[Address(RVA = "0xD25510", Offset = "0xD24510", VA = "0x180D25510", Slot = "10")]
internal unsafe virtual bool InternalFallback(char ch, ref char* chars)
{
return default(bool);
}
// Token: 0x060011A8 RID: 4520 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60011A8")]
[Address(RVA = "0xD25790", Offset = "0xD24790", VA = "0x180D25790")]
internal void ThrowLastCharRecursive(int charRecursive)
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Text.EncoderFallbackBuffer" /> class.</summary>
// Token: 0x060011A9 RID: 4521 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60011A9")]
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
protected EncoderFallbackBuffer()
{
}
// Token: 0x0400090B RID: 2315
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x400090B")]
internal unsafe char* charStart;
// Token: 0x0400090C RID: 2316
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x400090C")]
internal unsafe char* charEnd;
// Token: 0x0400090D RID: 2317
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x400090D")]
internal EncoderNLS encoder;
// Token: 0x0400090E RID: 2318
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x400090E")]
internal bool setEncoder;
// Token: 0x0400090F RID: 2319
[FieldOffset(Offset = "0x29")]
[Token(Token = "0x400090F")]
internal bool bUsedEncoder;
// Token: 0x04000910 RID: 2320
[FieldOffset(Offset = "0x2A")]
[Token(Token = "0x4000910")]
internal bool bFallingBack;
// Token: 0x04000911 RID: 2321
[FieldOffset(Offset = "0x2C")]
[Token(Token = "0x4000911")]
internal int iRecursionCount;
// Token: 0x04000912 RID: 2322
[Token(Token = "0x4000912")]
private const int iMaxRecursion = 250;
}
}