25 references to Size
System.Private.CoreLib (25)
src\runtime\src\libraries\System.Private.CoreLib\src\System\BitConverter.cs (4)
170byte[] bytes = new byte[Int128.Size]; 184if (destination.Length < Int128.Size) 577if (startIndex > value.Length - Int128.Size) 592if (value.Length < Int128.Size)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int128.cs (21)
770if (isUnsigned && sbyte.IsNegative(sign) && (source.Length >= Size)) 779if (source.Length > Size) 781if (source[..^Size].ContainsAnyExcept((byte)sign)) 790if (isUnsigned == sbyte.IsNegative((sbyte)source[^Size])) 800if (source.Length >= Size) 803result = BinaryPrimitives.ReadInt128BigEndian(source.Slice(source.Length - Size)); 819result |= ((One << ((Size * 8) - 1)) >> (((Size - source.Length) * 8) - 1)); 843if (isUnsigned && sbyte.IsNegative(sign) && (source.Length >= Size)) 852if (source.Length > Size) 854if (source[Size..].ContainsAnyExcept((byte)sign)) 863if (isUnsigned == sbyte.IsNegative((sbyte)source[Size - 1])) 873if (source.Length >= Size) 892result <<= ((Size - source.Length) * 8); 897result |= ((One << ((Size * 8) - 1)) >> (((Size - source.Length) * 8) - 1)); 913return (Size * 8) - LeadingZeroCountAsInt32(value); 917return (Size * 8) + 1 - LeadingZeroCountAsInt32(~value); 922int IBinaryInteger<Int128>.GetByteCount() => Size; 929bytesWritten = Size; 942bytesWritten = Size;