oh dear
This commit is contained in:
@@ -0,0 +1,202 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Runtime.Serialization;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace System.Text
|
||||
{
|
||||
/// <summary>Converts a set of characters into a sequence of bytes.</summary>
|
||||
// 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)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Initializes a new instance of the <see cref="T:System.Text.Encoder" /> class.</summary>
|
||||
// Token: 0x0600113A RID: 4410 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x600113A")]
|
||||
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
|
||||
protected Encoder()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Gets or sets a <see cref="T:System.Text.EncoderFallback" /> object for the current <see cref="T:System.Text.Encoder" /> object.</summary>
|
||||
/// <returns>A <see cref="T:System.Text.EncoderFallback" /> object.</returns>
|
||||
/// <exception cref="T:System.ArgumentNullException">The value in a set operation is <see langword="null" /> (<see langword="Nothing" />).</exception>
|
||||
/// <exception cref="T:System.ArgumentException">A new value cannot be assigned in a set operation because the current <see cref="T:System.Text.EncoderFallbackBuffer" /> object contains data that has not been encoded yet.</exception>
|
||||
/// <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for fuller explanation)
|
||||
/// -and-
|
||||
/// <see cref="P:System.Text.Encoder.Fallback" /> is set to <see cref="T:System.Text.EncoderExceptionFallback" />.</exception>
|
||||
// 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;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Gets the <see cref="T:System.Text.EncoderFallbackBuffer" /> object associated with the current <see cref="T:System.Text.Encoder" /> object.</summary>
|
||||
/// <returns>A <see cref="T:System.Text.EncoderFallbackBuffer" /> object.</returns>
|
||||
// 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);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>When overridden in a derived class, sets the encoder back to its initial state.</summary>
|
||||
// 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()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>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.</summary>
|
||||
/// <param name="chars">The character array containing the set of characters to encode.</param>
|
||||
/// <param name="index">The index of the first character to encode.</param>
|
||||
/// <param name="count">The number of characters to encode.</param>
|
||||
/// <param name="flush">
|
||||
/// <see langword="true" /> to simulate clearing the internal state of the encoder after the calculation; otherwise, <see langword="false" />.</param>
|
||||
/// <returns>The number of bytes produced by encoding the specified characters and any characters in the internal buffer.</returns>
|
||||
/// <exception cref="T:System.ArgumentNullException">
|
||||
/// <paramref name="chars" /> is <see langword="null" />.</exception>
|
||||
/// <exception cref="T:System.ArgumentOutOfRangeException">
|
||||
/// <paramref name="index" /> or <paramref name="count" /> is less than zero.
|
||||
/// -or-
|
||||
/// <paramref name="index" /> and <paramref name="count" /> do not denote a valid range in <paramref name="chars" />.</exception>
|
||||
/// <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for fuller explanation)
|
||||
/// -and-
|
||||
/// <see cref="P:System.Text.Encoder.Fallback" /> is set to <see cref="T:System.Text.EncoderExceptionFallback" />.</exception>
|
||||
// Token: 0x0600113F RID: 4415
|
||||
[Token(Token = "0x600113F")]
|
||||
[Address(Slot = "5")]
|
||||
public abstract int GetByteCount(char[] chars, int index, int count, bool flush);
|
||||
|
||||
/// <summary>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.</summary>
|
||||
/// <param name="chars">A pointer to the first character to encode.</param>
|
||||
/// <param name="count">The number of characters to encode.</param>
|
||||
/// <param name="flush">
|
||||
/// <see langword="true" /> to simulate clearing the internal state of the encoder after the calculation; otherwise, <see langword="false" />.</param>
|
||||
/// <returns>The number of bytes produced by encoding the specified characters and any characters in the internal buffer.</returns>
|
||||
/// <exception cref="T:System.ArgumentNullException">
|
||||
/// <paramref name="chars" /> is <see langword="null" /> (<see langword="Nothing" /> in Visual Basic .NET).</exception>
|
||||
/// <exception cref="T:System.ArgumentOutOfRangeException">
|
||||
/// <paramref name="count" /> is less than zero.</exception>
|
||||
/// <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for fuller explanation)
|
||||
/// -and-
|
||||
/// <see cref="P:System.Text.Encoder.Fallback" /> is set to <see cref="T:System.Text.EncoderExceptionFallback" />.</exception>
|
||||
// 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;
|
||||
}
|
||||
|
||||
/// <summary>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.</summary>
|
||||
/// <param name="chars">The character array containing the set of characters to encode.</param>
|
||||
/// <param name="charIndex">The index of the first character to encode.</param>
|
||||
/// <param name="charCount">The number of characters to encode.</param>
|
||||
/// <param name="bytes">The byte array to contain the resulting sequence of bytes.</param>
|
||||
/// <param name="byteIndex">The index at which to start writing the resulting sequence of bytes.</param>
|
||||
/// <param name="flush">
|
||||
/// <see langword="true" /> to clear the internal state of the encoder after the conversion; otherwise, <see langword="false" />.</param>
|
||||
/// <returns>The actual number of bytes written into <paramref name="bytes" />.</returns>
|
||||
/// <exception cref="T:System.ArgumentNullException">
|
||||
/// <paramref name="chars" /> is <see langword="null" /> (<see langword="Nothing" />).
|
||||
/// -or-
|
||||
/// <paramref name="bytes" /> is <see langword="null" /> (<see langword="Nothing" />).</exception>
|
||||
/// <exception cref="T:System.ArgumentOutOfRangeException">
|
||||
/// <paramref name="charIndex" /> or <paramref name="charCount" /> or <paramref name="byteIndex" /> is less than zero.
|
||||
/// -or-
|
||||
/// <paramref name="charIndex" /> and <paramref name="charCount" /> do not denote a valid range in <paramref name="chars" />.
|
||||
/// -or-
|
||||
/// <paramref name="byteIndex" /> is not a valid index in <paramref name="bytes" />.</exception>
|
||||
/// <exception cref="T:System.ArgumentException">
|
||||
/// <paramref name="bytes" /> does not have enough capacity from <paramref name="byteIndex" /> to the end of the array to accommodate the resulting bytes.</exception>
|
||||
/// <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for fuller explanation)
|
||||
/// -and-
|
||||
/// <see cref="P:System.Text.Encoder.Fallback" /> is set to <see cref="T:System.Text.EncoderExceptionFallback" />.</exception>
|
||||
// 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);
|
||||
|
||||
/// <summary>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.</summary>
|
||||
/// <param name="chars">A pointer to the first character to encode.</param>
|
||||
/// <param name="charCount">The number of characters to encode.</param>
|
||||
/// <param name="bytes">A pointer to the location at which to start writing the resulting sequence of bytes.</param>
|
||||
/// <param name="byteCount">The maximum number of bytes to write.</param>
|
||||
/// <param name="flush">
|
||||
/// <see langword="true" /> to clear the internal state of the encoder after the conversion; otherwise, <see langword="false" />.</param>
|
||||
/// <returns>The actual number of bytes written at the location indicated by the <paramref name="bytes" /> parameter.</returns>
|
||||
/// <exception cref="T:System.ArgumentNullException">
|
||||
/// <paramref name="chars" /> is <see langword="null" /> (<see langword="Nothing" />).
|
||||
/// -or-
|
||||
/// <paramref name="bytes" /> is <see langword="null" /> (<see langword="Nothing" />).</exception>
|
||||
/// <exception cref="T:System.ArgumentOutOfRangeException">
|
||||
/// <paramref name="charCount" /> or <paramref name="byteCount" /> is less than zero.</exception>
|
||||
/// <exception cref="T:System.ArgumentException">
|
||||
/// <paramref name="byteCount" /> is less than the resulting number of bytes.</exception>
|
||||
/// <exception cref="T:System.Text.EncoderFallbackException">A fallback occurred (see Character Encoding in the .NET Framework for fuller explanation)
|
||||
/// -and-
|
||||
/// <see cref="P:System.Text.Encoder.Fallback" /> is set to <see cref="T:System.Text.EncoderExceptionFallback" />.</exception>
|
||||
// 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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user