14 implementations of GetByteCount
System.Private.CoreLib (13)
src\libraries\System.Private.CoreLib\src\System\Byte.cs (1)
366int IBinaryInteger<byte>.GetByteCount() => sizeof(byte);
src\libraries\System.Private.CoreLib\src\System\Char.cs (1)
1279int IBinaryInteger<char>.GetByteCount() => sizeof(char);
src\libraries\System.Private.CoreLib\src\System\Int128.cs (1)
938int IBinaryInteger<Int128>.GetByteCount() => Size;
src\libraries\System.Private.CoreLib\src\System\Int16.cs (1)
463int IBinaryInteger<short>.GetByteCount() => sizeof(short);
src\libraries\System.Private.CoreLib\src\System\Int32.cs (1)
502int IBinaryInteger<int>.GetByteCount() => sizeof(int);
src\libraries\System.Private.CoreLib\src\System\Int64.cs (1)
499int IBinaryInteger<long>.GetByteCount() => sizeof(long);
src\libraries\System.Private.CoreLib\src\System\IntPtr.cs (1)
504int IBinaryInteger<nint>.GetByteCount() => sizeof(nint_t);
src\libraries\System.Private.CoreLib\src\System\SByte.cs (1)
424int IBinaryInteger<sbyte>.GetByteCount() => sizeof(sbyte);
src\libraries\System.Private.CoreLib\src\System\UInt128.cs (1)
944int IBinaryInteger<UInt128>.GetByteCount() => Size;
src\libraries\System.Private.CoreLib\src\System\UInt16.cs (1)
395int IBinaryInteger<ushort>.GetByteCount() => sizeof(ushort);
src\libraries\System.Private.CoreLib\src\System\UInt32.cs (1)
433int IBinaryInteger<uint>.GetByteCount() => sizeof(uint);
src\libraries\System.Private.CoreLib\src\System\UInt64.cs (1)
432int IBinaryInteger<ulong>.GetByteCount() => sizeof(ulong);
src\libraries\System.Private.CoreLib\src\System\UIntPtr.cs (1)
436int IBinaryInteger<nuint>.GetByteCount() => sizeof(nuint_t);
System.Runtime.Numerics (1)
System\Numerics\BigInteger.cs (1)
3631int IBinaryInteger<BigInteger>.GetByteCount() => GetGenericMathByteCount();
17 references to GetByteCount
System.Private.CoreLib (16)
src\libraries\System.Private.CoreLib\src\System\Byte.cs (1)
365/// <inheritdoc cref="IBinaryInteger{TSelf}.GetByteCount()" />
src\libraries\System.Private.CoreLib\src\System\Char.cs (1)
1278/// <inheritdoc cref="IBinaryInteger{TSelf}.GetByteCount()" />
src\libraries\System.Private.CoreLib\src\System\Int128.cs (1)
937/// <inheritdoc cref="IBinaryInteger{TSelf}.GetByteCount()" />
src\libraries\System.Private.CoreLib\src\System\Int16.cs (1)
462/// <inheritdoc cref="IBinaryInteger{TSelf}.GetByteCount()" />
src\libraries\System.Private.CoreLib\src\System\Int32.cs (1)
501/// <inheritdoc cref="IBinaryInteger{TSelf}.GetByteCount()" />
src\libraries\System.Private.CoreLib\src\System\Int64.cs (1)
498/// <inheritdoc cref="IBinaryInteger{TSelf}.GetByteCount()" />
src\libraries\System.Private.CoreLib\src\System\IntPtr.cs (1)
503/// <inheritdoc cref="IBinaryInteger{TSelf}.GetByteCount()" />
src\libraries\System.Private.CoreLib\src\System\Numerics\IBinaryInteger.cs (3)
33TSelf bitCount = TSelf.CreateChecked(value!.GetByteCount() * 8L); 145int bitCount = checked(value!.GetByteCount() * 8); 160int bitCount = checked(value!.GetByteCount() * 8);
src\libraries\System.Private.CoreLib\src\System\SByte.cs (1)
423/// <inheritdoc cref="IBinaryInteger{TSelf}.GetByteCount()" />
src\libraries\System.Private.CoreLib\src\System\UInt128.cs (1)
943/// <inheritdoc cref="IBinaryInteger{TSelf}.GetByteCount()" />
src\libraries\System.Private.CoreLib\src\System\UInt16.cs (1)
394/// <inheritdoc cref="IBinaryInteger{TSelf}.GetByteCount()" />
src\libraries\System.Private.CoreLib\src\System\UInt32.cs (1)
432/// <inheritdoc cref="IBinaryInteger{TSelf}.GetByteCount()" />
src\libraries\System.Private.CoreLib\src\System\UInt64.cs (1)
431/// <inheritdoc cref="IBinaryInteger{TSelf}.GetByteCount()" />
src\libraries\System.Private.CoreLib\src\System\UIntPtr.cs (1)
435/// <inheritdoc cref="IBinaryInteger{TSelf}.GetByteCount()" />
System.Runtime.Numerics (1)
System\Numerics\BigInteger.cs (1)
3630/// <inheritdoc cref="IBinaryInteger{TSelf}.GetByteCount()" />