25 references to Size
System.Private.CoreLib (25)
src\libraries\System.Private.CoreLib\src\System\BitConverter.cs (4)
169
byte[] bytes = new byte[Int128.
Size
];
183
if (destination.Length < Int128.
Size
)
548
if (startIndex > value.Length - Int128.
Size
)
563
if (value.Length < Int128.
Size
)
src\libraries\System.Private.CoreLib\src\System\Int128.cs (21)
766
if (isUnsigned && sbyte.IsNegative(sign) && (source.Length >=
Size
))
775
if (source.Length >
Size
)
777
if (source[..^
Size
].ContainsAnyExcept((byte)sign))
786
if (isUnsigned == sbyte.IsNegative((sbyte)source[^
Size
]))
798
if (source.Length >=
Size
)
800
sourceRef = ref Unsafe.Add(ref sourceRef, source.Length -
Size
);
824
result |= ((One << ((
Size
* 8) - 1)) >> (((
Size
- source.Length) * 8) - 1));
848
if (isUnsigned && sbyte.IsNegative(sign) && (source.Length >=
Size
))
857
if (source.Length >
Size
)
859
if (source[
Size
..].ContainsAnyExcept((byte)sign))
868
if (isUnsigned == sbyte.IsNegative((sbyte)source[
Size
- 1]))
880
if (source.Length >=
Size
)
904
result <<= ((
Size
- source.Length) * 8);
909
result |= ((One << ((
Size
* 8) - 1)) >> (((
Size
- source.Length) * 8) - 1));
925
return (
Size
* 8) - LeadingZeroCountAsInt32(value);
929
return (
Size
* 8) + 1 - LeadingZeroCountAsInt32(~value);
934
int IBinaryInteger<Int128>.GetByteCount() =>
Size
;
941
bytesWritten =
Size
;
954
bytesWritten =
Size
;