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)
770
if (isUnsigned && sbyte.IsNegative(sign) && (source.Length >=
Size
))
779
if (source.Length >
Size
)
781
if (source[..^
Size
].ContainsAnyExcept((byte)sign))
790
if (isUnsigned == sbyte.IsNegative((sbyte)source[^
Size
]))
800
if (source.Length >=
Size
)
803
result = BinaryPrimitives.ReadInt128BigEndian(source.Slice(source.Length -
Size
));
819
result |= ((One << ((
Size
* 8) - 1)) >> (((
Size
- source.Length) * 8) - 1));
843
if (isUnsigned && sbyte.IsNegative(sign) && (source.Length >=
Size
))
852
if (source.Length >
Size
)
854
if (source[
Size
..].ContainsAnyExcept((byte)sign))
863
if (isUnsigned == sbyte.IsNegative((sbyte)source[
Size
- 1]))
873
if (source.Length >=
Size
)
892
result <<= ((
Size
- source.Length) * 8);
897
result |= ((One << ((
Size
* 8) - 1)) >> (((
Size
- source.Length) * 8) - 1));
913
return (
Size
* 8) - LeadingZeroCountAsInt32(value);
917
return (
Size
* 8) + 1 - LeadingZeroCountAsInt32(~value);
922
int IBinaryInteger<Int128>.GetByteCount() =>
Size
;
929
bytesWritten =
Size
;
942
bytesWritten =
Size
;