using System;
using System.Runtime.InteropServices;
using System.Runtime.Serialization;
using Cpp2IlInjected;
namespace System.Text
{
/// Converts a sequence of encoded bytes into a set of characters.
// Token: 0x020001C4 RID: 452
[Token(Token = "0x20001C4")]
[ComVisible(true)]
[Serializable]
public abstract class Decoder
{
// Token: 0x0600111A RID: 4378 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600111A")]
[Address(RVA = "0xD24700", Offset = "0xD23700", VA = "0x180D24700")]
internal void SerializeDecoder(SerializationInfo info)
{
}
/// Initializes a new instance of the class.
// Token: 0x0600111B RID: 4379 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600111B")]
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
protected Decoder()
{
}
/// 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 decoded yet.
// Token: 0x1700019E RID: 414
// (get) Token: 0x0600111C RID: 4380 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x1700019E")]
[ComVisible(false)]
public DecoderFallback Fallback
{
[Token(Token = "0x600111C")]
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
get
{
return null;
}
}
/// Gets the object associated with the current object.
/// A object.
// Token: 0x1700019F RID: 415
// (get) Token: 0x0600111D RID: 4381 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x1700019F")]
[ComVisible(false)]
public DecoderFallbackBuffer FallbackBuffer
{
[Token(Token = "0x600111D")]
[Address(RVA = "0xD24760", Offset = "0xD23760", VA = "0x180D24760")]
get
{
return null;
}
}
// Token: 0x170001A0 RID: 416
// (get) Token: 0x0600111E RID: 4382 RVA: 0x0000D830 File Offset: 0x0000BA30
[Token(Token = "0x170001A0")]
internal bool InternalHasFallbackBuffer
{
[Token(Token = "0x600111E")]
[Address(RVA = "0x5EFE20", Offset = "0x5EEE20", VA = "0x1805EFE20")]
get
{
return default(bool);
}
}
/// When overridden in a derived class, sets the decoder back to its initial state.
// Token: 0x0600111F RID: 4383 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600111F")]
[Address(RVA = "0xD24630", Offset = "0xD23630", VA = "0x180D24630", Slot = "4")]
[ComVisible(false)]
public virtual void Reset()
{
}
/// When overridden in a derived class, 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 and any bytes 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: 0x06001120 RID: 4384
[Token(Token = "0x6001120")]
[Address(Slot = "5")]
public abstract int GetCharCount(byte[] bytes, int index, int count);
/// When overridden in a derived class, calculates the number of characters produced by decoding a sequence of bytes from the specified byte array. A parameter indicates whether to clear the internal state of the decoder after the calculation.
/// The byte array containing the sequence of bytes to decode.
/// The index of the first byte to decode.
/// The number of bytes to decode.
///
/// to simulate clearing the internal state of the encoder after the calculation; otherwise, .
/// The number of characters produced by decoding the specified sequence of bytes and any bytes 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: 0x06001121 RID: 4385 RVA: 0x0000D848 File Offset: 0x0000BA48
[Token(Token = "0x6001121")]
[Address(RVA = "0xD243C0", Offset = "0xD233C0", VA = "0x180D243C0", Slot = "6")]
[ComVisible(false)]
public virtual int GetCharCount(byte[] bytes, int index, int count, bool flush)
{
return 0;
}
/// When overridden in a derived class, calculates the number of characters produced by decoding a sequence of bytes starting at the specified byte pointer. A parameter indicates whether to clear the internal state of the decoder after the calculation.
/// A pointer to the first byte to decode.
/// The number of bytes to decode.
///
/// to simulate clearing the internal state of the encoder after the calculation; otherwise, .
/// The number of characters produced by decoding the specified sequence of bytes and any bytes 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: 0x06001122 RID: 4386 RVA: 0x0000D860 File Offset: 0x0000BA60
[Token(Token = "0x6001122")]
[Address(RVA = "0xD24270", Offset = "0xD23270", VA = "0x180D24270", Slot = "7")]
[ComVisible(false)]
[CLSCompliant(false)]
public unsafe virtual int GetCharCount(byte* bytes, int count, bool flush)
{
return 0;
}
/// When overridden in a derived class, decodes a sequence of bytes from the specified byte array and any bytes in the internal buffer 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 .
///
/// 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: 0x06001123 RID: 4387
[Token(Token = "0x6001123")]
[Address(Slot = "8")]
public abstract int GetChars(byte[] bytes, int byteIndex, int byteCount, char[] chars, int charIndex);
/// When overridden in a derived class, decodes a sequence of bytes from the specified byte array and any bytes in the internal buffer into the specified character array. A parameter indicates whether to clear the internal state of the decoder after the conversion.
/// 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.
///
/// to clear the internal state of the decoder after the conversion; otherwise, .
/// The actual number of characters written into the parameter.
///
/// 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 characters.
/// A fallback occurred (see Character Encoding in the .NET Framework for fuller explanation)
/// -and-
/// is set to .
// Token: 0x06001124 RID: 4388 RVA: 0x0000D878 File Offset: 0x0000BA78
[Token(Token = "0x6001124")]
[Address(RVA = "0xD24610", Offset = "0xD23610", VA = "0x180D24610", Slot = "9")]
public virtual int GetChars(byte[] bytes, int byteIndex, int byteCount, char[] chars, int charIndex, bool flush)
{
return 0;
}
/// When overridden in a derived class, decodes a sequence of bytes starting at the specified byte pointer and any bytes in the internal buffer into a set of characters that are stored starting at the specified character pointer. A parameter indicates whether to clear the internal state of the decoder after the conversion.
/// 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.
///
/// to clear the internal state of the decoder after the conversion; otherwise, .
/// The actual number of characters written at the location indicated by the parameter.
///
/// is ().
/// -or-
/// is ().
///
/// or is less than zero.
///
/// 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: 0x06001125 RID: 4389 RVA: 0x0000D890 File Offset: 0x0000BA90
[Token(Token = "0x6001125")]
[Address(RVA = "0xD243E0", Offset = "0xD233E0", VA = "0x180D243E0", Slot = "10")]
[CLSCompliant(false)]
[ComVisible(false)]
public unsafe virtual int GetChars(byte* bytes, int byteCount, char* chars, int charCount, bool flush)
{
return 0;
}
/// Converts an array of encoded bytes to UTF-16 encoded characters and stores the result in a character array.
/// A byte array to convert.
/// The first element of to convert.
/// The number of elements of to convert.
/// An array to store the converted characters.
/// The first element of in which data is stored.
/// The maximum number of elements of to use in the conversion.
///
/// to indicate that no further data is to be converted; otherwise, .
/// 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 the number of characters from 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: 0x06001126 RID: 4390 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001126")]
[Address(RVA = "0xD23F10", Offset = "0xD22F10", VA = "0x180D23F10", Slot = "11")]
[ComVisible(false)]
public virtual void Convert(byte[] bytes, int byteIndex, int byteCount, char[] chars, int charIndex, int charCount, bool flush, out int bytesUsed, out int charsUsed, out bool completed)
{
}
/// Converts a buffer of encoded bytes to UTF-16 encoded characters and stores the result in another buffer.
/// The address of a buffer that contains the byte sequences to convert.
/// The number of bytes in to convert.
/// The address of a buffer to store the converted characters.
/// The maximum number of characters in to use in the conversion.
///
/// to indicate no further data is to be converted; otherwise, .
/// 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 the number of characters from 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: 0x06001127 RID: 4391 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001127")]
[Address(RVA = "0xD23CE0", Offset = "0xD22CE0", VA = "0x180D23CE0", Slot = "12")]
[CLSCompliant(false)]
[ComVisible(false)]
public unsafe virtual void Convert(byte* bytes, int byteCount, char* chars, int charCount, bool flush, out int bytesUsed, out int charsUsed, out bool completed)
{
}
// Token: 0x040008E0 RID: 2272
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
[Token(Token = "0x40008E0")]
internal DecoderFallback m_fallback;
// Token: 0x040008E1 RID: 2273
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
[Token(Token = "0x40008E1")]
[NonSerialized]
internal DecoderFallbackBuffer m_fallbackBuffer;
}
}