Files
Aug2021-Cpp2IL-Dump/mscorlib/System/Text/UnicodeEncoding.cs
T
2026-04-10 22:50:51 +02:00

552 lines
32 KiB
C#

using System;
using System.Runtime.InteropServices;
using System.Runtime.Serialization;
using Cpp2IlInjected;
namespace System.Text
{
/// <summary>Represents a UTF-16 encoding of Unicode characters.</summary>
// Token: 0x020001DD RID: 477
[Token(Token = "0x20001DD")]
[ComVisible(true)]
[Serializable]
public class UnicodeEncoding : Encoding
{
/// <summary>Initializes a new instance of the <see cref="T:System.Text.UnicodeEncoding" /> class.</summary>
// Token: 0x06001259 RID: 4697 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001259")]
[Address(RVA = "0x2930730", Offset = "0x292F530", VA = "0x182930730")]
public UnicodeEncoding()
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Text.UnicodeEncoding" /> class. Parameters specify whether to use the big endian byte order and whether the <see cref="M:System.Text.UnicodeEncoding.GetPreamble" /> method returns a Unicode byte order mark.</summary>
/// <param name="bigEndian">
/// <see langword="true" /> to use the big endian byte order (most significant byte first), or <see langword="false" /> to use the little endian byte order (least significant byte first).</param>
/// <param name="byteOrderMark">
/// <see langword="true" /> to specify that the <see cref="M:System.Text.UnicodeEncoding.GetPreamble" /> method returns a Unicode byte order mark; otherwise, <see langword="false" />.</param>
// Token: 0x0600125A RID: 4698 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600125A")]
[Address(RVA = "0x2930670", Offset = "0x292F470", VA = "0x182930670")]
public UnicodeEncoding(bool bigEndian, bool byteOrderMark)
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Text.UnicodeEncoding" /> class. Parameters specify whether to use the big endian byte order, whether to provide a Unicode byte order mark, and whether to throw an exception when an invalid encoding is detected.</summary>
/// <param name="bigEndian">
/// <see langword="true" /> to use the big endian byte order (most significant byte first); <see langword="false" /> to use the little endian byte order (least significant byte first).</param>
/// <param name="byteOrderMark">
/// <see langword="true" /> to specify that the <see cref="M:System.Text.UnicodeEncoding.GetPreamble" /> method returns a Unicode byte order mark; otherwise, <see langword="false" />.</param>
/// <param name="throwOnInvalidBytes">
/// <see langword="true" /> to specify that an exception should be thrown when an invalid encoding is detected; otherwise, <see langword="false" />.</param>
// Token: 0x0600125B RID: 4699 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600125B")]
[Address(RVA = "0x29306C0", Offset = "0x292F4C0", VA = "0x1829306C0")]
public UnicodeEncoding(bool bigEndian, bool byteOrderMark, bool throwOnInvalidBytes)
{
}
// Token: 0x0600125C RID: 4700 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600125C")]
[Address(RVA = "0x134FD30", Offset = "0x134EB30", VA = "0x18134FD30")]
[OnDeserializing]
private void OnDeserializing(StreamingContext ctx)
{
}
// Token: 0x0600125D RID: 4701 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600125D")]
[Address(RVA = "0x2930550", Offset = "0x292F350", VA = "0x182930550", Slot = "5")]
internal override void SetDefaultFallbacks()
{
}
/// <summary>Calculates the number of bytes produced by encoding a set of characters from the specified character array.</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>
/// <returns>The number of bytes produced by encoding the specified characters.</returns>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="chars" /> 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="chars" />.
/// -or-
/// The resulting number of bytes is greater than the maximum number that can be returned as an integer.</exception>
/// <exception cref="T:System.ArgumentException">Error detection is enabled, and <paramref name="chars" /> contains an invalid sequence of characters.</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.Encoding.EncoderFallback" /> is set to <see cref="T:System.Text.EncoderExceptionFallback" />.</exception>
// Token: 0x0600125E RID: 4702 RVA: 0x0000E190 File Offset: 0x0000C390
[Token(Token = "0x600125E")]
[Address(RVA = "0x292D2F0", Offset = "0x292C0F0", VA = "0x18292D2F0", Slot = "13")]
public override int GetByteCount(char[] chars, int index, int count)
{
return 0;
}
/// <summary>Calculates the number of bytes produced by encoding the characters in the specified string.</summary>
/// <param name="s">The string that contains the set of characters to encode.</param>
/// <returns>The number of bytes produced by encoding the specified characters.</returns>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="s" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">The resulting number of bytes is greater than the maximum number that can be returned as an integer.</exception>
/// <exception cref="T:System.ArgumentException">Error detection is enabled, and <paramref name="s" /> contains an invalid sequence of characters.</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.Encoding.EncoderFallback" /> is set to <see cref="T:System.Text.EncoderExceptionFallback" />.</exception>
// Token: 0x0600125F RID: 4703 RVA: 0x0000E1A8 File Offset: 0x0000C3A8
[Token(Token = "0x600125F")]
[Address(RVA = "0x292C9A0", Offset = "0x292B7A0", VA = "0x18292C9A0", Slot = "12")]
public override int GetByteCount(string s)
{
return 0;
}
/// <summary>Calculates the number of bytes produced by encoding a set of characters starting at the specified character pointer.</summary>
/// <param name="chars">A pointer to the first character to encode.</param>
/// <param name="count">The number of characters to encode.</param>
/// <returns>The number of bytes produced by encoding the specified characters.</returns>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="chars" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">
/// <paramref name="count" /> is less than zero.
/// -or-
/// The resulting number of bytes is greater than the maximum number that can be returned as an integer.</exception>
/// <exception cref="T:System.ArgumentException">Error detection is enabled and <paramref name="chars" /> contains an invalid sequence of characters.</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.Encoding.EncoderFallback" /> is set to <see cref="T:System.Text.EncoderExceptionFallback" />.</exception>
// Token: 0x06001260 RID: 4704 RVA: 0x0000E1C0 File Offset: 0x0000C3C0
[Token(Token = "0x6001260")]
[Address(RVA = "0x292CA40", Offset = "0x292B840", VA = "0x18292CA40", Slot = "14")]
[ComVisible(false)]
[CLSCompliant(false)]
public unsafe override int GetByteCount(char* chars, int count)
{
return 0;
}
/// <summary>Encodes a set of characters from the specified <see cref="T:System.String" /> into the specified byte array.</summary>
/// <param name="s">The string 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>
/// <returns>The actual number of bytes written into <paramref name="bytes" />.</returns>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="s" /> is <see langword="null" />.
/// -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">Error detection is enabled, and <paramref name="s" /> contains an invalid sequence of characters.
/// -or-
/// <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.Encoding.EncoderFallback" /> is set to <see cref="T:System.Text.EncoderExceptionFallback" />.</exception>
// Token: 0x06001261 RID: 4705 RVA: 0x0000E1D8 File Offset: 0x0000C3D8
[Token(Token = "0x6001261")]
[Address(RVA = "0x292DE10", Offset = "0x292CC10", VA = "0x18292DE10", Slot = "20")]
public override int GetBytes(string s, int charIndex, int charCount, byte[] bytes, int byteIndex)
{
return 0;
}
/// <summary>Encodes a set of characters from the specified character array into the specified byte array.</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>
/// <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">Error detection is enabled, and <paramref name="chars" /> contains an invalid sequence of characters.
/// -or-
/// <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.Encoding.EncoderFallback" /> is set to <see cref="T:System.Text.EncoderExceptionFallback" />.</exception>
// Token: 0x06001262 RID: 4706 RVA: 0x0000E1F0 File Offset: 0x0000C3F0
[Token(Token = "0x6001262")]
[Address(RVA = "0x292E1B0", Offset = "0x292CFB0", VA = "0x18292E1B0", Slot = "18")]
public override int GetBytes(char[] chars, int charIndex, int charCount, byte[] bytes, int byteIndex)
{
return 0;
}
/// <summary>Encodes a set of characters starting at the specified character pointer into a sequence of bytes that are stored starting at the specified byte pointer.</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>
/// <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">Error detection is enabled, and <paramref name="chars" /> contains an invalid sequence of characters.
/// -or-
/// <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.Encoding.EncoderFallback" /> is set to <see cref="T:System.Text.EncoderExceptionFallback" />.</exception>
// Token: 0x06001263 RID: 4707 RVA: 0x0000E208 File Offset: 0x0000C408
[Token(Token = "0x6001263")]
[Address(RVA = "0x292E070", Offset = "0x292CE70", VA = "0x18292E070", Slot = "22")]
[ComVisible(false)]
[CLSCompliant(false)]
public unsafe override int GetBytes(char* chars, int charCount, byte* bytes, int byteCount)
{
return 0;
}
/// <summary>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.</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" />.
/// -or-
/// The resulting number of bytes is greater than the maximum number that can be returned as an integer.</exception>
/// <exception cref="T:System.ArgumentException">Error detection is enabled, and <paramref name="bytes" /> contains an invalid sequence of 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.Encoding.DecoderFallback" /> is set to <see cref="T:System.Text.DecoderExceptionFallback" />.</exception>
// Token: 0x06001264 RID: 4708 RVA: 0x0000E220 File Offset: 0x0000C420
[Token(Token = "0x6001264")]
[Address(RVA = "0x292EEC0", Offset = "0x292DCC0", VA = "0x18292EEC0", Slot = "23")]
public override int GetCharCount(byte[] bytes, int index, int count)
{
return 0;
}
/// <summary>Calculates the number of characters produced by decoding a sequence of bytes starting at the specified byte pointer.</summary>
/// <param name="bytes">A pointer to 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.</returns>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="bytes" /> is <see langword="null" /> (<see langword="Nothing" />).</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">
/// <paramref name="count" /> is less than zero.
/// -or-
/// The resulting number of bytes is greater than the maximum number that can be returned as an integer.</exception>
/// <exception cref="T:System.ArgumentException">Error detection is enabled, and <paramref name="bytes" /> contains an invalid sequence of 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.Encoding.DecoderFallback" /> is set to <see cref="T:System.Text.DecoderExceptionFallback" />.</exception>
// Token: 0x06001265 RID: 4709 RVA: 0x0000E238 File Offset: 0x0000C438
[Token(Token = "0x6001265")]
[Address(RVA = "0x292E410", Offset = "0x292D210", VA = "0x18292E410", Slot = "24")]
[ComVisible(false)]
[CLSCompliant(false)]
public unsafe override int GetCharCount(byte* bytes, int count)
{
return 0;
}
/// <summary>Decodes a sequence of bytes from the specified byte array 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">Error detection is enabled, and <paramref name="bytes" /> contains an invalid sequence of bytes.
/// -or-
/// <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.Encoding.DecoderFallback" /> is set to <see cref="T:System.Text.DecoderExceptionFallback" />.</exception>
// Token: 0x06001266 RID: 4710 RVA: 0x0000E250 File Offset: 0x0000C450
[Token(Token = "0x6001266")]
[Address(RVA = "0x292F050", Offset = "0x292DE50", VA = "0x18292F050", Slot = "28")]
public override int GetChars(byte[] bytes, int byteIndex, int byteCount, char[] chars, int charIndex)
{
return 0;
}
/// <summary>Decodes a sequence of bytes starting at the specified byte pointer into a set of characters that are stored starting at the specified character pointer.</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>
/// <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">Error detection is enabled, and <paramref name="bytes" /> contains an invalid sequence of bytes.
/// -or-
/// <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.Encoding.DecoderFallback" /> is set to <see cref="T:System.Text.DecoderExceptionFallback" />.</exception>
// Token: 0x06001267 RID: 4711 RVA: 0x0000E268 File Offset: 0x0000C468
[Token(Token = "0x6001267")]
[Address(RVA = "0x292F2B0", Offset = "0x292E0B0", VA = "0x18292F2B0", Slot = "29")]
[ComVisible(false)]
[CLSCompliant(false)]
public unsafe override int GetChars(byte* bytes, int byteCount, char* chars, int charCount)
{
return 0;
}
/// <summary>Decodes a range of bytes from a byte array into a string.</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>A <see cref="T:System.String" /> object containing the results of decoding the specified sequence of bytes.</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.ArgumentException">Error detection is enabled, and <paramref name="bytes" /> contains an invalid sequence of 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.Encoding.DecoderFallback" /> is set to <see cref="T:System.Text.DecoderExceptionFallback" />.</exception>
// Token: 0x06001268 RID: 4712 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6001268")]
[Address(RVA = "0x29303C0", Offset = "0x292F1C0", VA = "0x1829303C0", Slot = "37")]
[ComVisible(false)]
public override string GetString(byte[] bytes, int index, int count)
{
return null;
}
// Token: 0x06001269 RID: 4713 RVA: 0x0000E280 File Offset: 0x0000C480
[Token(Token = "0x6001269")]
[Address(RVA = "0x292CB40", Offset = "0x292B940", VA = "0x18292CB40", Slot = "15")]
internal unsafe override int GetByteCount(char* chars, int count, EncoderNLS encoder)
{
return 0;
}
// Token: 0x0600126A RID: 4714 RVA: 0x0000E298 File Offset: 0x0000C498
[Token(Token = "0x600126A")]
[Address(RVA = "0x292D480", Offset = "0x292C280", VA = "0x18292D480", Slot = "21")]
internal unsafe override int GetBytes(char* chars, int charCount, byte* bytes, int byteCount, EncoderNLS encoder)
{
return 0;
}
// Token: 0x0600126B RID: 4715 RVA: 0x0000E2B0 File Offset: 0x0000C4B0
[Token(Token = "0x600126B")]
[Address(RVA = "0x292E510", Offset = "0x292D310", VA = "0x18292E510", Slot = "25")]
internal unsafe override int GetCharCount(byte* bytes, int count, DecoderNLS baseDecoder)
{
return 0;
}
// Token: 0x0600126C RID: 4716 RVA: 0x0000E2C8 File Offset: 0x0000C4C8
[Token(Token = "0x600126C")]
[Address(RVA = "0x292F3F0", Offset = "0x292E1F0", VA = "0x18292F3F0", Slot = "30")]
internal unsafe override int GetChars(byte* bytes, int byteCount, char* chars, int charCount, DecoderNLS baseDecoder)
{
return 0;
}
/// <summary>Obtains an encoder that converts a sequence of Unicode characters into a UTF-16 encoded sequence of bytes.</summary>
/// <returns>A <see cref="T:System.Text.Encoder" /> object that converts a sequence of Unicode characters into a UTF-16 encoded sequence of bytes.</returns>
// Token: 0x0600126D RID: 4717 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600126D")]
[Address(RVA = "0x292FF50", Offset = "0x292ED50", VA = "0x18292FF50", Slot = "33")]
[ComVisible(false)]
public override Encoder GetEncoder()
{
return null;
}
/// <summary>Obtains a decoder that converts a UTF-16 encoded sequence of bytes into a sequence of Unicode characters.</summary>
/// <returns>A <see cref="T:System.Text.Decoder" /> that converts a UTF-16 encoded sequence of bytes into a sequence of Unicode characters.</returns>
// Token: 0x0600126E RID: 4718 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600126E")]
[Address(RVA = "0x292FEF0", Offset = "0x292ECF0", VA = "0x18292FEF0", Slot = "32")]
public override global::System.Text.Decoder GetDecoder()
{
return null;
}
/// <summary>Returns a Unicode byte order mark encoded in UTF-16 format, if the constructor for this instance requests a byte order mark.</summary>
/// <returns>A byte array containing the Unicode byte order mark, if the <see cref="T:System.Text.UnicodeEncoding" /> object is configured to supply one. Otherwise, this method returns a zero-length byte array.</returns>
// Token: 0x0600126F RID: 4719 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600126F")]
[Address(RVA = "0x29302B0", Offset = "0x292F0B0", VA = "0x1829302B0", Slot = "6")]
public override byte[] GetPreamble()
{
return null;
}
/// <summary>Calculates the maximum number of bytes produced by encoding the specified number of characters.</summary>
/// <param name="charCount">The number of characters to encode.</param>
/// <returns>The maximum number of bytes produced by encoding the specified number of characters.</returns>
/// <exception cref="T:System.ArgumentOutOfRangeException">
/// <paramref name="charCount" /> is less than zero.
/// -or-
/// The resulting number of bytes is greater than the maximum number that can be returned as an integer.</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.Encoding.EncoderFallback" /> is set to <see cref="T:System.Text.EncoderExceptionFallback" />.</exception>
// Token: 0x06001270 RID: 4720 RVA: 0x0000E2E0 File Offset: 0x0000C4E0
[Token(Token = "0x6001270")]
[Address(RVA = "0x2930050", Offset = "0x292EE50", VA = "0x182930050", Slot = "34")]
public override int GetMaxByteCount(int charCount)
{
return 0;
}
/// <summary>Calculates the maximum number of characters produced by decoding the specified number of bytes.</summary>
/// <param name="byteCount">The number of bytes to decode.</param>
/// <returns>The maximum number of characters produced by decoding the specified number of bytes.</returns>
/// <exception cref="T:System.ArgumentOutOfRangeException">
/// <paramref name="byteCount" /> is less than zero.
/// -or-
/// The resulting number of bytes is greater than the maximum number that can be returned as an integer.</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.Encoding.DecoderFallback" /> is set to <see cref="T:System.Text.DecoderExceptionFallback" />.</exception>
// Token: 0x06001271 RID: 4721 RVA: 0x0000E2F8 File Offset: 0x0000C4F8
[Token(Token = "0x6001271")]
[Address(RVA = "0x2930180", Offset = "0x292EF80", VA = "0x182930180", Slot = "35")]
public override int GetMaxCharCount(int byteCount)
{
return 0;
}
/// <summary>Determines whether the specified <see cref="T:System.Object" /> is equal to the current <see cref="T:System.Text.UnicodeEncoding" /> object.</summary>
/// <param name="value">The object to compare with the current object.</param>
/// <returns>
/// <see langword="true" /> if <paramref name="value" /> is an instance of <see cref="T:System.Text.UnicodeEncoding" /> and is equal to the current object; otherwise, <see langword="false" />.</returns>
// Token: 0x06001272 RID: 4722 RVA: 0x0000E310 File Offset: 0x0000C510
[Token(Token = "0x6001272")]
[Address(RVA = "0x292C880", Offset = "0x292B680", VA = "0x18292C880", Slot = "0")]
public override bool Equals(object value)
{
return default(bool);
}
/// <summary>Returns the hash code for the current instance.</summary>
/// <returns>The hash code for the current <see cref="T:System.Text.UnicodeEncoding" /> object.</returns>
// Token: 0x06001273 RID: 4723 RVA: 0x0000E328 File Offset: 0x0000C528
[Token(Token = "0x6001273")]
[Address(RVA = "0x292FFB0", Offset = "0x292EDB0", VA = "0x18292FFB0", Slot = "2")]
public override int GetHashCode()
{
return 0;
}
// Token: 0x04000978 RID: 2424
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
[Token(Token = "0x4000978")]
[OptionalField]
internal bool isThrowException;
// Token: 0x04000979 RID: 2425
[global::Cpp2IlInjected.FieldOffset(Offset = "0x39")]
[Token(Token = "0x4000979")]
internal bool bigEndian;
// Token: 0x0400097A RID: 2426
[global::Cpp2IlInjected.FieldOffset(Offset = "0x3A")]
[Token(Token = "0x400097A")]
internal bool byteOrderMark;
// Token: 0x0400097B RID: 2427
[Token(Token = "0x400097B")]
private static readonly ulong highLowPatternMask;
// Token: 0x020001DE RID: 478
[Token(Token = "0x20001DE")]
[Serializable]
private class Decoder : DecoderNLS, ISerializable
{
// Token: 0x06001275 RID: 4725 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001275")]
[Address(RVA = "0x291FC20", Offset = "0x291EA20", VA = "0x18291FC20")]
public Decoder(UnicodeEncoding encoding)
{
}
// Token: 0x06001276 RID: 4726 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001276")]
[Address(RVA = "0x291FC30", Offset = "0x291EA30", VA = "0x18291FC30")]
internal Decoder(SerializationInfo info, StreamingContext context)
{
}
// Token: 0x06001277 RID: 4727 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001277")]
[Address(RVA = "0x291FAA0", Offset = "0x291E8A0", VA = "0x18291FAA0", Slot = "13")]
void ISerializable.GetObjectData(SerializationInfo info, StreamingContext context)
{
}
// Token: 0x06001278 RID: 4728 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001278")]
[Address(RVA = "0x291FA70", Offset = "0x291E870", VA = "0x18291FA70", Slot = "4")]
public override void Reset()
{
}
// Token: 0x170001D6 RID: 470
// (get) Token: 0x06001279 RID: 4729 RVA: 0x0000E340 File Offset: 0x0000C540
[Token(Token = "0x170001D6")]
internal override bool HasState
{
[Token(Token = "0x6001279")]
[Address(RVA = "0x291FF80", Offset = "0x291ED80", VA = "0x18291FF80", Slot = "14")]
get
{
return default(bool);
}
}
// Token: 0x0400097C RID: 2428
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
[Token(Token = "0x400097C")]
internal int lastByte;
// Token: 0x0400097D RID: 2429
[global::Cpp2IlInjected.FieldOffset(Offset = "0x34")]
[Token(Token = "0x400097D")]
internal char lastChar;
}
}
}