using System; using System.Runtime.InteropServices; using System.Runtime.Serialization; using Cpp2IlInjected; namespace System.Text { /// Represents a UTF-8 encoding of Unicode characters. // Token: 0x020001E6 RID: 486 [Token(Token = "0x20001E6")] [ComVisible(true)] [Serializable] public class UTF8Encoding : Encoding { /// Initializes a new instance of the class. // Token: 0x060012C9 RID: 4809 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x60012C9")] [Address(RVA = "0x292C850", Offset = "0x292B650", VA = "0x18292C850")] public UTF8Encoding() { } /// Initializes a new instance of the class. A parameter specifies whether to provide a Unicode byte order mark. /// /// to specify that the method returns a Unicode byte order mark; otherwise, . // Token: 0x060012CA RID: 4810 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x60012CA")] [Address(RVA = "0x292C820", Offset = "0x292B620", VA = "0x18292C820")] public UTF8Encoding(bool encoderShouldEmitUTF8Identifier) { } /// Initializes a new instance of the class. Parameters specify whether to provide a Unicode byte order mark and whether to throw an exception when an invalid encoding is detected. /// /// to specify that the method should return a Unicode byte order mark; otherwise, . /// /// to throw an exception when an invalid encoding is detected; otherwise, . // Token: 0x060012CB RID: 4811 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x60012CB")] [Address(RVA = "0x292C7C0", Offset = "0x292B5C0", VA = "0x18292C7C0")] public UTF8Encoding(bool encoderShouldEmitUTF8Identifier, bool throwOnInvalidBytes) { } // Token: 0x060012CC RID: 4812 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x60012CC")] [Address(RVA = "0x292C720", Offset = "0x292B520", VA = "0x18292C720", 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 complete explanation) /// -and- /// The property is set to . // Token: 0x060012CD RID: 4813 RVA: 0x0000E7D8 File Offset: 0x0000C9D8 [Token(Token = "0x60012CD")] [Address(RVA = "0x2929950", Offset = "0x2928750", VA = "0x182929950", 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 . /// The containing 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 complete explanation) /// -and- /// is set to . // Token: 0x060012CE RID: 4814 RVA: 0x0000E7F0 File Offset: 0x0000C9F0 [Token(Token = "0x60012CE")] [Address(RVA = "0x2929AE0", Offset = "0x29288E0", VA = "0x182929AE0", Slot = "12")] public override int GetByteCount(string chars) { 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 a complete explanation) /// -and- /// is set to . // Token: 0x060012CF RID: 4815 RVA: 0x0000E808 File Offset: 0x0000CA08 [Token(Token = "0x60012CF")] [Address(RVA = "0x2929260", Offset = "0x2928060", VA = "0x182929260", 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 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 complete explanation) /// -and- /// is set to . // Token: 0x060012D0 RID: 4816 RVA: 0x0000E820 File Offset: 0x0000CA20 [Token(Token = "0x60012D0")] [Address(RVA = "0x292A8C0", Offset = "0x29296C0", VA = "0x18292A8C0", 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 complete explanation) /// -and- /// is set to . // Token: 0x060012D1 RID: 4817 RVA: 0x0000E838 File Offset: 0x0000CA38 [Token(Token = "0x60012D1")] [Address(RVA = "0x292A660", Offset = "0x2929460", VA = "0x18292A660", 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 . /// /// 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 complete explanation) /// -and- /// is set to . // Token: 0x060012D2 RID: 4818 RVA: 0x0000E850 File Offset: 0x0000CA50 [Token(Token = "0x60012D2")] [Address(RVA = "0x292AB20", Offset = "0x2929920", VA = "0x18292AB20", Slot = "22")] [CLSCompliant(false)] [ComVisible(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 complete explanation) /// -and- /// is set to . // Token: 0x060012D3 RID: 4819 RVA: 0x0000E868 File Offset: 0x0000CA68 [Token(Token = "0x60012D3")] [Address(RVA = "0x292B260", Offset = "0x292A060", VA = "0x18292B260", 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 complete explanation) /// -and- /// is set to . // Token: 0x060012D4 RID: 4820 RVA: 0x0000E880 File Offset: 0x0000CA80 [Token(Token = "0x60012D4")] [Address(RVA = "0x292B160", Offset = "0x2929F60", VA = "0x18292B160", 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 complete explanation) /// -and- /// is set to . // Token: 0x060012D5 RID: 4821 RVA: 0x0000E898 File Offset: 0x0000CA98 [Token(Token = "0x60012D5")] [Address(RVA = "0x292B530", Offset = "0x292A330", VA = "0x18292B530", 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 . /// /// 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 complete explanation) /// -and- /// is set to . // Token: 0x060012D6 RID: 4822 RVA: 0x0000E8B0 File Offset: 0x0000CAB0 [Token(Token = "0x60012D6")] [Address(RVA = "0x292B3F0", Offset = "0x292A1F0", VA = "0x18292B3F0", Slot = "29")] [CLSCompliant(false)] [ComVisible(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 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 complete explanation) /// -and- /// is set to . // Token: 0x060012D7 RID: 4823 RVA: 0x00002082 File Offset: 0x00000282 [Token(Token = "0x60012D7")] [Address(RVA = "0x292C570", Offset = "0x292B370", VA = "0x18292C570", Slot = "37")] [ComVisible(false)] public override string GetString(byte[] bytes, int index, int count) { return null; } // Token: 0x060012D8 RID: 4824 RVA: 0x0000E8C8 File Offset: 0x0000CAC8 [Token(Token = "0x60012D8")] [Address(RVA = "0x2929360", Offset = "0x2928160", VA = "0x182929360", Slot = "15")] internal unsafe override int GetByteCount(char* chars, int count, EncoderNLS baseEncoder) { return 0; } // Token: 0x060012D9 RID: 4825 RVA: 0x0000E8E0 File Offset: 0x0000CAE0 [Token(Token = "0x60012D9")] [Address(RVA = "0x292C700", Offset = "0x292B500", VA = "0x18292C700")] private unsafe static int PtrDiff(char* a, char* b) { return 0; } // Token: 0x060012DA RID: 4826 RVA: 0x0000E8F8 File Offset: 0x0000CAF8 [Token(Token = "0x60012DA")] [Address(RVA = "0x292C710", Offset = "0x292B510", VA = "0x18292C710")] private unsafe static int PtrDiff(byte* a, byte* b) { return 0; } // Token: 0x060012DB RID: 4827 RVA: 0x0000E910 File Offset: 0x0000CB10 [Token(Token = "0x60012DB")] [Address(RVA = "0x461290", Offset = "0x460090", VA = "0x180461290")] private static bool InRange(int ch, int start, int end) { return default(bool); } // Token: 0x060012DC RID: 4828 RVA: 0x0000E928 File Offset: 0x0000CB28 [Token(Token = "0x60012DC")] [Address(RVA = "0x2929EB0", Offset = "0x2928CB0", VA = "0x182929EB0", Slot = "21")] internal unsafe override int GetBytes(char* chars, int charCount, byte* bytes, int byteCount, EncoderNLS baseEncoder) { return 0; } // Token: 0x060012DD RID: 4829 RVA: 0x0000E940 File Offset: 0x0000CB40 [Token(Token = "0x60012DD")] [Address(RVA = "0x292AC60", Offset = "0x2929A60", VA = "0x18292AC60", Slot = "25")] internal unsafe override int GetCharCount(byte* bytes, int count, DecoderNLS baseDecoder) { return 0; } // Token: 0x060012DE RID: 4830 RVA: 0x0000E958 File Offset: 0x0000CB58 [Token(Token = "0x60012DE")] [Address(RVA = "0x292B790", Offset = "0x292A590", VA = "0x18292B790", Slot = "30")] internal unsafe override int GetChars(byte* bytes, int byteCount, char* chars, int charCount, DecoderNLS baseDecoder) { return 0; } // Token: 0x060012DF RID: 4831 RVA: 0x0000E970 File Offset: 0x0000CB70 [Token(Token = "0x60012DF")] [Address(RVA = "0x2929190", Offset = "0x2927F90", VA = "0x182929190")] private unsafe bool FallbackInvalidByteSequence(ref byte* pSrc, int ch, DecoderFallbackBuffer fallback, ref char* pTarget) { return default(bool); } // Token: 0x060012E0 RID: 4832 RVA: 0x0000E988 File Offset: 0x0000CB88 [Token(Token = "0x60012E0")] [Address(RVA = "0x2929210", Offset = "0x2928010", VA = "0x182929210")] private unsafe int FallbackInvalidByteSequence(byte* pSrc, int ch, DecoderFallbackBuffer fallback) { return 0; } // Token: 0x060012E1 RID: 4833 RVA: 0x00002082 File Offset: 0x00000282 [Token(Token = "0x60012E1")] [Address(RVA = "0x2929B80", Offset = "0x2928980", VA = "0x182929B80")] private unsafe byte[] GetBytesUnknown(ref byte* pSrc, int ch) { return null; } /// Obtains a decoder that converts a UTF-8 encoded sequence of bytes into a sequence of Unicode characters. /// A decoder that converts a UTF-8 encoded sequence of bytes into a sequence of Unicode characters. // Token: 0x060012E2 RID: 4834 RVA: 0x00002082 File Offset: 0x00000282 [Token(Token = "0x60012E2")] [Address(RVA = "0x292C160", Offset = "0x292AF60", VA = "0x18292C160", Slot = "32")] public override Decoder GetDecoder() { return null; } /// Obtains an encoder that converts a sequence of Unicode characters into a UTF-8 encoded sequence of bytes. /// A that converts a sequence of Unicode characters into a UTF-8 encoded sequence of bytes. // Token: 0x060012E3 RID: 4835 RVA: 0x00002082 File Offset: 0x00000282 [Token(Token = "0x60012E3")] [Address(RVA = "0x292C1C0", Offset = "0x292AFC0", VA = "0x18292C1C0", Slot = "33")] public override Encoder GetEncoder() { 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 complete explanation) /// -and- /// is set to . // Token: 0x060012E4 RID: 4836 RVA: 0x0000E9A0 File Offset: 0x0000CBA0 [Token(Token = "0x60012E4")] [Address(RVA = "0x292C290", Offset = "0x292B090", VA = "0x18292C290", 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 complete explanation) /// -and- /// is set to . // Token: 0x060012E5 RID: 4837 RVA: 0x0000E9B8 File Offset: 0x0000CBB8 [Token(Token = "0x60012E5")] [Address(RVA = "0x292C3B0", Offset = "0x292B1B0", VA = "0x18292C3B0", Slot = "35")] public override int GetMaxCharCount(int byteCount) { return 0; } /// Returns a Unicode byte order mark encoded in UTF-8 format, if the encoding object is configured to supply one. /// A byte array containing the Unicode byte order mark, if the encoding object is configured to supply one. Otherwise, this method returns a zero-length byte array. // Token: 0x060012E6 RID: 4838 RVA: 0x00002082 File Offset: 0x00000282 [Token(Token = "0x60012E6")] [Address(RVA = "0x292C4D0", Offset = "0x292B2D0", VA = "0x18292C4D0", Slot = "6")] public override byte[] GetPreamble() { return null; } /// Determines whether the specified object is equal to the current object. /// The object to compare with the current instance. /// /// if is an instance of and is equal to the current object; otherwise, . // Token: 0x060012E7 RID: 4839 RVA: 0x0000E9D0 File Offset: 0x0000CBD0 [Token(Token = "0x60012E7")] [Address(RVA = "0x29290A0", Offset = "0x2927EA0", VA = "0x1829290A0", 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 instance. // Token: 0x060012E8 RID: 4840 RVA: 0x0000E9E8 File Offset: 0x0000CBE8 [Token(Token = "0x60012E8")] [Address(RVA = "0x292C220", Offset = "0x292B020", VA = "0x18292C220", Slot = "2")] public override int GetHashCode() { return 0; } // Token: 0x0400098F RID: 2447 [global::Cpp2IlInjected.FieldOffset(Offset = "0x38")] [Token(Token = "0x400098F")] private bool emitUTF8Identifier; // Token: 0x04000990 RID: 2448 [global::Cpp2IlInjected.FieldOffset(Offset = "0x39")] [Token(Token = "0x4000990")] private bool isThrowException; // Token: 0x020001E7 RID: 487 [Token(Token = "0x20001E7")] [Serializable] internal class UTF8Encoder : EncoderNLS, ISerializable { // Token: 0x060012E9 RID: 4841 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x60012E9")] [Address(RVA = "0x2920260", Offset = "0x291F060", VA = "0x182920260")] public UTF8Encoder(UTF8Encoding encoding) { } // Token: 0x060012EA RID: 4842 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x60012EA")] [Address(RVA = "0x2928E50", Offset = "0x2927C50", VA = "0x182928E50")] internal UTF8Encoder(SerializationInfo info, StreamingContext context) { } // Token: 0x060012EB RID: 4843 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x60012EB")] [Address(RVA = "0x2928D70", Offset = "0x2927B70", VA = "0x182928D70", Slot = "9")] void ISerializable.GetObjectData(SerializationInfo info, StreamingContext context) { } // Token: 0x060012EC RID: 4844 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x60012EC")] [Address(RVA = "0x2928D40", Offset = "0x2927B40", VA = "0x182928D40", Slot = "4")] public override void Reset() { } // Token: 0x04000991 RID: 2449 [global::Cpp2IlInjected.FieldOffset(Offset = "0x38")] [Token(Token = "0x4000991")] internal int surrogateChar; } // Token: 0x020001E8 RID: 488 [Token(Token = "0x20001E8")] [Serializable] internal class UTF8Decoder : DecoderNLS, ISerializable { // Token: 0x060012ED RID: 4845 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x60012ED")] [Address(RVA = "0x2928AD0", Offset = "0x29278D0", VA = "0x182928AD0")] public UTF8Decoder(UTF8Encoding encoding) { } // Token: 0x060012EE RID: 4846 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x60012EE")] [Address(RVA = "0x2928AE0", Offset = "0x29278E0", VA = "0x182928AE0")] internal UTF8Decoder(SerializationInfo info, StreamingContext context) { } // Token: 0x060012EF RID: 4847 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x60012EF")] [Address(RVA = "0x29289C0", Offset = "0x29277C0", VA = "0x1829289C0", Slot = "13")] void ISerializable.GetObjectData(SerializationInfo info, StreamingContext context) { } // Token: 0x060012F0 RID: 4848 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x60012F0")] [Address(RVA = "0x2928990", Offset = "0x2927790", VA = "0x182928990", Slot = "4")] public override void Reset() { } // Token: 0x170001DB RID: 475 // (get) Token: 0x060012F1 RID: 4849 RVA: 0x0000EA00 File Offset: 0x0000CC00 [Token(Token = "0x170001DB")] internal override bool HasState { [Token(Token = "0x60012F1")] [Address(RVA = "0x2928D30", Offset = "0x2927B30", VA = "0x182928D30", Slot = "14")] get { return default(bool); } } // Token: 0x04000992 RID: 2450 [global::Cpp2IlInjected.FieldOffset(Offset = "0x30")] [Token(Token = "0x4000992")] internal int bits; } } }