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: 0x020001C8 RID: 456
[Token(Token = "0x20001C8")]
[ComVisible(true)]
[Serializable]
public abstract class Encoder
{
// Token: 0x06001139 RID: 4409 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001139")]
[Address(RVA = "0x2F1CCB0", Offset = "0x2F1BAB0", VA = "0x182F1CCB0")]
internal void SerializeEncoder(SerializationInfo info)
{
}
/// Initializes a new instance of the class.
// Token: 0x0600113A RID: 4410 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600113A")]
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
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: 0x170001A9 RID: 425
// (get) Token: 0x0600113B RID: 4411 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x170001A9")]
[ComVisible(false)]
public EncoderFallback Fallback
{
[Token(Token = "0x600113B")]
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
get
{
return null;
}
}
/// Gets the object associated with the current object.
/// A object.
// Token: 0x170001AA RID: 426
// (get) Token: 0x0600113C RID: 4412 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x170001AA")]
[ComVisible(false)]
public EncoderFallbackBuffer FallbackBuffer
{
[Token(Token = "0x600113C")]
[Address(RVA = "0x2F1CD10", Offset = "0x2F1BB10", VA = "0x182F1CD10")]
get
{
return null;
}
}
// Token: 0x170001AB RID: 427
// (get) Token: 0x0600113D RID: 4413 RVA: 0x0000D878 File Offset: 0x0000BA78
[Token(Token = "0x170001AB")]
internal bool InternalHasFallbackBuffer
{
[Token(Token = "0x600113D")]
[Address(RVA = "0x1227D50", Offset = "0x1226B50", VA = "0x181227D50")]
get
{
return default(bool);
}
}
/// When overridden in a derived class, sets the encoder back to its initial state.
// Token: 0x0600113E RID: 4414 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600113E")]
[Address(RVA = "0x2F1CBE0", Offset = "0x2F1B9E0", VA = "0x182F1CBE0", 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: 0x0600113F RID: 4415
[Token(Token = "0x600113F")]
[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: 0x06001140 RID: 4416 RVA: 0x0000D890 File Offset: 0x0000BA90
[Token(Token = "0x6001140")]
[Address(RVA = "0x2F1C840", Offset = "0x2F1B640", VA = "0x182F1C840", Slot = "6")]
[CLSCompliant(false)]
[ComVisible(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: 0x06001141 RID: 4417
[Token(Token = "0x6001141")]
[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: 0x06001142 RID: 4418 RVA: 0x0000D8A8 File Offset: 0x0000BAA8
[Token(Token = "0x6001142")]
[Address(RVA = "0x2F1C9B0", Offset = "0x2F1B7B0", VA = "0x182F1C9B0", Slot = "8")]
[CLSCompliant(false)]
[ComVisible(false)]
public unsafe virtual int GetBytes(char* chars, int charCount, byte* bytes, int byteCount, bool flush)
{
return 0;
}
// Token: 0x040008F0 RID: 2288
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
[Token(Token = "0x40008F0")]
internal EncoderFallback m_fallback;
// Token: 0x040008F1 RID: 2289
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
[Token(Token = "0x40008F1")]
[NonSerialized]
internal EncoderFallbackBuffer m_fallbackBuffer;
}
}