104 lines
4.0 KiB
C#
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: 0x020001C4 RID: 452
|
|
[Token(Token = "0x20001C4")]
|
|
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: 0x06001112 RID: 4370
|
|
[Token(Token = "0x6001112")]
|
|
[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: 0x06001113 RID: 4371
|
|
[Token(Token = "0x6001113")]
|
|
[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: 0x170001A3 RID: 419
|
|
// (get) Token: 0x06001114 RID: 4372
|
|
[Token(Token = "0x170001A3")]
|
|
public abstract int Remaining
|
|
{
|
|
[Token(Token = "0x6001114")]
|
|
[Address(Slot = "6")]
|
|
get;
|
|
}
|
|
|
|
/// <summary>Initializes all data and state information pertaining to this fallback buffer.</summary>
|
|
// Token: 0x06001115 RID: 4373 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6001115")]
|
|
[Address(RVA = "0x2F18580", Offset = "0x2F17380", VA = "0x182F18580", Slot = "7")]
|
|
public virtual void Reset()
|
|
{
|
|
}
|
|
|
|
// Token: 0x06001116 RID: 4374 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6001116")]
|
|
[Address(RVA = "0x2F18560", Offset = "0x2F17360", VA = "0x182F18560")]
|
|
internal void InternalReset()
|
|
{
|
|
}
|
|
|
|
// Token: 0x06001117 RID: 4375 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6001117")]
|
|
[Address(RVA = "0x18A0730", Offset = "0x189F530", VA = "0x1818A0730")]
|
|
internal unsafe void InternalInitialize(byte* byteStart, char* charEnd)
|
|
{
|
|
}
|
|
|
|
// Token: 0x06001118 RID: 4376 RVA: 0x0000D6E0 File Offset: 0x0000B8E0
|
|
[Token(Token = "0x6001118")]
|
|
[Address(RVA = "0x2F18120", Offset = "0x2F16F20", VA = "0x182F18120", Slot = "8")]
|
|
internal unsafe virtual bool InternalFallback(byte[] bytes, byte* pBytes, ref char* chars)
|
|
{
|
|
return default(bool);
|
|
}
|
|
|
|
// Token: 0x06001119 RID: 4377 RVA: 0x0000D6F8 File Offset: 0x0000B8F8
|
|
[Token(Token = "0x6001119")]
|
|
[Address(RVA = "0x2F18350", Offset = "0x2F17150", VA = "0x182F18350", Slot = "9")]
|
|
internal unsafe virtual int InternalFallback(byte[] bytes, byte* pBytes)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
// Token: 0x0600111A RID: 4378 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x600111A")]
|
|
[Address(RVA = "0x2F185B0", Offset = "0x2F173B0", VA = "0x182F185B0")]
|
|
internal void ThrowLastBytesRecursive(byte[] bytesUnknown)
|
|
{
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Text.DecoderFallbackBuffer" /> class.</summary>
|
|
// Token: 0x0600111B RID: 4379 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x600111B")]
|
|
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
|
|
protected DecoderFallbackBuffer()
|
|
{
|
|
}
|
|
|
|
// Token: 0x040008E6 RID: 2278
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x40008E6")]
|
|
internal unsafe byte* byteStart;
|
|
|
|
// Token: 0x040008E7 RID: 2279
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x40008E7")]
|
|
internal unsafe char* charEnd;
|
|
}
|
|
}
|