This commit is contained in:
niko
2026-04-10 22:50:51 +02:00
parent 6d1607d5a2
commit f18d448581
17033 changed files with 2863270 additions and 0 deletions
+311
View File
@@ -0,0 +1,311 @@
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: 0x020001BD RID: 445
[Token(Token = "0x20001BD")]
[ComVisible(true)]
[Serializable]
public abstract class Decoder
{
// Token: 0x060010E4 RID: 4324 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60010E4")]
[Address(RVA = "0x2C40C10", Offset = "0x2C3FA10", VA = "0x182C40C10")]
internal void SerializeDecoder(SerializationInfo info)
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Text.Decoder" /> class.</summary>
// Token: 0x060010E5 RID: 4325 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60010E5")]
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
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: 0x17000197 RID: 407
// (get) Token: 0x060010E6 RID: 4326 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x17000197")]
[ComVisible(false)]
public DecoderFallback Fallback
{
[Token(Token = "0x60010E6")]
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
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: 0x17000198 RID: 408
// (get) Token: 0x060010E7 RID: 4327 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x17000198")]
[ComVisible(false)]
public DecoderFallbackBuffer FallbackBuffer
{
[Token(Token = "0x60010E7")]
[Address(RVA = "0x2C40C70", Offset = "0x2C3FA70", VA = "0x182C40C70")]
get
{
return null;
}
}
// Token: 0x17000199 RID: 409
// (get) Token: 0x060010E8 RID: 4328 RVA: 0x0000D518 File Offset: 0x0000B718
[Token(Token = "0x17000199")]
internal bool InternalHasFallbackBuffer
{
[Token(Token = "0x60010E8")]
[Address(RVA = "0x1227D50", Offset = "0x1226B50", VA = "0x181227D50")]
get
{
return default(bool);
}
}
/// <summary>When overridden in a derived class, sets the decoder back to its initial state.</summary>
// Token: 0x060010E9 RID: 4329 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60010E9")]
[Address(RVA = "0x2C40B40", Offset = "0x2C3F940", VA = "0x182C40B40", 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: 0x060010EA RID: 4330
[Token(Token = "0x60010EA")]
[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: 0x060010EB RID: 4331 RVA: 0x0000D530 File Offset: 0x0000B730
[Token(Token = "0x60010EB")]
[Address(RVA = "0x2C408D0", Offset = "0x2C3F6D0", VA = "0x182C408D0", 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: 0x060010EC RID: 4332 RVA: 0x0000D548 File Offset: 0x0000B748
[Token(Token = "0x60010EC")]
[Address(RVA = "0x2C40780", Offset = "0x2C3F580", VA = "0x182C40780", Slot = "7")]
[CLSCompliant(false)]
[ComVisible(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: 0x060010ED RID: 4333
[Token(Token = "0x60010ED")]
[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: 0x060010EE RID: 4334 RVA: 0x0000D560 File Offset: 0x0000B760
[Token(Token = "0x60010EE")]
[Address(RVA = "0x2C40B20", Offset = "0x2C3F920", VA = "0x182C40B20", 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: 0x060010EF RID: 4335 RVA: 0x0000D578 File Offset: 0x0000B778
[Token(Token = "0x60010EF")]
[Address(RVA = "0x2C408F0", Offset = "0x2C3F6F0", VA = "0x182C408F0", 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: 0x060010F0 RID: 4336 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60010F0")]
[Address(RVA = "0x2C40420", Offset = "0x2C3F220", VA = "0x182C40420", 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: 0x060010F1 RID: 4337 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60010F1")]
[Address(RVA = "0x2C401E0", Offset = "0x2C3EFE0", VA = "0x182C401E0", Slot = "12")]
[ComVisible(false)]
[CLSCompliant(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: 0x040008D6 RID: 2262
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
[Token(Token = "0x40008D6")]
internal DecoderFallback m_fallback;
// Token: 0x040008D7 RID: 2263
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
[Token(Token = "0x40008D7")]
[NonSerialized]
internal DecoderFallbackBuffer m_fallbackBuffer;
}
}