14 implementations of GetByteCount
System.Private.CoreLib (13)
src\libraries\System.Private.CoreLib\src\System\Byte.cs (1)
366
int IBinaryInteger<byte>.
GetByteCount
() => sizeof(byte);
src\libraries\System.Private.CoreLib\src\System\Char.cs (1)
1279
int IBinaryInteger<char>.
GetByteCount
() => sizeof(char);
src\libraries\System.Private.CoreLib\src\System\Int128.cs (1)
938
int IBinaryInteger<Int128>.
GetByteCount
() => Size;
src\libraries\System.Private.CoreLib\src\System\Int16.cs (1)
463
int IBinaryInteger<short>.
GetByteCount
() => sizeof(short);
src\libraries\System.Private.CoreLib\src\System\Int32.cs (1)
502
int IBinaryInteger<int>.
GetByteCount
() => sizeof(int);
src\libraries\System.Private.CoreLib\src\System\Int64.cs (1)
499
int IBinaryInteger<long>.
GetByteCount
() => sizeof(long);
src\libraries\System.Private.CoreLib\src\System\IntPtr.cs (1)
504
int IBinaryInteger<nint>.
GetByteCount
() => sizeof(nint_t);
src\libraries\System.Private.CoreLib\src\System\SByte.cs (1)
424
int IBinaryInteger<sbyte>.
GetByteCount
() => sizeof(sbyte);
src\libraries\System.Private.CoreLib\src\System\UInt128.cs (1)
944
int IBinaryInteger<UInt128>.
GetByteCount
() => Size;
src\libraries\System.Private.CoreLib\src\System\UInt16.cs (1)
395
int IBinaryInteger<ushort>.
GetByteCount
() => sizeof(ushort);
src\libraries\System.Private.CoreLib\src\System\UInt32.cs (1)
433
int IBinaryInteger<uint>.
GetByteCount
() => sizeof(uint);
src\libraries\System.Private.CoreLib\src\System\UInt64.cs (1)
432
int IBinaryInteger<ulong>.
GetByteCount
() => sizeof(ulong);
src\libraries\System.Private.CoreLib\src\System\UIntPtr.cs (1)
436
int IBinaryInteger<nuint>.
GetByteCount
() => sizeof(nuint_t);
System.Runtime.Numerics (1)
System\Numerics\BigInteger.cs (1)
3631
int 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)
33
TSelf bitCount = TSelf.CreateChecked(value!.
GetByteCount
() * 8L);
145
int bitCount = checked(value!.
GetByteCount
() * 8);
160
int 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
()" />