using System; using System.Runtime.InteropServices; using System.Runtime.Serialization; using Cpp2IlInjected; namespace System.Text { /// Converts a set of characters into a sequence of bytes. // 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) { } /// Initializes a new instance of the class. // Token: 0x06001170 RID: 4464 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6001170")] [Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")] protected Encoder() { } /// Gets or sets a object for the current object. /// A object. /// The value in a set operation is (). /// A new value cannot be assigned in a set operation because the current object contains data that has not been encoded yet. /// A fallback occurred (see Character Encoding in the .NET Framework for fuller explanation) /// -and- /// is set to . // 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; } } /// Gets the object associated with the current object. /// A object. // 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); } } /// When overridden in a derived class, sets the encoder back to its initial state. // 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() { } /// 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. /// The character array containing the set of characters to encode. /// The index of the first character to encode. /// The number of characters to encode. /// /// to simulate clearing the internal state of the encoder after the calculation; otherwise, . /// The number of bytes produced by encoding the specified characters and any characters in the internal buffer. /// /// is . /// /// or is less than zero. /// -or- /// and do not denote a valid range in . /// A fallback occurred (see Character Encoding in the .NET Framework for fuller explanation) /// -and- /// is set to . // Token: 0x06001175 RID: 4469 [Token(Token = "0x6001175")] [Address(Slot = "5")] public abstract int GetByteCount(char[] chars, int index, int count, bool flush); /// 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. /// A pointer to the first character to encode. /// The number of characters to encode. /// /// to simulate clearing the internal state of the encoder after the calculation; otherwise, . /// The number of bytes produced by encoding the specified characters and any characters in the internal buffer. /// /// is ( in Visual Basic .NET). /// /// is less than zero. /// A fallback occurred (see Character Encoding in the .NET Framework for fuller explanation) /// -and- /// is set to . // 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; } /// 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. /// 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. /// /// to clear the internal state of the encoder after the conversion; otherwise, . /// 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 . /// /// 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: 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); /// 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. /// 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. /// /// to clear the internal state of the encoder after the conversion; otherwise, . /// The actual number of bytes written at the location indicated by the parameter. /// /// is (). /// -or- /// is (). /// /// or is less than zero. /// /// 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: 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; } /// Converts an array of Unicode characters to an encoded byte sequence and stores the result in an array of bytes. /// An array of characters to convert. /// The first element of to convert. /// The number of elements of to convert. /// An array where the converted bytes are stored. /// The first element of in which data is stored. /// The maximum number of elements of to use in the conversion. /// /// to indicate no further data is to be converted; otherwise, . /// When this method returns, contains the number of characters from that were used in the conversion. This parameter is passed uninitialized. /// When this method returns, contains the number of bytes that were produced by the conversion. This parameter is passed uninitialized. /// When this method returns, contains if all the characters specified by were converted; otherwise, . This parameter is passed uninitialized. /// /// or is (). /// /// , , , or is less than zero. /// -or- /// The length of - is less than . /// -or- /// The length of - is less than . /// 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 method. /// A fallback occurred (see Character Encoding in the .NET Framework for fuller explanation) /// -and- /// is set to . // 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) { } /// Converts a buffer of Unicode characters to an encoded byte sequence and stores the result in another buffer. /// The address of a string of UTF-16 encoded characters to convert. /// The number of characters in to convert. /// The address of a buffer to store the converted bytes. /// The maximum number of bytes in to use in the conversion. /// /// to indicate no further data is to be converted; otherwise, . /// When this method returns, contains the number of characters from that were used in the conversion. This parameter is passed uninitialized. /// When this method returns, contains the number of bytes that were used in the conversion. This parameter is passed uninitialized. /// When this method returns, contains if all the characters specified by were converted; otherwise, . This parameter is passed uninitialized. /// /// or is (). /// /// or is less than zero. /// 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 method. /// A fallback occurred (see Character Encoding in the .NET Framework for fuller explanation) /// -and- /// is set to . // 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; } }