22 references to ThrowBytesOverflow
mscorlib (22)
system\text\asciiencoding.cs (3)
619
ThrowBytesOverflow
(encoder, true);
630
ThrowBytesOverflow
(encoder, byteCount < 1);
726
ThrowBytesOverflow
(encoder, bytes == byteStart); // throw?
system\text\dbcscodepageencoding.cs (2)
734
ThrowBytesOverflow
(encoder, chars == charStart); // throw ?
753
ThrowBytesOverflow
(encoder, chars == charStart); // throw ?
system\text\encoding.cs (1)
2219
enc.
ThrowBytesOverflow
(encoder, bytes == byteStart); // Throw? (and reset fallback if not converting)
system\text\latin1encoding.cs (5)
239
ThrowBytesOverflow
(encoder, true);
250
ThrowBytesOverflow
(encoder, byteCount < 1);
299
ThrowBytesOverflow
(encoder, true);
347
ThrowBytesOverflow
(encoder, chars == charStart);
367
ThrowBytesOverflow
(encoder, chars == charStart); // throw ?
system\text\sbcscodepageencoding.cs (5)
492
ThrowBytesOverflow
(encoder, true);
503
ThrowBytesOverflow
(encoder, byteCount < 1);
558
ThrowBytesOverflow
(encoder, true);
608
ThrowBytesOverflow
(encoder, chars == charStart);
627
ThrowBytesOverflow
(encoder, chars == charStart); // throw ?
system\text\unicodeencoding.cs (2)
1011
ThrowBytesOverflow
(encoder, bytes == byteStart); // Throw maybe (if no bytes written)
1074
ThrowBytesOverflow
(encoder, bytes == byteStart); // Throw maybe (if no bytes written)
system\text\utf32encoding.cs (2)
642
ThrowBytesOverflow
(encoder, bytes == byteStart); // Throw maybe (if no bytes written)
711
ThrowBytesOverflow
(encoder, bytes == byteStart); // Throw maybe (if no bytes written)
system\text\utf7encoding.cs (1)
547
ThrowBytesOverflow
(encoder, buffer.Count == 0);
system\text\utf8encoding.cs (1)
1031
ThrowBytesOverflow
(encoder, pTarget == bytes); // Throw if we must