14 implementations of GetByteCount
System.Private.CoreLib (13)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Byte.cs (1)
364int IBinaryInteger<byte>.GetByteCount() => sizeof(byte);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Char.cs (1)
1337int IBinaryInteger<char>.GetByteCount() => sizeof(char);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int128.cs (1)
923int IBinaryInteger<Int128>.GetByteCount() => Size;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int16.cs (1)
452int IBinaryInteger<short>.GetByteCount() => sizeof(short);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int32.cs (1)
492int IBinaryInteger<int>.GetByteCount() => sizeof(int);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int64.cs (1)
489int IBinaryInteger<long>.GetByteCount() => sizeof(long);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IntPtr.cs (1)
522int IBinaryInteger<nint>.GetByteCount() => sizeof(nint_t);
src\runtime\src\libraries\System.Private.CoreLib\src\System\SByte.cs (1)
429int IBinaryInteger<sbyte>.GetByteCount() => sizeof(sbyte);
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt128.cs (1)
1210int IBinaryInteger<UInt128>.GetByteCount() => Size;
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt16.cs (1)
377int IBinaryInteger<ushort>.GetByteCount() => sizeof(ushort);
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt32.cs (1)
441int IBinaryInteger<uint>.GetByteCount() => sizeof(uint);
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt64.cs (1)
448int IBinaryInteger<ulong>.GetByteCount() => sizeof(ulong);
src\runtime\src\libraries\System.Private.CoreLib\src\System\UIntPtr.cs (1)
453int IBinaryInteger<nuint>.GetByteCount() => sizeof(nuint_t);
System.Runtime.Numerics (1)
System\Numerics\BigInteger.cs (1)
4427int IBinaryInteger<BigInteger>.GetByteCount() => GetGenericMathByteCount();
45 references to GetByteCount
ILCompiler.Compiler (11)
parent\parent\Common\Compiler\ObjectWriter\ElfObjectWriter.cs (10)
857EntrySize = (ulong)default(TSize).GetByteCount() * (_useInlineRelocationAddends ? 2u : 3u), 959default(TSize).GetByteCount() + // Entry point 960default(TSize).GetByteCount() + // Segment header offset 961default(TSize).GetByteCount() + // Section header offset 1019default(TSize).GetByteCount() + // Flags 1020default(TSize).GetByteCount() + // Address 1021default(TSize).GetByteCount() + // Offset 1022default(TSize).GetByteCount() + // Size 1025default(TSize).GetByteCount() + // Alignment 1026default(TSize).GetByteCount(); // Entry size
parent\parent\Common\Compiler\ObjectWriter\SectionWriter.cs (1)
148Span<byte> buffer = bufferWriter.GetSpan(value.GetByteCount());
ILCompiler.ReadyToRun (11)
parent\parent\Common\Compiler\ObjectWriter\ElfObjectWriter.cs (10)
857EntrySize = (ulong)default(TSize).GetByteCount() * (_useInlineRelocationAddends ? 2u : 3u), 959default(TSize).GetByteCount() + // Entry point 960default(TSize).GetByteCount() + // Segment header offset 961default(TSize).GetByteCount() + // Section header offset 1019default(TSize).GetByteCount() + // Flags 1020default(TSize).GetByteCount() + // Address 1021default(TSize).GetByteCount() + // Offset 1022default(TSize).GetByteCount() + // Size 1025default(TSize).GetByteCount() + // Alignment 1026default(TSize).GetByteCount(); // Entry size
parent\parent\Common\Compiler\ObjectWriter\SectionWriter.cs (1)
148Span<byte> buffer = bufferWriter.GetSpan(value.GetByteCount());
System.Private.CoreLib (22)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Byte.cs (1)
363/// <inheritdoc cref="IBinaryInteger{TSelf}.GetByteCount()" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Char.cs (1)
1336/// <inheritdoc cref="IBinaryInteger{TSelf}.GetByteCount()" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int128.cs (1)
922/// <inheritdoc cref="IBinaryInteger{TSelf}.GetByteCount()" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int16.cs (1)
451/// <inheritdoc cref="IBinaryInteger{TSelf}.GetByteCount()" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int32.cs (1)
491/// <inheritdoc cref="IBinaryInteger{TSelf}.GetByteCount()" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int64.cs (1)
488/// <inheritdoc cref="IBinaryInteger{TSelf}.GetByteCount()" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\IntPtr.cs (1)
521/// <inheritdoc cref="IBinaryInteger{TSelf}.GetByteCount()" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.DecimalIeee754.cs (4)
2449int bits = TValue.Zero.GetByteCount() * 8; 2623TValue limit = (TValue.One << ((TValue.Zero.GetByteCount() * 8) / 2)) / ten; 2678int bits = TValue.Zero.GetByteCount() * 8; 2754int limbBits = TValue.Zero.GetByteCount() * 8;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\IBinaryInteger.cs (3)
305TSelf bitCount = TSelf.CreateChecked(value!.GetByteCount() * 8L); 417int bitCount = checked(value!.GetByteCount() * 8); 432int bitCount = checked(value!.GetByteCount() * 8);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Random.cs (2)
385int byteCount = Math.Max(minValue.GetByteCount(), maxValue.GetByteCount());
src\runtime\src\libraries\System.Private.CoreLib\src\System\SByte.cs (1)
428/// <inheritdoc cref="IBinaryInteger{TSelf}.GetByteCount()" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt128.cs (1)
1209/// <inheritdoc cref="IBinaryInteger{TSelf}.GetByteCount()" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt16.cs (1)
376/// <inheritdoc cref="IBinaryInteger{TSelf}.GetByteCount()" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt32.cs (1)
440/// <inheritdoc cref="IBinaryInteger{TSelf}.GetByteCount()" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt64.cs (1)
447/// <inheritdoc cref="IBinaryInteger{TSelf}.GetByteCount()" />
src\runtime\src\libraries\System.Private.CoreLib\src\System\UIntPtr.cs (1)
452/// <inheritdoc cref="IBinaryInteger{TSelf}.GetByteCount()" />
System.Runtime.Numerics (1)
System\Numerics\BigInteger.cs (1)
4426/// <inheritdoc cref="IBinaryInteger{TSelf}.GetByteCount()" />