14 implementations of GetByteCount
System.Private.CoreLib (13)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Byte.cs (1)
369int IBinaryInteger<byte>.GetByteCount() => sizeof(byte);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Char.cs (1)
1318int IBinaryInteger<char>.GetByteCount() => sizeof(char);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int128.cs (1)
928int IBinaryInteger<Int128>.GetByteCount() => Size;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int16.cs (1)
457int IBinaryInteger<short>.GetByteCount() => sizeof(short);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int32.cs (1)
497int IBinaryInteger<int>.GetByteCount() => sizeof(int);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int64.cs (1)
494int IBinaryInteger<long>.GetByteCount() => sizeof(long);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IntPtr.cs (1)
517int IBinaryInteger<nint>.GetByteCount() => sizeof(nint_t);
src\runtime\src\libraries\System.Private.CoreLib\src\System\SByte.cs (1)
434int IBinaryInteger<sbyte>.GetByteCount() => sizeof(sbyte);
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt128.cs (1)
1213int IBinaryInteger<UInt128>.GetByteCount() => Size;
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt16.cs (1)
382int IBinaryInteger<ushort>.GetByteCount() => sizeof(ushort);
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt32.cs (1)
446int IBinaryInteger<uint>.GetByteCount() => sizeof(uint);
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt64.cs (1)
453int IBinaryInteger<ulong>.GetByteCount() => sizeof(ulong);
src\runtime\src\libraries\System.Private.CoreLib\src\System\UIntPtr.cs (1)
448int IBinaryInteger<nuint>.GetByteCount() => sizeof(nuint_t);
System.Runtime.Numerics (1)
System\Numerics\BigInteger.cs (1)
3633int IBinaryInteger<BigInteger>.GetByteCount() => GetGenericMathByteCount();
41 references to GetByteCount
ILCompiler.Compiler (11)
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\ElfObjectWriter.cs (10)
852EntrySize = (ulong)default(TSize).GetByteCount() * (_useInlineRelocationAddends ? 2u : 3u), 954default(TSize).GetByteCount() + // Entry point 955default(TSize).GetByteCount() + // Segment header offset 956default(TSize).GetByteCount() + // Section header offset 1014default(TSize).GetByteCount() + // Flags 1015default(TSize).GetByteCount() + // Address 1016default(TSize).GetByteCount() + // Offset 1017default(TSize).GetByteCount() + // Size 1020default(TSize).GetByteCount() + // Alignment 1021default(TSize).GetByteCount(); // Entry size
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\SectionWriter.cs (1)
117Span<byte> buffer = bufferWriter.GetSpan(value.GetByteCount());
ILCompiler.ReadyToRun (11)
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\ElfObjectWriter.cs (10)
852EntrySize = (ulong)default(TSize).GetByteCount() * (_useInlineRelocationAddends ? 2u : 3u), 954default(TSize).GetByteCount() + // Entry point 955default(TSize).GetByteCount() + // Segment header offset 956default(TSize).GetByteCount() + // Section header offset 1014default(TSize).GetByteCount() + // Flags 1015default(TSize).GetByteCount() + // Address 1016default(TSize).GetByteCount() + // Offset 1017default(TSize).GetByteCount() + // Size 1020default(TSize).GetByteCount() + // Alignment 1021default(TSize).GetByteCount(); // Entry size
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\SectionWriter.cs (1)
117Span<byte> buffer = bufferWriter.GetSpan(value.GetByteCount());
System.Private.CoreLib (18)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Byte.cs (1)
368/// <inheritdoc cref="IBinaryInteger{TSelf}.GetByteCount()" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Char.cs (1)
1317/// <inheritdoc cref="IBinaryInteger{TSelf}.GetByteCount()" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int128.cs (1)
927/// <inheritdoc cref="IBinaryInteger{TSelf}.GetByteCount()" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int16.cs (1)
456/// <inheritdoc cref="IBinaryInteger{TSelf}.GetByteCount()" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int32.cs (1)
496/// <inheritdoc cref="IBinaryInteger{TSelf}.GetByteCount()" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int64.cs (1)
493/// <inheritdoc cref="IBinaryInteger{TSelf}.GetByteCount()" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\IntPtr.cs (1)
516/// <inheritdoc cref="IBinaryInteger{TSelf}.GetByteCount()" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\IBinaryInteger.cs (3)
302TSelf bitCount = TSelf.CreateChecked(value!.GetByteCount() * 8L); 414int bitCount = checked(value!.GetByteCount() * 8); 429int bitCount = checked(value!.GetByteCount() * 8);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Random.cs (2)
391int byteCount = Math.Max(minValue.GetByteCount(), maxValue.GetByteCount());
src\runtime\src\libraries\System.Private.CoreLib\src\System\SByte.cs (1)
433/// <inheritdoc cref="IBinaryInteger{TSelf}.GetByteCount()" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt128.cs (1)
1212/// <inheritdoc cref="IBinaryInteger{TSelf}.GetByteCount()" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt16.cs (1)
381/// <inheritdoc cref="IBinaryInteger{TSelf}.GetByteCount()" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt32.cs (1)
445/// <inheritdoc cref="IBinaryInteger{TSelf}.GetByteCount()" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt64.cs (1)
452/// <inheritdoc cref="IBinaryInteger{TSelf}.GetByteCount()" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\UIntPtr.cs (1)
447/// <inheritdoc cref="IBinaryInteger{TSelf}.GetByteCount()" />
System.Runtime.Numerics (1)
System\Numerics\BigInteger.cs (1)
3632/// <inheritdoc cref="IBinaryInteger{TSelf}.GetByteCount()" />