25 references to Size
System.Private.CoreLib (25)
src\runtime\src\libraries\System.Private.CoreLib\src\System\BitConverter.cs (4)
170
byte[] bytes = new byte[Int128.
Size
];
184
if (destination.Length < Int128.
Size
)
577
if (startIndex > value.Length - Int128.
Size
)
592
if (value.Length < Int128.
Size
)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int128.cs (21)
776
if (isUnsigned && sbyte.IsNegative(sign) && (source.Length >=
Size
))
785
if (source.Length >
Size
)
787
if (source[..^
Size
].ContainsAnyExcept((byte)sign))
796
if (isUnsigned == sbyte.IsNegative((sbyte)source[^
Size
]))
806
if (source.Length >=
Size
)
809
result = BinaryPrimitives.ReadInt128BigEndian(source.Slice(source.Length -
Size
));
825
result |= ((One << ((
Size
* 8) - 1)) >> (((
Size
- source.Length) * 8) - 1));
849
if (isUnsigned && sbyte.IsNegative(sign) && (source.Length >=
Size
))
858
if (source.Length >
Size
)
860
if (source[
Size
..].ContainsAnyExcept((byte)sign))
869
if (isUnsigned == sbyte.IsNegative((sbyte)source[
Size
- 1]))
879
if (source.Length >=
Size
)
898
result <<= ((
Size
- source.Length) * 8);
903
result |= ((One << ((
Size
* 8) - 1)) >> (((
Size
- source.Length) * 8) - 1));
919
return (
Size
* 8) - LeadingZeroCountAsInt32(value);
923
return (
Size
* 8) + 1 - LeadingZeroCountAsInt32(~value);
928
int IBinaryInteger<Int128>.GetByteCount() =>
Size
;
935
bytesWritten =
Size
;
948
bytesWritten =
Size
;