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)
550ThrowBytesOverflow(encoder, nothingEncoded: bytes.Length == originalByteCount); // might not throw if we wrote at least one byte 693ThrowBytesOverflow(encoder, nothingEncoded: bytes.Length == originalBytesLength);
src\libraries\System.Private.CoreLib\src\System\Text\UnicodeEncoding.cs (2)
854ThrowBytesOverflow(encoder, bytes == byteStart); // Throw maybe (if no bytes written) 918ThrowBytesOverflow(encoder, bytes == byteStart); // Throw maybe (if no bytes written)
src\libraries\System.Private.CoreLib\src\System\Text\UTF32Encoding.cs (2)
570ThrowBytesOverflow(encoder, bytes == byteStart); // Throw maybe (if no bytes written) 643ThrowBytesOverflow(encoder, bytes == byteStart); // Throw maybe (if no bytes written)
src\libraries\System.Private.CoreLib\src\System\Text\UTF7Encoding.cs (1)
433ThrowBytesOverflow(encoder, buffer.Count == 0);