5 overrides of GetByteCount
System.Formats.Asn1 (2)
System\Formats\Asn1\AsnCharacterStringEncodings.cs (2)
62int GetByteCount(ReadOnlySpan<char> chars) 386public override int GetByteCount(ReadOnlySpan<char> chars)
System.Private.CoreLib (3)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\ASCIIEncoding.cs (1)
141public override unsafe int GetByteCount(ReadOnlySpan<char> chars)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\Latin1Encoding.cs (1)
80public override unsafe int GetByteCount(ReadOnlySpan<char> chars)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\UTF8Encoding.cs (1)
190public override unsafe int GetByteCount(ReadOnlySpan<char> chars)
28 references to GetByteCount
ILCompiler.ReadyToRun (1)
src\runtime\src\coreclr\tools\Common\JitInterface\CorInfoImpl.cs (1)
2212*pRequiredBufferSize = (nuint)Encoding.UTF8.GetByteCount(utf16) + 1;
ILCompiler.RyuJit (1)
src\runtime\src\coreclr\tools\Common\JitInterface\CorInfoImpl.cs (1)
2212*pRequiredBufferSize = (nuint)Encoding.UTF8.GetByteCount(utf16) + 1;
Microsoft.Net.Http.Headers (1)
ContentDispositionHeaderValue.cs (1)
546Base64.GetMaxEncodedToUtf8Length(Encoding.UTF8.GetByteCount(input.AsSpan())) +
System.Diagnostics.Process (1)
src\runtime\src\libraries\Common\src\System\Runtime\InteropServices\SpanOfCharAsUtf8StringMarshaller.cs (1)
44int exactByteCount = checked(Encoding.UTF8.GetByteCount(managed) + 1); // + 1 for null terminator
System.Formats.Asn1 (1)
System\Formats\Asn1\AsnWriter.Text.cs (1)
83int size = encoding.GetByteCount(str);
System.Formats.Cbor (1)
System\Formats\Cbor\Writer\CborWriter.String.cs (1)
130length = utf8Encoding.GetByteCount(value);
System.Formats.Tar (1)
System\Formats\Tar\TarHeader.Write.cs (1)
1160=> Encoding.UTF8.GetByteCount(text);
System.IO.MemoryMappedFiles (1)
System\IO\MemoryMappedFiles\MemoryMappedFile.Unix.cs (1)
263Debug.Assert(Encoding.UTF8.GetByteCount(span) <= MaxNameLength); // the standard uses Utf8
System.Memory (2)
System\Text\EncodingExtensions.cs (2)
43int byteCount = encoding.GetByteCount(chars); 152byte[] retVal = new byte[encoding.GetByteCount(span)];
System.Net.Http (1)
System\Net\Http\SocketsHttpHandler\SocksHelper.cs (1)
329Debug.Assert(Encoding.UTF8.GetByteCount(chars) > 255);
System.Net.Ping (1)
src\runtime\src\libraries\Common\src\System\Runtime\InteropServices\SpanOfCharAsUtf8StringMarshaller.cs (1)
44int exactByteCount = checked(Encoding.UTF8.GetByteCount(managed) + 1); // + 1 for null terminator
System.Net.Primitives (1)
src\runtime\src\libraries\Common\src\System\Net\NetworkInformation\InterfaceInfoPal.Unix.cs (1)
39bufferSize = Encoding.UTF8.GetByteCount(castInterfaceName) + 1;
System.Net.Security (1)
System\Net\NegotiateAuthenticationPal.ManagedNtlm.cs (1)
429Span<byte> pwBytes = stackalloc byte[Encoding.Unicode.GetByteCount(password)];
System.Private.CoreLib (6)
src\runtime\src\libraries\Common\src\System\Runtime\InteropServices\SpanOfCharAsUtf8StringMarshaller.cs (1)
44int exactByteCount = checked(Encoding.UTF8.GetByteCount(managed) + 1); // + 1 for null terminator
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeFormat.cs (1)
771Encoding.UTF8.GetBytes(s, Unsafe.BitCast<Span<TChar>, Span<byte>>(result.AppendSpan(Encoding.UTF8.GetByteCount(s))));
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\File.cs (1)
1678return preambleSize + encoding.GetByteCount(contents);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshal.Unix.cs (1)
49int byteLength = Encoding.UTF8.GetByteCount(chars);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\Encoding.cs (1)
743int required = GetByteCount(chars);
System\CrashInfo.cs (1)
378int size = Encoding.UTF8.GetByteCount(chars);
System.Security.Cryptography (3)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\PasswordBasedEncryption.cs (3)
211int byteCount = encoding.GetByteCount(password); 363pwdTmpBytes = new byte[encoding.GetByteCount(password)]; 496int byteCount = encoding.GetByteCount(password);
System.Security.Cryptography.Pkcs (3)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\PasswordBasedEncryption.cs (3)
211int byteCount = encoding.GetByteCount(password); 363pwdTmpBytes = new byte[encoding.GetByteCount(password)]; 496int byteCount = encoding.GetByteCount(password);
System.Windows.Forms (2)
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (2)
2363int newStart = start == 0 ? 0 : e.GetByteCount(str.AsSpan(0, start)); 2364end = newStart + e.GetByteCount(str.AsSpan(start, end - start));