21 :
base(bigEndian ? 1 : 0)
27 :
base(bigEndian ? 1 : 0)
109 if (bytes !=
null &&
s !=
null)
116 return "Index was out of range. Must be non-negative and less than the size of the collection.";
122 if (bytes !=
null && chars !=
null)
130 return "Index was out of range. Must be non-negative and less than the size of the collection.";
167 while (bytes ==
null)
207 if (chars !=
null && bytes !=
null)
213 return "Index was out of range. Must be non-negative and less than the size of the collection.";
250 while (bytes ==
null ||
count == 0)
303 text =
SR.
Format(
"Must complete Convert() operation or call Encoder.Reset() before calling GetBytes() or GetByteCount(). Encoder '{0}' fallback '{1}'.",
this, type);
308 bool flag =
char.IsLowSurrogate(c);
314 bool flag2 =
char.IsHighSurrogate(flag ?
'\u0001' :
'\0');
315 bool flag3 =
char.IsLowSurrogate(c);
377 chars->m_value = (char)num;
453 return "Non-negative number required.";
520 if (emitUTF32ByteOrderMark)
523 if (!emitUTF32ByteOrderMark)
class f__AnonymousType0<< Count > j__TPar
static string Format(string resourceFormat, params object[] args)
static int OffsetToStringData
static DecoderFallback ExceptionFallback
DecoderFallbackBuffer _fallbackBuffer
static EncoderFallback ExceptionFallback
EncoderFallback _fallback
EncoderFallbackBuffer FallbackBuffer
EncoderFallback encoderFallback
DecoderFallback decoderFallback
UTF32Decoder(UTF32Encoding encoding)
override void SetDefaultFallbacks()
char GetHighSurrogate(uint iChar)
override int GetByteCount(string s)
static readonly byte[] s_littleEndianPreamble
uint GetSurrogate(char cHigh, char cLow)
static readonly UTF32Encoding s_bigEndianDefault
unsafe override int GetChars(byte *bytes, int byteCount, char *chars, int charCount)
override int GetMaxCharCount(int byteCount)
bool _emitUTF32ByteOrderMark
override Encoder GetEncoder()
override int GetMaxByteCount(int charCount)
static readonly byte[] s_bigEndianPreamble
unsafe override int GetCharCount(byte *bytes, int count, DecoderNLS baseDecoder)
override int GetHashCode()
override int GetByteCount(char[] chars, int index, int count)
unsafe override int GetBytes(char *chars, int charCount, byte *bytes, int byteCount)
override byte[] GetPreamble()
unsafe override int GetBytes(char *chars, int charCount, byte *bytes, int byteCount, EncoderNLS encoder)
unsafe override int GetByteCount(char *chars, int count, EncoderNLS encoder)
override int GetChars(byte[] bytes, int byteIndex, int byteCount, char[] chars, int charIndex)
override int GetCharCount(byte[] bytes, int index, int count)
UTF32Encoding(bool bigEndian, bool byteOrderMark)
UTF32Encoding(bool bigEndian, bool byteOrderMark, bool throwOnInvalidCharacters)
unsafe override int GetByteCount(char *chars, int count)
char GetLowSurrogate(uint iChar)
override Decoder GetDecoder()
unsafe override int GetCharCount(byte *bytes, int count)
override bool Equals(object value)
override ReadOnlySpan< byte > Preamble
unsafe override int GetChars(byte *bytes, int byteCount, char *chars, int charCount, DecoderNLS baseDecoder)
override int GetBytes(string s, int charIndex, int charCount, byte[] bytes, int byteIndex)
static readonly UTF32Encoding s_default
override int GetBytes(char[] chars, int charIndex, int charCount, byte[] bytes, int byteIndex)
override string GetString(byte[] bytes, int index, int count)