6 overrides of GetByteCount
mscorlib (6)
system\text\asciiencoding.cs (1)
91public override unsafe int GetByteCount(String chars)
system\text\encodingnls.cs (1)
77public override unsafe int GetByteCount(String s)
system\text\unicodeencoding.cs (1)
128public override unsafe int GetByteCount(String s)
system\text\utf32encoding.cs (1)
132public override unsafe int GetByteCount(String s)
system\text\utf7encoding.cs (1)
197public override unsafe int GetByteCount(String s)
system\text\utf8encoding.cs (1)
160public override unsafe int GetByteCount(String chars)
32 references to GetByteCount
mscorlib (7)
System\Diagnostics\Eventing\TraceLogging\FieldMetadata.cs (1)
116this.nameSize = Encoding.UTF8.GetByteCount(this.name) + 1;
System\Diagnostics\Eventing\TraceLogging\Statics.cs (1)
89int metadataSize = Encoding.UTF8.GetByteCount(name) + 3 + prefixSize + suffixSize;
system\io\binarywriter.cs (1)
361int len = _encoding.GetByteCount(value);
system\security\util\tokenizer.cs (1)
286stream.Position = reader._in.CurrentEncoding.GetByteCount( fakeReadString );
system\stubhelpers.cs (2)
161nb = Encoding.UTF8.GetByteCount(strManaged); 204int nb = Encoding.UTF8.GetByteCount(strManaged);
system\text\encoding.cs (1)
1068int byteCount = GetByteCount(s);
System (1)
net\System\Net\WebSockets\WebSocketHelpers.cs (1)
438length = UTF8Encoding.UTF8.GetByteCount(statusDescription);
System.Data (3)
fx\src\data\Microsoft\SqlServer\Server\SqlRecordBuffer.cs (1)
493byte[] bytes = new byte[2 + System.Text.Encoding.Unicode.GetByteCount(value)];
fx\src\data\System\Data\SqlClient\TdsParser.cs (2)
9435actualLengthInBytes = _defaultEncoding.GetByteCount(stringValue); 9558ccbStringBytes = _defaultEncoding.GetByteCount(stringValue);
System.Data.Entity (1)
System\Data\Mapping\MetadataMappingHasherVisitor.HashSourceBuilder.cs (1)
187count += Encoding.Unicode.GetByteCount(s);
System.Runtime.Serialization (4)
System\Xml\XmlC14NWriter.cs (4)
194element.prefixLength = Encoding.UTF8.GetByteCount(prefix); 196element.localNameLength = Encoding.UTF8.GetByteCount(localName); 446attribute.prefixLength = Encoding.UTF8.GetByteCount(prefix); 448attribute.localNameLength = Encoding.UTF8.GetByteCount(localName);
System.ServiceModel (6)
System\ServiceModel\Channels\BinaryMessageEncoder.cs (3)
487int utf8ValueSize = Encoding.UTF8.GetByteCount(newStrings[i].Value); 518int utf8ValueSize = Encoding.UTF8.GetByteCount(newString); 1022int bytesRequired = Encoding.UTF8.GetByteCount(s.Value);
System\ServiceModel\Channels\ConnectionOrientedTransportChannelListener.cs (1)
350int encodedSize = Encoding.UTF8.GetByteCount(uri.AbsoluteUri);
System\ServiceModel\Channels\FramingEncoders.cs (1)
55int valueByteCount = Encoding.UTF8.GetByteCount(value);
System\ServiceModel\Channels\PeerNodeImplementation.cs (1)
1675int viaSize = Encoding.UTF8.GetByteCount(uri.OriginalString);
System.Web (3)
StringResourceManager.cs (1)
100size = Encoding.UTF8.GetByteCount(s);
UI\ObjectStateFormatter.cs (1)
227int count = Encoding.Unicode.GetByteCount(viewStateUserKey);
WebSockets\AspNetWebSocket.cs (1)
505int byteCount = Encoding.UTF8.GetByteCount(statusDescription);
System.Web.Mobile (1)
UI\MobileControls\MobilePage.cs (1)
1459int count = Encoding.Unicode.GetByteCount(ViewStateUserKey);
System.Windows.Forms (2)
winforms\Managed\System\WinForms\TextBoxBase.cs (2)
2141int newStart = start == 0 ? 0 : e.GetByteCount(str.Substring(0, start)); 2142end = newStart + e.GetByteCount(str.Substring(start, end - start));
System.Xml (4)
System\Xml\Core\XmlTextReaderImpl.cs (2)
3335Throw( Res.Xml_EncodingSwitchAfterResetState, ( ps.encoding.GetByteCount( "A" ) == 1 ) ? "UTF-8" : "UTF-16" ); 3532Throw( Res.Xml_EncodingSwitchAfterResetState, ( ps.encoding.GetByteCount( "A" ) == 1 ) ? "UTF-8" : "UTF-16" );
System\Xml\Core\XmlTextReaderImplAsync.cs (2)
1167Throw( Res.Xml_EncodingSwitchAfterResetState, ( ps.encoding.GetByteCount( "A" ) == 1 ) ? "UTF-8" : "UTF-16" ); 1365Throw( Res.Xml_EncodingSwitchAfterResetState, ( ps.encoding.GetByteCount( "A" ) == 1 ) ? "UTF-8" : "UTF-16" );