using System;
using System.Runtime.InteropServices;
using System.Runtime.Serialization;
using Cpp2IlInjected;
namespace System.Text
{
/// Represents a UTF-16 encoding of Unicode characters.
// Token: 0x020001DD RID: 477
[Token(Token = "0x20001DD")]
[ComVisible(true)]
[Serializable]
public class UnicodeEncoding : Encoding
{
/// Initializes a new instance of the class.
// Token: 0x06001259 RID: 4697 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001259")]
[Address(RVA = "0x2930730", Offset = "0x292F530", VA = "0x182930730")]
public UnicodeEncoding()
{
}
/// Initializes a new instance of the class. Parameters specify whether to use the big endian byte order and whether the method returns a Unicode byte order mark.
///
/// to use the big endian byte order (most significant byte first), or to use the little endian byte order (least significant byte first).
///
/// to specify that the method returns a Unicode byte order mark; otherwise, .
// 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)
{
}
/// Initializes a new instance of the 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.
///
/// to use the big endian byte order (most significant byte first); to use the little endian byte order (least significant byte first).
///
/// to specify that the method returns a Unicode byte order mark; otherwise, .
///
/// to specify that an exception should be thrown when an invalid encoding is detected; otherwise, .
// 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()
{
}
/// Calculates the number of bytes produced by encoding a set of characters from the specified character array.
/// The character array containing the set of characters to encode.
/// The index of the first character to encode.
/// The number of characters to encode.
/// The number of bytes produced by encoding the specified characters.
///
/// is ().
///
/// or is less than zero.
/// -or-
/// and do not denote a valid range in .
/// -or-
/// The resulting number of bytes is greater than the maximum number that can be returned as an integer.
/// Error detection is enabled, and contains an invalid sequence of characters.
/// A fallback occurred (see Character Encoding in the .NET Framework for fuller explanation)
/// -and-
/// is set to .
// 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;
}
/// Calculates the number of bytes produced by encoding the characters in the specified string.
/// The string that contains the set of characters to encode.
/// The number of bytes produced by encoding the specified characters.
///
/// is .
/// The resulting number of bytes is greater than the maximum number that can be returned as an integer.
/// Error detection is enabled, and contains an invalid sequence of characters.
/// A fallback occurred (see Character Encoding in the .NET Framework for fuller explanation)
/// -and-
/// is set to .
// 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;
}
/// Calculates the number of bytes produced by encoding a set of characters starting at the specified character pointer.
/// A pointer to the first character to encode.
/// The number of characters to encode.
/// The number of bytes produced by encoding the specified characters.
///
/// is .
///
/// is less than zero.
/// -or-
/// The resulting number of bytes is greater than the maximum number that can be returned as an integer.
/// Error detection is enabled and contains an invalid sequence of characters.
/// A fallback occurred (see Character Encoding in the .NET Framework for fuller explanation)
/// -and-
/// is set to .
// 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;
}
/// Encodes a set of characters from the specified into the specified byte array.
/// The string containing the set of characters to encode.
/// The index of the first character to encode.
/// The number of characters to encode.
/// The byte array to contain the resulting sequence of bytes.
/// The index at which to start writing the resulting sequence of bytes.
/// The actual number of bytes written into .
///
/// is .
/// -or-
/// is ().
///
/// or or is less than zero.
/// -or-
/// and do not denote a valid range in .
/// -or-
/// is not a valid index in .
/// Error detection is enabled, and contains an invalid sequence of characters.
/// -or-
/// does not have enough capacity from to the end of the array to accommodate the resulting bytes.
/// A fallback occurred (see Character Encoding in the .NET Framework for fuller explanation)
/// -and-
/// is set to .
// 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;
}
/// Encodes a set of characters from the specified character array into the specified byte array.
/// The character array containing the set of characters to encode.
/// The index of the first character to encode.
/// The number of characters to encode.
/// The byte array to contain the resulting sequence of bytes.
/// The index at which to start writing the resulting sequence of bytes.
/// The actual number of bytes written into .
///
/// is ().
/// -or-
/// is ().
///
/// or or is less than zero.
/// -or-
/// and do not denote a valid range in .
/// -or-
/// is not a valid index in .
/// Error detection is enabled, and contains an invalid sequence of characters.
/// -or-
/// does not have enough capacity from to the end of the array to accommodate the resulting bytes.
/// A fallback occurred (see Character Encoding in the .NET Framework for fuller explanation)
/// -and-
/// is set to .
// 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;
}
/// 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.
/// A pointer to the first character to encode.
/// The number of characters to encode.
/// A pointer to the location at which to start writing the resulting sequence of bytes.
/// The maximum number of bytes to write.
/// The actual number of bytes written at the location indicated by the parameter.
///
/// is ().
/// -or-
/// is ().
///
/// or is less than zero.
/// Error detection is enabled, and contains an invalid sequence of characters.
/// -or-
/// is less than the resulting number of bytes.
/// A fallback occurred (see Character Encoding in the .NET Framework for fuller explanation)
/// -and-
/// is set to .
// 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;
}
/// Calculates the number of characters produced by decoding a sequence of bytes from the specified byte array.
/// The byte array containing the sequence of bytes to decode.
/// The index of the first byte to decode.
/// The number of bytes to decode.
/// The number of characters produced by decoding the specified sequence of bytes.
///
/// is ().
///
/// or is less than zero.
/// -or-
/// and do not denote a valid range in .
/// -or-
/// The resulting number of bytes is greater than the maximum number that can be returned as an integer.
/// Error detection is enabled, and contains an invalid sequence of bytes.
/// A fallback occurred (see Character Encoding in the .NET Framework for fuller explanation)
/// -and-
/// is set to .
// 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;
}
/// Calculates the number of characters produced by decoding a sequence of bytes starting at the specified byte pointer.
/// A pointer to the first byte to decode.
/// The number of bytes to decode.
/// The number of characters produced by decoding the specified sequence of bytes.
///
/// is ().
///
/// is less than zero.
/// -or-
/// The resulting number of bytes is greater than the maximum number that can be returned as an integer.
/// Error detection is enabled, and contains an invalid sequence of bytes.
/// A fallback occurred (see Character Encoding in the .NET Framework for fuller explanation)
/// -and-
/// is set to .
// 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;
}
/// Decodes a sequence of bytes from the specified byte array into the specified character array.
/// The byte array containing the sequence of bytes to decode.
/// The index of the first byte to decode.
/// The number of bytes to decode.
/// The character array to contain the resulting set of characters.
/// The index at which to start writing the resulting set of characters.
/// The actual number of characters written into .
///
/// is ().
/// -or-
/// is ().
///
/// or or is less than zero.
/// -or-
/// and do not denote a valid range in .
/// -or-
/// is not a valid index in .
/// Error detection is enabled, and contains an invalid sequence of bytes.
/// -or-
/// does not have enough capacity from to the end of the array to accommodate the resulting characters.
/// A fallback occurred (see Character Encoding in the .NET Framework for fuller explanation)
/// -and-
/// is set to .
// 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;
}
/// 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.
/// A pointer to the first byte to decode.
/// The number of bytes to decode.
/// A pointer to the location at which to start writing the resulting set of characters.
/// The maximum number of characters to write.
/// The actual number of characters written at the location indicated by the parameter.
///
/// is ().
/// -or-
/// is ().
///
/// or is less than zero.
/// Error detection is enabled, and contains an invalid sequence of bytes.
/// -or-
/// is less than the resulting number of characters.
/// A fallback occurred (see Character Encoding in the .NET Framework for fuller explanation)
/// -and-
/// is set to .
// 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;
}
/// Decodes a range of bytes from a byte array into a string.
/// The byte array containing the sequence of bytes to decode.
/// The index of the first byte to decode.
/// The number of bytes to decode.
/// A object containing the results of decoding the specified sequence of bytes.
///
/// is ().
///
/// or is less than zero.
/// -or-
/// and do not denote a valid range in .
/// Error detection is enabled, and contains an invalid sequence of bytes.
/// A fallback occurred (see Character Encoding in the .NET Framework for fuller explanation)
/// -and-
/// is set to .
// 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;
}
/// Obtains an encoder that converts a sequence of Unicode characters into a UTF-16 encoded sequence of bytes.
/// A object that converts a sequence of Unicode characters into a UTF-16 encoded sequence of bytes.
// 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;
}
/// Obtains a decoder that converts a UTF-16 encoded sequence of bytes into a sequence of Unicode characters.
/// A that converts a UTF-16 encoded sequence of bytes into a sequence of Unicode characters.
// 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;
}
/// Returns a Unicode byte order mark encoded in UTF-16 format, if the constructor for this instance requests a byte order mark.
/// A byte array containing the Unicode byte order mark, if the object is configured to supply one. Otherwise, this method returns a zero-length byte array.
// 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;
}
/// Calculates the maximum number of bytes produced by encoding the specified number of characters.
/// The number of characters to encode.
/// The maximum number of bytes produced by encoding the specified number of characters.
///
/// is less than zero.
/// -or-
/// The resulting number of bytes is greater than the maximum number that can be returned as an integer.
/// A fallback occurred (see Character Encoding in the .NET Framework for fuller explanation)
/// -and-
/// is set to .
// 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;
}
/// Calculates the maximum number of characters produced by decoding the specified number of bytes.
/// The number of bytes to decode.
/// The maximum number of characters produced by decoding the specified number of bytes.
///
/// is less than zero.
/// -or-
/// The resulting number of bytes is greater than the maximum number that can be returned as an integer.
/// A fallback occurred (see Character Encoding in the .NET Framework for fuller explanation)
/// -and-
/// is set to .
// 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;
}
/// Determines whether the specified is equal to the current object.
/// The object to compare with the current object.
///
/// if is an instance of and is equal to the current object; otherwise, .
// 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);
}
/// Returns the hash code for the current instance.
/// The hash code for the current object.
// 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;
}
}
}