9 references to ThrowBytesOverflow
System.Private.CoreLib (9)
src\libraries\System.Private.CoreLib\src\System\Text\EncoderNLS.cs (1)
369
_encoding.
ThrowBytesOverflow
(this, nothingEncoded: true); // will throw
src\libraries\System.Private.CoreLib\src\System\Text\Encoding.cs (1)
1507
_enc.
ThrowBytesOverflow
(_encoder, _bytes == _byteStart); // Throw? (and reset fallback if not converting)
src\libraries\System.Private.CoreLib\src\System\Text\Encoding.Internal.cs (2)
550
ThrowBytesOverflow
(encoder, nothingEncoded: bytes.Length == originalByteCount); // might not throw if we wrote at least one byte
693
ThrowBytesOverflow
(encoder, nothingEncoded: bytes.Length == originalBytesLength);
src\libraries\System.Private.CoreLib\src\System\Text\UnicodeEncoding.cs (2)
854
ThrowBytesOverflow
(encoder, bytes == byteStart); // Throw maybe (if no bytes written)
918
ThrowBytesOverflow
(encoder, bytes == byteStart); // Throw maybe (if no bytes written)
src\libraries\System.Private.CoreLib\src\System\Text\UTF32Encoding.cs (2)
570
ThrowBytesOverflow
(encoder, bytes == byteStart); // Throw maybe (if no bytes written)
643
ThrowBytesOverflow
(encoder, bytes == byteStart); // Throw maybe (if no bytes written)
src\libraries\System.Private.CoreLib\src\System\Text\UTF7Encoding.cs (1)
433
ThrowBytesOverflow
(encoder, buffer.Count == 0);