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: 0x020001BD RID: 445
[Token(Token = "0x20001BD")]
[ComVisible(true)]
[Serializable]
public abstract class Decoder
{
// Token: 0x060010E4 RID: 4324 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60010E4")]
[Address(RVA = "0x2C40C10", Offset = "0x2C3FA10", VA = "0x182C40C10")]
internal void SerializeDecoder(SerializationInfo info)
{
}
/// Initializes a new instance of the class.
// Token: 0x060010E5 RID: 4325 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60010E5")]
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
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: 0x17000197 RID: 407
// (get) Token: 0x060010E6 RID: 4326 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x17000197")]
[ComVisible(false)]
public DecoderFallback Fallback
{
[Token(Token = "0x60010E6")]
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
get
{
return null;
}
}
/// Gets the object associated with the current object.
/// A object.
// Token: 0x17000198 RID: 408
// (get) Token: 0x060010E7 RID: 4327 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x17000198")]
[ComVisible(false)]
public DecoderFallbackBuffer FallbackBuffer
{
[Token(Token = "0x60010E7")]
[Address(RVA = "0x2C40C70", Offset = "0x2C3FA70", VA = "0x182C40C70")]
get
{
return null;
}
}
// Token: 0x17000199 RID: 409
// (get) Token: 0x060010E8 RID: 4328 RVA: 0x0000D518 File Offset: 0x0000B718
[Token(Token = "0x17000199")]
internal bool InternalHasFallbackBuffer
{
[Token(Token = "0x60010E8")]
[Address(RVA = "0x1227D50", Offset = "0x1226B50", VA = "0x181227D50")]
get
{
return default(bool);
}
}
/// When overridden in a derived class, sets the decoder back to its initial state.
// Token: 0x060010E9 RID: 4329 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60010E9")]
[Address(RVA = "0x2C40B40", Offset = "0x2C3F940", VA = "0x182C40B40", 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: 0x060010EA RID: 4330
[Token(Token = "0x60010EA")]
[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: 0x060010EB RID: 4331 RVA: 0x0000D530 File Offset: 0x0000B730
[Token(Token = "0x60010EB")]
[Address(RVA = "0x2C408D0", Offset = "0x2C3F6D0", VA = "0x182C408D0", 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: 0x060010EC RID: 4332 RVA: 0x0000D548 File Offset: 0x0000B748
[Token(Token = "0x60010EC")]
[Address(RVA = "0x2C40780", Offset = "0x2C3F580", VA = "0x182C40780", Slot = "7")]
[CLSCompliant(false)]
[ComVisible(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: 0x060010ED RID: 4333
[Token(Token = "0x60010ED")]
[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: 0x060010EE RID: 4334 RVA: 0x0000D560 File Offset: 0x0000B760
[Token(Token = "0x60010EE")]
[Address(RVA = "0x2C40B20", Offset = "0x2C3F920", VA = "0x182C40B20", 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: 0x060010EF RID: 4335 RVA: 0x0000D578 File Offset: 0x0000B778
[Token(Token = "0x60010EF")]
[Address(RVA = "0x2C408F0", Offset = "0x2C3F6F0", VA = "0x182C408F0", 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: 0x060010F0 RID: 4336 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60010F0")]
[Address(RVA = "0x2C40420", Offset = "0x2C3F220", VA = "0x182C40420", 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: 0x060010F1 RID: 4337 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60010F1")]
[Address(RVA = "0x2C401E0", Offset = "0x2C3EFE0", VA = "0x182C401E0", Slot = "12")]
[ComVisible(false)]
[CLSCompliant(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: 0x040008D6 RID: 2262
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
[Token(Token = "0x40008D6")]
internal DecoderFallback m_fallback;
// Token: 0x040008D7 RID: 2263
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
[Token(Token = "0x40008D7")]
[NonSerialized]
internal DecoderFallbackBuffer m_fallbackBuffer;
}
}