Files
niko c12fbe3fc6 m
2026-04-12 16:51:38 +02:00

312 lines
21 KiB
C#

using System;
using System.Runtime.InteropServices;
using System.Runtime.Serialization;
using Cpp2IlInjected;
namespace System.Text
{
/// <summary>Converts a sequence of encoded bytes into a set of characters.</summary>
// Token: 0x020001C4 RID: 452
[Token(Token = "0x20001C4")]
[ComVisible(true)]
[Serializable]
public abstract class Decoder
{
// Token: 0x0600111A RID: 4378 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600111A")]
[Address(RVA = "0xD24700", Offset = "0xD23700", VA = "0x180D24700")]
internal void SerializeDecoder(SerializationInfo info)
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Text.Decoder" /> class.</summary>
// Token: 0x0600111B RID: 4379 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600111B")]
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
protected Decoder()
{
}
/// <summary>Gets or sets a <see cref="T:System.Text.DecoderFallback" /> object for the current <see cref="T:System.Text.Decoder" /> object.</summary>
/// <returns>A <see cref="T:System.Text.DecoderFallback" /> object.</returns>
/// <exception cref="T:System.ArgumentNullException">The value in a set operation is <see langword="null" /> (<see langword="Nothing" />).</exception>
/// <exception cref="T:System.ArgumentException">A new value cannot be assigned in a set operation because the current <see cref="T:System.Text.DecoderFallbackBuffer" /> object contains data that has not been decoded yet.</exception>
// Token: 0x1700019E RID: 414
// (get) Token: 0x0600111C RID: 4380 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x1700019E")]
[ComVisible(false)]
public DecoderFallback Fallback
{
[Token(Token = "0x600111C")]
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
get
{
return null;
}
}
/// <summary>Gets the <see cref="T:System.Text.DecoderFallbackBuffer" /> object associated with the current <see cref="T:System.Text.Decoder" /> object.</summary>
/// <returns>A <see cref="T:System.Text.DecoderFallbackBuffer" /> object.</returns>
// Token: 0x1700019F RID: 415
// (get) Token: 0x0600111D RID: 4381 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x1700019F")]
[ComVisible(false)]
public DecoderFallbackBuffer FallbackBuffer
{
[Token(Token = "0x600111D")]
[Address(RVA = "0xD24760", Offset = "0xD23760", VA = "0x180D24760")]
get
{
return null;
}
}
// Token: 0x170001A0 RID: 416
// (get) Token: 0x0600111E RID: 4382 RVA: 0x0000D830 File Offset: 0x0000BA30
[Token(Token = "0x170001A0")]
internal bool InternalHasFallbackBuffer
{
[Token(Token = "0x600111E")]
[Address(RVA = "0x5EFE20", Offset = "0x5EEE20", VA = "0x1805EFE20")]
get
{
return default(bool);
}
}
/// <summary>When overridden in a derived class, sets the decoder back to its initial state.</summary>
// Token: 0x0600111F RID: 4383 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600111F")]
[Address(RVA = "0xD24630", Offset = "0xD23630", VA = "0x180D24630", Slot = "4")]
[ComVisible(false)]
public virtual void Reset()
{
}
/// <summary>When overridden in a derived class, calculates the number of characters produced by decoding a sequence of bytes from the specified byte array.</summary>
/// <param name="bytes">The byte array containing the sequence of bytes to decode.</param>
/// <param name="index">The index of the first byte to decode.</param>
/// <param name="count">The number of bytes to decode.</param>
/// <returns>The number of characters produced by decoding the specified sequence of bytes and any bytes in the internal buffer.</returns>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="bytes" /> is <see langword="null" /> (<see langword="Nothing" />).</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">
/// <paramref name="index" /> or <paramref name="count" /> is less than zero.
/// -or-
/// <paramref name="index" /> and <paramref name="count" /> do not denote a valid range in <paramref name="bytes" />.</exception>
/// <exception cref="T:System.Text.DecoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for fuller explanation)
/// -and-
/// <see cref="P:System.Text.Decoder.Fallback" /> is set to <see cref="T:System.Text.DecoderExceptionFallback" />.</exception>
// Token: 0x06001120 RID: 4384
[Token(Token = "0x6001120")]
[Address(Slot = "5")]
public abstract int GetCharCount(byte[] bytes, int index, int count);
/// <summary>When overridden in a derived class, calculates the number of characters produced by decoding a sequence of bytes from the specified byte array. A parameter indicates whether to clear the internal state of the decoder after the calculation.</summary>
/// <param name="bytes">The byte array containing the sequence of bytes to decode.</param>
/// <param name="index">The index of the first byte to decode.</param>
/// <param name="count">The number of bytes to decode.</param>
/// <param name="flush">
/// <see langword="true" /> to simulate clearing the internal state of the encoder after the calculation; otherwise, <see langword="false" />.</param>
/// <returns>The number of characters produced by decoding the specified sequence of bytes and any bytes in the internal buffer.</returns>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="bytes" /> is <see langword="null" /> (<see langword="Nothing" />).</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">
/// <paramref name="index" /> or <paramref name="count" /> is less than zero.
/// -or-
/// <paramref name="index" /> and <paramref name="count" /> do not denote a valid range in <paramref name="bytes" />.</exception>
/// <exception cref="T:System.Text.DecoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for fuller explanation)
/// -and-
/// <see cref="P:System.Text.Decoder.Fallback" /> is set to <see cref="T:System.Text.DecoderExceptionFallback" />.</exception>
// Token: 0x06001121 RID: 4385 RVA: 0x0000D848 File Offset: 0x0000BA48
[Token(Token = "0x6001121")]
[Address(RVA = "0xD243C0", Offset = "0xD233C0", VA = "0x180D243C0", Slot = "6")]
[ComVisible(false)]
public virtual int GetCharCount(byte[] bytes, int index, int count, bool flush)
{
return 0;
}
/// <summary>When overridden in a derived class, calculates the number of characters produced by decoding a sequence of bytes starting at the specified byte pointer. A parameter indicates whether to clear the internal state of the decoder after the calculation.</summary>
/// <param name="bytes">A pointer to the first byte to decode.</param>
/// <param name="count">The number of bytes to decode.</param>
/// <param name="flush">
/// <see langword="true" /> to simulate clearing the internal state of the encoder after the calculation; otherwise, <see langword="false" />.</param>
/// <returns>The number of characters produced by decoding the specified sequence of bytes and any bytes in the internal buffer.</returns>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="bytes" /> is <see langword="null" /> (<see langword="Nothing" /> in Visual Basic .NET).</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">
/// <paramref name="count" /> is less than zero.</exception>
/// <exception cref="T:System.Text.DecoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for fuller explanation)
/// -and-
/// <see cref="P:System.Text.Decoder.Fallback" /> is set to <see cref="T:System.Text.DecoderExceptionFallback" />.</exception>
// Token: 0x06001122 RID: 4386 RVA: 0x0000D860 File Offset: 0x0000BA60
[Token(Token = "0x6001122")]
[Address(RVA = "0xD24270", Offset = "0xD23270", VA = "0x180D24270", Slot = "7")]
[ComVisible(false)]
[CLSCompliant(false)]
public unsafe virtual int GetCharCount(byte* bytes, int count, bool flush)
{
return 0;
}
/// <summary>When overridden in a derived class, decodes a sequence of bytes from the specified byte array and any bytes in the internal buffer into the specified character array.</summary>
/// <param name="bytes">The byte array containing the sequence of bytes to decode.</param>
/// <param name="byteIndex">The index of the first byte to decode.</param>
/// <param name="byteCount">The number of bytes to decode.</param>
/// <param name="chars">The character array to contain the resulting set of characters.</param>
/// <param name="charIndex">The index at which to start writing the resulting set of characters.</param>
/// <returns>The actual number of characters written into <paramref name="chars" />.</returns>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="bytes" /> is <see langword="null" /> (<see langword="Nothing" />).
/// -or-
/// <paramref name="chars" /> is <see langword="null" /> (<see langword="Nothing" />).</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">
/// <paramref name="byteIndex" /> or <paramref name="byteCount" /> or <paramref name="charIndex" /> is less than zero.
/// -or-
/// <paramref name="byteindex" /> and <paramref name="byteCount" /> do not denote a valid range in <paramref name="bytes" />.
/// -or-
/// <paramref name="charIndex" /> is not a valid index in <paramref name="chars" />.</exception>
/// <exception cref="T:System.ArgumentException">
/// <paramref name="chars" /> does not have enough capacity from <paramref name="charIndex" /> to the end of the array to accommodate the resulting characters.</exception>
/// <exception cref="T:System.Text.DecoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for fuller explanation)
/// -and-
/// <see cref="P:System.Text.Decoder.Fallback" /> is set to <see cref="T:System.Text.DecoderExceptionFallback" />.</exception>
// Token: 0x06001123 RID: 4387
[Token(Token = "0x6001123")]
[Address(Slot = "8")]
public abstract int GetChars(byte[] bytes, int byteIndex, int byteCount, char[] chars, int charIndex);
/// <summary>When overridden in a derived class, decodes a sequence of bytes from the specified byte array and any bytes in the internal buffer into the specified character array. A parameter indicates whether to clear the internal state of the decoder after the conversion.</summary>
/// <param name="bytes">The byte array containing the sequence of bytes to decode.</param>
/// <param name="byteIndex">The index of the first byte to decode.</param>
/// <param name="byteCount">The number of bytes to decode.</param>
/// <param name="chars">The character array to contain the resulting set of characters.</param>
/// <param name="charIndex">The index at which to start writing the resulting set of characters.</param>
/// <param name="flush">
/// <see langword="true" /> to clear the internal state of the decoder after the conversion; otherwise, <see langword="false" />.</param>
/// <returns>The actual number of characters written into the <paramref name="chars" /> parameter.</returns>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="bytes" /> is <see langword="null" /> (<see langword="Nothing" />).
/// -or-
/// <paramref name="chars" /> is <see langword="null" /> (<see langword="Nothing" />).</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">
/// <paramref name="byteIndex" /> or <paramref name="byteCount" /> or <paramref name="charIndex" /> is less than zero.
/// -or-
/// <paramref name="byteindex" /> and <paramref name="byteCount" /> do not denote a valid range in <paramref name="bytes" />.
/// -or-
/// <paramref name="charIndex" /> is not a valid index in <paramref name="chars" />.</exception>
/// <exception cref="T:System.ArgumentException">
/// <paramref name="chars" /> does not have enough capacity from <paramref name="charIndex" /> to the end of the array to accommodate the resulting characters.</exception>
/// <exception cref="T:System.Text.DecoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for fuller explanation)
/// -and-
/// <see cref="P:System.Text.Decoder.Fallback" /> is set to <see cref="T:System.Text.DecoderExceptionFallback" />.</exception>
// Token: 0x06001124 RID: 4388 RVA: 0x0000D878 File Offset: 0x0000BA78
[Token(Token = "0x6001124")]
[Address(RVA = "0xD24610", Offset = "0xD23610", VA = "0x180D24610", Slot = "9")]
public virtual int GetChars(byte[] bytes, int byteIndex, int byteCount, char[] chars, int charIndex, bool flush)
{
return 0;
}
/// <summary>When overridden in a derived class, decodes a sequence of bytes starting at the specified byte pointer and any bytes in the internal buffer into a set of characters that are stored starting at the specified character pointer. A parameter indicates whether to clear the internal state of the decoder after the conversion.</summary>
/// <param name="bytes">A pointer to the first byte to decode.</param>
/// <param name="byteCount">The number of bytes to decode.</param>
/// <param name="chars">A pointer to the location at which to start writing the resulting set of characters.</param>
/// <param name="charCount">The maximum number of characters to write.</param>
/// <param name="flush">
/// <see langword="true" /> to clear the internal state of the decoder after the conversion; otherwise, <see langword="false" />.</param>
/// <returns>The actual number of characters written at the location indicated by the <paramref name="chars" /> parameter.</returns>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="bytes" /> is <see langword="null" /> (<see langword="Nothing" />).
/// -or-
/// <paramref name="chars" /> is <see langword="null" /> (<see langword="Nothing" />).</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">
/// <paramref name="byteCount" /> or <paramref name="charCount" /> is less than zero.</exception>
/// <exception cref="T:System.ArgumentException">
/// <paramref name="charCount" /> is less than the resulting number of characters.</exception>
/// <exception cref="T:System.Text.DecoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for fuller explanation)
/// -and-
/// <see cref="P:System.Text.Decoder.Fallback" /> is set to <see cref="T:System.Text.DecoderExceptionFallback" />.</exception>
// Token: 0x06001125 RID: 4389 RVA: 0x0000D890 File Offset: 0x0000BA90
[Token(Token = "0x6001125")]
[Address(RVA = "0xD243E0", Offset = "0xD233E0", VA = "0x180D243E0", Slot = "10")]
[CLSCompliant(false)]
[ComVisible(false)]
public unsafe virtual int GetChars(byte* bytes, int byteCount, char* chars, int charCount, bool flush)
{
return 0;
}
/// <summary>Converts an array of encoded bytes to UTF-16 encoded characters and stores the result in a character array.</summary>
/// <param name="bytes">A byte array to convert.</param>
/// <param name="byteIndex">The first element of <paramref name="bytes" /> to convert.</param>
/// <param name="byteCount">The number of elements of <paramref name="bytes" /> to convert.</param>
/// <param name="chars">An array to store the converted characters.</param>
/// <param name="charIndex">The first element of <paramref name="chars" /> in which data is stored.</param>
/// <param name="charCount">The maximum number of elements of <paramref name="chars" /> to use in the conversion.</param>
/// <param name="flush">
/// <see langword="true" /> to indicate that no further data is to be converted; otherwise, <see langword="false" />.</param>
/// <param name="bytesUsed">When this method returns, contains the number of bytes that were used in the conversion. This parameter is passed uninitialized.</param>
/// <param name="charsUsed">When this method returns, contains the number of characters from <paramref name="chars" /> that were produced by the conversion. This parameter is passed uninitialized.</param>
/// <param name="completed">When this method returns, contains <see langword="true" /> if all the characters specified by <paramref name="byteCount" /> were converted; otherwise, <see langword="false" />. This parameter is passed uninitialized.</param>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="chars" /> or <paramref name="bytes" /> is <see langword="null" /> (<see langword="Nothing" />).</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">
/// <paramref name="charIndex" />, <paramref name="charCount" />, <paramref name="byteIndex" />, or <paramref name="byteCount" /> is less than zero.
/// -or-
/// The length of <paramref name="chars" /> - <paramref name="charIndex" /> is less than <paramref name="charCount" />.
/// -or-
/// The length of <paramref name="bytes" /> - <paramref name="byteIndex" /> is less than <paramref name="byteCount" />.</exception>
/// <exception cref="T:System.ArgumentException">The output buffer is too small to contain any of the converted input. The output buffer should be greater than or equal to the size indicated by the <see cref="Overload:System.Text.Decoder.GetCharCount" /> method.</exception>
/// <exception cref="T:System.Text.DecoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for fuller explanation)
/// -and-
/// <see cref="P:System.Text.Decoder.Fallback" /> is set to <see cref="T:System.Text.DecoderExceptionFallback" />.</exception>
// Token: 0x06001126 RID: 4390 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001126")]
[Address(RVA = "0xD23F10", Offset = "0xD22F10", VA = "0x180D23F10", Slot = "11")]
[ComVisible(false)]
public virtual void Convert(byte[] bytes, int byteIndex, int byteCount, char[] chars, int charIndex, int charCount, bool flush, out int bytesUsed, out int charsUsed, out bool completed)
{
}
/// <summary>Converts a buffer of encoded bytes to UTF-16 encoded characters and stores the result in another buffer.</summary>
/// <param name="bytes">The address of a buffer that contains the byte sequences to convert.</param>
/// <param name="byteCount">The number of bytes in <paramref name="bytes" /> to convert.</param>
/// <param name="chars">The address of a buffer to store the converted characters.</param>
/// <param name="charCount">The maximum number of characters in <paramref name="chars" /> to use in the conversion.</param>
/// <param name="flush">
/// <see langword="true" /> to indicate no further data is to be converted; otherwise, <see langword="false" />.</param>
/// <param name="bytesUsed">When this method returns, contains the number of bytes that were produced by the conversion. This parameter is passed uninitialized.</param>
/// <param name="charsUsed">When this method returns, contains the number of characters from <paramref name="chars" /> that were used in the conversion. This parameter is passed uninitialized.</param>
/// <param name="completed">When this method returns, contains <see langword="true" /> if all the characters specified by <paramref name="byteCount" /> were converted; otherwise, <see langword="false" />. This parameter is passed uninitialized.</param>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="chars" /> or <paramref name="bytes" /> is <see langword="null" /> (<see langword="Nothing" />).</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">
/// <paramref name="charCount" /> or <paramref name="byteCount" /> is less than zero.</exception>
/// <exception cref="T:System.ArgumentException">The output buffer is too small to contain any of the converted input. The output buffer should be greater than or equal to the size indicated by the <see cref="Overload:System.Text.Decoder.GetCharCount" /> method.</exception>
/// <exception cref="T:System.Text.DecoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for fuller explanation)
/// -and-
/// <see cref="P:System.Text.Decoder.Fallback" /> is set to <see cref="T:System.Text.DecoderExceptionFallback" />.</exception>
// Token: 0x06001127 RID: 4391 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001127")]
[Address(RVA = "0xD23CE0", Offset = "0xD22CE0", VA = "0x180D23CE0", Slot = "12")]
[CLSCompliant(false)]
[ComVisible(false)]
public unsafe virtual void Convert(byte* bytes, int byteCount, char* chars, int charCount, bool flush, out int bytesUsed, out int charsUsed, out bool completed)
{
}
// Token: 0x040008E0 RID: 2272
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
[Token(Token = "0x40008E0")]
internal DecoderFallback m_fallback;
// Token: 0x040008E1 RID: 2273
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
[Token(Token = "0x40008E1")]
[NonSerialized]
internal DecoderFallbackBuffer m_fallbackBuffer;
}
}