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