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)
541ThrowBytesOverflow(encoder, nothingEncoded: bytes.Length == originalByteCount); // might not throw if we wrote at least one byte 684ThrowBytesOverflow(encoder, nothingEncoded: bytes.Length == originalBytesLength);
src\libraries\System.Private.CoreLib\src\System\Text\UnicodeEncoding.cs (2)
848ThrowBytesOverflow(encoder, bytes == byteStart); // Throw maybe (if no bytes written) 912ThrowBytesOverflow(encoder, bytes == byteStart); // Throw maybe (if no bytes written)
src\libraries\System.Private.CoreLib\src\System\Text\UTF32Encoding.cs (2)
564ThrowBytesOverflow(encoder, bytes == byteStart); // Throw maybe (if no bytes written) 637ThrowBytesOverflow(encoder, bytes == byteStart); // Throw maybe (if no bytes written)
src\libraries\System.Private.CoreLib\src\System\Text\UTF7Encoding.cs (1)
427ThrowBytesOverflow(encoder, buffer.Count == 0);