98 if (charIndex < 0 || charIndex >
chars.Length)
207 result =
value.Utf16SequenceLength;
230 int charsWritten = 0;
237 if (!
value.TryEncodeToUtf16(
chars, out charsWritten))
279 if (num2 < srcLeft.
Length)
281 if ((uint)num >= (uint)dest.
Length)
285 dest[num++] = srcLeft[num2];
289 for (
int i = 0; i < srcRight.
Length; i++)
291 if ((uint)num >= (uint)dest.
Length)
295 dest[num++] = srcRight[i];
static string ArgumentOutOfRange_Index
static string ArgumentOutOfRange_IndexCountBuffer
static string ArgumentNull_Array
static string ArgumentOutOfRange_NeedNonNegNum
int DrainRemainingDataForGetCharCount()
bool TryDrainRemainingDataForGetChars(Span< char > chars, out int charsWritten)
static int ConcatInto(ReadOnlySpan< byte > srcLeft, ReadOnlySpan< byte > srcRight, Span< byte > dest)
int DrainLeftoverDataForGetChars(ReadOnlySpan< byte > bytes, Span< char > chars, out int bytesConsumed)
unsafe override void Convert(byte *bytes, int byteCount, char *chars, int charCount, bool flush, out int bytesUsed, out int charsUsed, out bool completed)
unsafe override int GetCharCount(byte *bytes, int count, bool flush)
void SetLeftoverData(ReadOnlySpan< byte > bytes)
ReadOnlySpan< byte > GetLeftoverData()
readonly Encoding _encoding
int DrainLeftoverDataForGetCharCount(ReadOnlySpan< byte > bytes, out int bytesConsumed)
override int GetChars(byte[] bytes, int byteIndex, int byteCount, char[] chars, int charIndex)
unsafe override int GetCharCount(byte[] bytes, int index, int count, bool flush)
unsafe override int GetChars(byte[] bytes, int byteIndex, int byteCount, char[] chars, int charIndex, bool flush)
DecoderNLS(Encoding encoding)
unsafe override 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)
override int GetCharCount(byte[] bytes, int index, int count)
unsafe override int GetChars(byte *bytes, int byteCount, char *chars, int charCount, bool flush)
DecoderFallback _fallback
DecoderFallbackBuffer _fallbackBuffer
DecoderFallback DecoderFallback
virtual int GetCharCount(byte[] bytes)
virtual OperationStatus DecodeFirstRune(ReadOnlySpan< byte > bytes, out Rune value, out int bytesConsumed)
void ThrowCharsOverflow()
virtual char[] GetChars(byte[] bytes)
Span< T > Slice(int start)