9 references to ThrowBytesOverflow
System.Private.CoreLib (9)
src\libraries\System.Private.CoreLib\src\System\Text\EncoderNLS.cs (1)
365
_encoding.
ThrowBytesOverflow
(this, nothingEncoded: true); // will throw
src\libraries\System.Private.CoreLib\src\System\Text\Encoding.cs (1)
1496
_enc.
ThrowBytesOverflow
(_encoder, _bytes == _byteStart); // Throw? (and reset fallback if not converting)
src\libraries\System.Private.CoreLib\src\System\Text\Encoding.Internal.cs (2)
541
ThrowBytesOverflow
(encoder, nothingEncoded: bytes.Length == originalByteCount); // might not throw if we wrote at least one byte
684
ThrowBytesOverflow
(encoder, nothingEncoded: bytes.Length == originalBytesLength);
src\libraries\System.Private.CoreLib\src\System\Text\UnicodeEncoding.cs (2)
848
ThrowBytesOverflow
(encoder, bytes == byteStart); // Throw maybe (if no bytes written)
912
ThrowBytesOverflow
(encoder, bytes == byteStart); // Throw maybe (if no bytes written)
src\libraries\System.Private.CoreLib\src\System\Text\UTF32Encoding.cs (2)
564
ThrowBytesOverflow
(encoder, bytes == byteStart); // Throw maybe (if no bytes written)
637
ThrowBytesOverflow
(encoder, bytes == byteStart); // Throw maybe (if no bytes written)
src\libraries\System.Private.CoreLib\src\System\Text\UTF7Encoding.cs (1)
427
ThrowBytesOverflow
(encoder, buffer.Count == 0);