12 overrides of GetMaxByteCount
mscorlib (9)
system\text\asciiencoding.cs (1)
958
public override int
GetMaxByteCount
(int charCount)
system\text\dbcscodepageencoding.cs (1)
1130
public override int
GetMaxByteCount
(int charCount)
system\text\isciiencoding.cs (1)
115
public override int
GetMaxByteCount
(int charCount)
system\text\latin1encoding.cs (1)
446
public override int
GetMaxByteCount
(int charCount)
system\text\sbcscodepageencoding.cs (1)
893
public override int
GetMaxByteCount
(int charCount)
system\text\unicodeencoding.cs (1)
1944
public override int
GetMaxByteCount
(int charCount)
system\text\utf32encoding.cs (1)
1136
public override int
GetMaxByteCount
(int charCount)
system\text\utf7encoding.cs (1)
849
public override int
GetMaxByteCount
(int charCount)
system\text\utf8encoding.cs (1)
2344
public override int
GetMaxByteCount
(int charCount)
System.Runtime.Serialization (2)
System\Text\Base64Encoding.cs (1)
35
public override int
GetMaxByteCount
(int charCount)
System\Text\BinHexEncoding.cs (1)
47
public override int
GetMaxByteCount
(int charCount)
System.Xml (1)
System\Xml\XmlEncoding.cs (1)
206
public override int
GetMaxByteCount
( int charCount ) {
15 references to GetMaxByteCount
mscorlib (4)
system\io\binaryreader.cs (1)
64
int minBufferSize = encoding.
GetMaxByteCount
(1); // max bytes per one char
system\io\binarywriter.cs (2)
196
Contract.Assert(_encoding.
GetMaxByteCount
(1) <= 16, "_encoding.GetMaxByteCount(1) <= 16)");
366
_maxChars = _largeByteBuffer.Length / _encoding.
GetMaxByteCount
(1);
system\io\streamwriter.cs (1)
204
byteBuffer = new byte[encoding.
GetMaxByteCount
(bufferSize)];
System (3)
sys\system\io\ports\SerialPort.cs (3)
73
private int maxByteCountForSingleChar = System.Text.Encoding.ASCII.
GetMaxByteCount
(1);
313
maxByteCountForSingleChar = encoding.
GetMaxByteCount
(1);
1055
int maxReadSize = Encoding.
GetMaxByteCount
(count);
System.Data (4)
fx\src\data\System\Data\Odbc\OdbcParameter.cs (2)
338
cch = System.Text.Encoding.Default.
GetMaxByteCount
(cch);
350
cch = System.Text.Encoding.Default.
GetMaxByteCount
(cch);
fx\src\data\System\Data\SqlClient\SqlSequentialTextReader.cs (1)
353
int byteBufferSize = _encoding.
GetMaxByteCount
(numberOfChars);
fx\src\data\System\Data\SqlClient\TdsParser.cs (1)
6703
if ((numChars <= bytesLeft) && (encoding.
GetMaxByteCount
(charData.Length) <= bytesLeft)) {
System.Data.SqlXml (1)
System\Xml\Xsl\XsltOld\SequentialOutput.cs (1)
541
this.byteBuffer = new byte[utf8Encoding.
GetMaxByteCount
(1)];
System.Web (3)
Hosting\ISAPIWorkerRequest.cs (1)
93
s_ByteBufferAllocator = new UbyteBufferAllocator(Encoding.UTF8.
GetMaxByteCount
(BUFFER_SIZE), MAX_FREE_BUFFERS);
HttpWriter.cs (1)
1020
int estByteSize = _responseEncoding.
GetMaxByteCount
(numChars);
Util\StringUtil.cs (1)
328
bytes = new byte[enc.
GetMaxByteCount
(s.Length) + 1];