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)
776if (isUnsigned && sbyte.IsNegative(sign) && (source.Length >= Size)) 785if (source.Length > Size) 787if (source[..^Size].ContainsAnyExcept((byte)sign)) 796if (isUnsigned == sbyte.IsNegative((sbyte)source[^Size])) 806if (source.Length >= Size) 809result = BinaryPrimitives.ReadInt128BigEndian(source.Slice(source.Length - Size)); 825result |= ((One << ((Size * 8) - 1)) >> (((Size - source.Length) * 8) - 1)); 849if (isUnsigned && sbyte.IsNegative(sign) && (source.Length >= Size)) 858if (source.Length > Size) 860if (source[Size..].ContainsAnyExcept((byte)sign)) 869if (isUnsigned == sbyte.IsNegative((sbyte)source[Size - 1])) 879if (source.Length >= Size) 898result <<= ((Size - source.Length) * 8); 903result |= ((One << ((Size * 8) - 1)) >> (((Size - source.Length) * 8) - 1)); 919return (Size * 8) - LeadingZeroCountAsInt32(value); 923return (Size * 8) + 1 - LeadingZeroCountAsInt32(~value); 928int IBinaryInteger<Int128>.GetByteCount() => Size; 935bytesWritten = Size; 948bytesWritten = Size;