Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ GetNextRune()

Rune System.Text.DecoderFallbackBuffer.GetNextRune ( )
inlineprivateinherited

Definition at line 154 of file DecoderFallbackBuffer.cs.

155 {
156 char nextChar = GetNextChar();
157 if (!Rune.TryCreate(nextChar, out var result) && !Rune.TryCreate(nextChar, GetNextChar(), out result))
158 {
159 throw new ArgumentException(SR.Argument_InvalidCharSequenceNoIndex);
160 }
161 return result;
162 }

References System.SR.Argument_InvalidCharSequenceNoIndex, System.Text.DecoderFallbackBuffer.GetNextChar(), and System.Text.Rune.TryCreate().

Referenced by System.Text.DecoderFallbackBuffer.DrainRemainingDataForGetCharCount(), and System.Text.DecoderFallbackBuffer.TryDrainRemainingDataForGetChars().