16 references to AvailableLength
System.Net.Http (16)
src\runtime\src\libraries\Common\src\System\Net\ArrayBuffer.cs (7)
117Debug.Assert(byteCount <= AvailableLength); 125if (byteCount > AvailableLength) 133Debug.Assert(AvailableLength < byteCount); 142int totalFree = _activeStart + AvailableLength; 149Debug.Assert(byteCount <= AvailableLength); 179Debug.Assert(byteCount <= AvailableLength); 184EnsureAvailableSpaceCore(AvailableLength + 1);
System\Net\Http\SocketsHttpHandler\HttpConnection.cs (9)
1379Debug.Assert(source.Length <= _writeBuffer.AvailableLength); 1386int remaining = _writeBuffer.AvailableLength; 1417int remaining = _writeBuffer.AvailableLength; 1474if (source.Length <= _writeBuffer.AvailableLength) 1502if (source.Length <= _writeBuffer.AvailableLength) 1652Debug.Assert(_readBuffer.AvailableLength == _readBuffer.Capacity); 1653Debug.Assert(_readBuffer.AvailableLength >= InitialReadBufferSize); 1840Debug.Assert(_readBuffer.AvailableLength == _readBuffer.Capacity); 1874Debug.Assert(_readBuffer.AvailableLength == _readBuffer.Capacity);