m
This commit is contained in:
@@ -0,0 +1,261 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Runtime.Serialization;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace System.Text
|
||||
{
|
||||
/// <summary>Converts a set of characters into a sequence of bytes.</summary>
|
||||
// Token: 0x020001CF RID: 463
|
||||
[Token(Token = "0x20001CF")]
|
||||
[ComVisible(true)]
|
||||
[Serializable]
|
||||
public abstract class Encoder
|
||||
{
|
||||
// Token: 0x0600116F RID: 4463 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x600116F")]
|
||||
[Address(RVA = "0xD27E40", Offset = "0xD26E40", VA = "0x180D27E40")]
|
||||
internal void SerializeEncoder(SerializationInfo info)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Initializes a new instance of the <see cref="T:System.Text.Encoder" /> class.</summary>
|
||||
// Token: 0x06001170 RID: 4464 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6001170")]
|
||||
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
|
||||
protected Encoder()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Gets or sets a <see cref="T:System.Text.EncoderFallback" /> object for the current <see cref="T:System.Text.Encoder" /> object.</summary>
|
||||
/// <returns>A <see cref="T:System.Text.EncoderFallback" /> 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.EncoderFallbackBuffer" /> object contains data that has not been encoded yet.</exception>
|
||||
/// <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for fuller explanation)
|
||||
/// -and-
|
||||
/// <see cref="P:System.Text.Encoder.Fallback" /> is set to <see cref="T:System.Text.EncoderExceptionFallback" />.</exception>
|
||||
// Token: 0x170001B0 RID: 432
|
||||
// (get) Token: 0x06001171 RID: 4465 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x170001B0")]
|
||||
[ComVisible(false)]
|
||||
public EncoderFallback Fallback
|
||||
{
|
||||
[Token(Token = "0x6001171")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
||||
get
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Gets the <see cref="T:System.Text.EncoderFallbackBuffer" /> object associated with the current <see cref="T:System.Text.Encoder" /> object.</summary>
|
||||
/// <returns>A <see cref="T:System.Text.EncoderFallbackBuffer" /> object.</returns>
|
||||
// Token: 0x170001B1 RID: 433
|
||||
// (get) Token: 0x06001172 RID: 4466 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x170001B1")]
|
||||
[ComVisible(false)]
|
||||
public EncoderFallbackBuffer FallbackBuffer
|
||||
{
|
||||
[Token(Token = "0x6001172")]
|
||||
[Address(RVA = "0xD27EA0", Offset = "0xD26EA0", VA = "0x180D27EA0")]
|
||||
get
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170001B2 RID: 434
|
||||
// (get) Token: 0x06001173 RID: 4467 RVA: 0x0000DB90 File Offset: 0x0000BD90
|
||||
[Token(Token = "0x170001B2")]
|
||||
internal bool InternalHasFallbackBuffer
|
||||
{
|
||||
[Token(Token = "0x6001173")]
|
||||
[Address(RVA = "0x5EFE20", Offset = "0x5EEE20", VA = "0x1805EFE20")]
|
||||
get
|
||||
{
|
||||
return default(bool);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>When overridden in a derived class, sets the encoder back to its initial state.</summary>
|
||||
// Token: 0x06001174 RID: 4468 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6001174")]
|
||||
[Address(RVA = "0xD27D70", Offset = "0xD26D70", VA = "0x180D27D70", Slot = "4")]
|
||||
[ComVisible(false)]
|
||||
public virtual void Reset()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>When overridden in a derived class, calculates the number of bytes produced by encoding a set of characters from the specified character array. A parameter indicates whether to clear the internal state of the encoder after the calculation.</summary>
|
||||
/// <param name="chars">The character array containing the set of characters to encode.</param>
|
||||
/// <param name="index">The index of the first character to encode.</param>
|
||||
/// <param name="count">The number of characters to encode.</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 bytes produced by encoding the specified characters and any characters in the internal buffer.</returns>
|
||||
/// <exception cref="T:System.ArgumentNullException">
|
||||
/// <paramref name="chars" /> is <see langword="null" />.</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="chars" />.</exception>
|
||||
/// <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for fuller explanation)
|
||||
/// -and-
|
||||
/// <see cref="P:System.Text.Encoder.Fallback" /> is set to <see cref="T:System.Text.EncoderExceptionFallback" />.</exception>
|
||||
// Token: 0x06001175 RID: 4469
|
||||
[Token(Token = "0x6001175")]
|
||||
[Address(Slot = "5")]
|
||||
public abstract int GetByteCount(char[] chars, int index, int count, bool flush);
|
||||
|
||||
/// <summary>When overridden in a derived class, calculates the number of bytes produced by encoding a set of characters starting at the specified character pointer. A parameter indicates whether to clear the internal state of the encoder after the calculation.</summary>
|
||||
/// <param name="chars">A pointer to the first character to encode.</param>
|
||||
/// <param name="count">The number of characters to encode.</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 bytes produced by encoding the specified characters and any characters in the internal buffer.</returns>
|
||||
/// <exception cref="T:System.ArgumentNullException">
|
||||
/// <paramref name="chars" /> 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.EncoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for fuller explanation)
|
||||
/// -and-
|
||||
/// <see cref="P:System.Text.Encoder.Fallback" /> is set to <see cref="T:System.Text.EncoderExceptionFallback" />.</exception>
|
||||
// Token: 0x06001176 RID: 4470 RVA: 0x0000DBA8 File Offset: 0x0000BDA8
|
||||
[Token(Token = "0x6001176")]
|
||||
[Address(RVA = "0xD279D0", Offset = "0xD269D0", VA = "0x180D279D0", Slot = "6")]
|
||||
[ComVisible(false)]
|
||||
[CLSCompliant(false)]
|
||||
public unsafe virtual int GetByteCount(char* chars, int count, bool flush)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
/// <summary>When overridden in a derived class, encodes a set of characters from the specified character array and any characters in the internal buffer into the specified byte array. A parameter indicates whether to clear the internal state of the encoder after the conversion.</summary>
|
||||
/// <param name="chars">The character array containing the set of characters to encode.</param>
|
||||
/// <param name="charIndex">The index of the first character to encode.</param>
|
||||
/// <param name="charCount">The number of characters to encode.</param>
|
||||
/// <param name="bytes">The byte array to contain the resulting sequence of bytes.</param>
|
||||
/// <param name="byteIndex">The index at which to start writing the resulting sequence of bytes.</param>
|
||||
/// <param name="flush">
|
||||
/// <see langword="true" /> to clear the internal state of the encoder after the conversion; otherwise, <see langword="false" />.</param>
|
||||
/// <returns>The actual number of bytes written into <paramref name="bytes" />.</returns>
|
||||
/// <exception cref="T:System.ArgumentNullException">
|
||||
/// <paramref name="chars" /> is <see langword="null" /> (<see langword="Nothing" />).
|
||||
/// -or-
|
||||
/// <paramref name="bytes" /> is <see langword="null" /> (<see langword="Nothing" />).</exception>
|
||||
/// <exception cref="T:System.ArgumentOutOfRangeException">
|
||||
/// <paramref name="charIndex" /> or <paramref name="charCount" /> or <paramref name="byteIndex" /> is less than zero.
|
||||
/// -or-
|
||||
/// <paramref name="charIndex" /> and <paramref name="charCount" /> do not denote a valid range in <paramref name="chars" />.
|
||||
/// -or-
|
||||
/// <paramref name="byteIndex" /> is not a valid index in <paramref name="bytes" />.</exception>
|
||||
/// <exception cref="T:System.ArgumentException">
|
||||
/// <paramref name="bytes" /> does not have enough capacity from <paramref name="byteIndex" /> to the end of the array to accommodate the resulting bytes.</exception>
|
||||
/// <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for fuller explanation)
|
||||
/// -and-
|
||||
/// <see cref="P:System.Text.Encoder.Fallback" /> is set to <see cref="T:System.Text.EncoderExceptionFallback" />.</exception>
|
||||
// Token: 0x06001177 RID: 4471
|
||||
[Token(Token = "0x6001177")]
|
||||
[Address(Slot = "7")]
|
||||
public abstract int GetBytes(char[] chars, int charIndex, int charCount, byte[] bytes, int byteIndex, bool flush);
|
||||
|
||||
/// <summary>When overridden in a derived class, encodes a set of characters starting at the specified character pointer and any characters in the internal buffer into a sequence of bytes that are stored starting at the specified byte pointer. A parameter indicates whether to clear the internal state of the encoder after the conversion.</summary>
|
||||
/// <param name="chars">A pointer to the first character to encode.</param>
|
||||
/// <param name="charCount">The number of characters to encode.</param>
|
||||
/// <param name="bytes">A pointer to the location at which to start writing the resulting sequence of bytes.</param>
|
||||
/// <param name="byteCount">The maximum number of bytes to write.</param>
|
||||
/// <param name="flush">
|
||||
/// <see langword="true" /> to clear the internal state of the encoder after the conversion; otherwise, <see langword="false" />.</param>
|
||||
/// <returns>The actual number of bytes written at the location indicated by the <paramref name="bytes" /> parameter.</returns>
|
||||
/// <exception cref="T:System.ArgumentNullException">
|
||||
/// <paramref name="chars" /> is <see langword="null" /> (<see langword="Nothing" />).
|
||||
/// -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">
|
||||
/// <paramref name="byteCount" /> is less than the resulting number of bytes.</exception>
|
||||
/// <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for fuller explanation)
|
||||
/// -and-
|
||||
/// <see cref="P:System.Text.Encoder.Fallback" /> is set to <see cref="T:System.Text.EncoderExceptionFallback" />.</exception>
|
||||
// Token: 0x06001178 RID: 4472 RVA: 0x0000DBC0 File Offset: 0x0000BDC0
|
||||
[Token(Token = "0x6001178")]
|
||||
[Address(RVA = "0xD27B40", Offset = "0xD26B40", VA = "0x180D27B40", Slot = "8")]
|
||||
[ComVisible(false)]
|
||||
[CLSCompliant(false)]
|
||||
public unsafe virtual int GetBytes(char* chars, int charCount, byte* bytes, int byteCount, bool flush)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
/// <summary>Converts an array of Unicode characters to an encoded byte sequence and stores the result in an array of bytes.</summary>
|
||||
/// <param name="chars">An array of characters to convert.</param>
|
||||
/// <param name="charIndex">The first element of <paramref name="chars" /> to convert.</param>
|
||||
/// <param name="charCount">The number of elements of <paramref name="chars" /> to convert.</param>
|
||||
/// <param name="bytes">An array where the converted bytes are stored.</param>
|
||||
/// <param name="byteIndex">The first element of <paramref name="bytes" /> in which data is stored.</param>
|
||||
/// <param name="byteCount">The maximum number of elements of <paramref name="bytes" /> 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="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="bytesUsed">When this method returns, contains the number of bytes 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="charCount" /> 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.Encoder.GetByteCount" /> method.</exception>
|
||||
/// <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for fuller explanation)
|
||||
/// -and-
|
||||
/// <see cref="P:System.Text.Encoder.Fallback" /> is set to <see cref="T:System.Text.EncoderExceptionFallback" />.</exception>
|
||||
// Token: 0x06001179 RID: 4473 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6001179")]
|
||||
[Address(RVA = "0xD27670", Offset = "0xD26670", VA = "0x180D27670", Slot = "9")]
|
||||
[ComVisible(false)]
|
||||
public virtual void Convert(char[] chars, int charIndex, int charCount, byte[] bytes, int byteIndex, int byteCount, bool flush, out int charsUsed, out int bytesUsed, out bool completed)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Converts a buffer of Unicode characters to an encoded byte sequence and stores the result in another buffer.</summary>
|
||||
/// <param name="chars">The address of a string of UTF-16 encoded characters to convert.</param>
|
||||
/// <param name="charCount">The number of characters in <paramref name="chars" /> to convert.</param>
|
||||
/// <param name="bytes">The address of a buffer to store the converted bytes.</param>
|
||||
/// <param name="byteCount">The maximum number of bytes in <paramref name="bytes" /> 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="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="bytesUsed">When this method returns, contains the number of bytes 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="charCount" /> 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.Encoder.GetByteCount" /> method.</exception>
|
||||
/// <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for fuller explanation)
|
||||
/// -and-
|
||||
/// <see cref="P:System.Text.Encoder.Fallback" /> is set to <see cref="T:System.Text.EncoderExceptionFallback" />.</exception>
|
||||
// Token: 0x0600117A RID: 4474 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x600117A")]
|
||||
[Address(RVA = "0xD27440", Offset = "0xD26440", VA = "0x180D27440", Slot = "10")]
|
||||
[CLSCompliant(false)]
|
||||
[ComVisible(false)]
|
||||
public unsafe virtual void Convert(char* chars, int charCount, byte* bytes, int byteCount, bool flush, out int charsUsed, out int bytesUsed, out bool completed)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x040008FA RID: 2298
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40008FA")]
|
||||
internal EncoderFallback m_fallback;
|
||||
|
||||
// Token: 0x040008FB RID: 2299
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40008FB")]
|
||||
[NonSerialized]
|
||||
internal EncoderFallbackBuffer m_fallbackBuffer;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user