17 references to ThrowCharsOverflow
System.Private.CoreLib (17)
src\libraries\System.Private.CoreLib\src\System\Text\DecoderNLS.cs (1)
368
_encoding.
ThrowCharsOverflow
(this, nothingDecoded: true);
src\libraries\System.Private.CoreLib\src\System\Text\Encoding.cs (3)
1300
_enc.
ThrowCharsOverflow
(_decoder, _chars == _charStart); // Throw?
1319
_enc.
ThrowCharsOverflow
(_decoder, _chars == _charStart); // Throw?
1385
_enc.
ThrowCharsOverflow
(_decoder, _chars == _charStart); // Throw?
src\libraries\System.Private.CoreLib\src\System\Text\Encoding.Internal.cs (1)
1281
ThrowCharsOverflow
(decoder, nothingDecoded: chars.Length == originalCharsLength);
src\libraries\System.Private.CoreLib\src\System\Text\UnicodeEncoding.cs (7)
1477
ThrowCharsOverflow
(decoder, chars == charStart); // Might throw, if no chars output
1526
ThrowCharsOverflow
(decoder, chars == charStart); // Might throw, if no chars output
1542
ThrowCharsOverflow
(decoder, chars == charStart); // Might throw, if no chars output
1585
ThrowCharsOverflow
(decoder, chars == charStart); // Might throw, if no chars output
1601
ThrowCharsOverflow
(decoder, chars == charStart); // Might throw, if no chars output
1649
ThrowCharsOverflow
(decoder, chars == charStart); // Might throw, if no chars output
1683
ThrowCharsOverflow
(decoder, chars == charStart); // Might throw, if no chars output
src\libraries\System.Private.CoreLib\src\System\Text\UTF32Encoding.cs (4)
933
ThrowCharsOverflow
(decoder, chars == charStart); // Might throw, if no chars output
955
ThrowCharsOverflow
(decoder, chars == charStart); // Might throw, if no chars output
972
ThrowCharsOverflow
(decoder, chars == charStart); // Might throw, if no chars output
1014
ThrowCharsOverflow
(decoder, chars == charStart); // Might throw, if no chars output
src\libraries\System.Private.CoreLib\src\System\Text\UTF7Encoding.cs (1)
580
ThrowCharsOverflow
(decoder, true); // Always throw, they need at least 1 char even in Convert