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

◆ ThrowCharsOverflow() [2/2]

void System.Text.Encoding.ThrowCharsOverflow ( DecoderNLS decoder,
bool nothingDecoded )
inlinepackageinherited

Definition at line 1096 of file Encoding.cs.

1097 {
1098 if ((decoder?._throwOnOverflow ?? true) || nothingDecoded)
1099 {
1100 if (decoder != null && decoder.InternalHasFallbackBuffer)
1101 {
1102 decoder.FallbackBuffer.InternalReset();
1103 }
1105 }
1106 decoder.ClearMustFlush();
1107 }

References System.Text.DecoderNLS.ClearMustFlush(), System.Text.DecoderNLS.FallbackBuffer, System.Text.DecoderNLS.InternalHasFallbackBuffer, and System.Text.Encoding.ThrowCharsOverflow().