31 references to ActiveLength
System.Net.Security (31)
src\runtime\src\libraries\Common\src\System\Net\ArrayBuffer.cs (8)
97
Debug.Assert(byteCount <=
ActiveLength
, $"Expected {byteCount} <= {
ActiveLength
}");
144
Buffer.BlockCopy(_bytes, _activeStart, _bytes, 0,
ActiveLength
);
145
_availableStart =
ActiveLength
;
151
int desiredSize =
ActiveLength
+ byteCount;
166
if (
ActiveLength
!= 0)
168
Buffer.BlockCopy(oldBytes, _activeStart, newBytes, 0,
ActiveLength
);
171
_availableStart =
ActiveLength
;
System\Net\Security\SslStream.cs (2)
94
public int ActiveLength => _buffer.
ActiveLength
;
100
public int EncryptedLength => _buffer.
ActiveLength
- _decryptedPadding - _decryptedLength;
System\Net\Security\TlsSession.cs (20)
219
public bool HasPendingOutput => _pendingBuffer.
ActiveLength
> 0;
905
if (_pendingBuffer.
ActiveLength
> 0)
908
return _pendingBuffer.
ActiveLength
> 0 ? TlsOperationStatus.DestinationTooSmall : TlsOperationStatus.Complete;
1108
if (_pendingBuffer.
ActiveLength
> 0)
1135
if (_pendingBuffer.
ActiveLength
> 0)
1138
if (_pendingBuffer.
ActiveLength
> 0)
1197
if (_pendingBuffer.
ActiveLength
> 0)
1200
return _pendingBuffer.
ActiveLength
> 0 ? TlsOperationStatus.DestinationTooSmall : TlsOperationStatus.Complete;
1246
return _pendingBuffer.
ActiveLength
> 0 ? TlsOperationStatus.DestinationTooSmall : TlsOperationStatus.Complete;
1267
if (_pendingBuffer.
ActiveLength
> 0)
1533
if (_pendingBuffer.
ActiveLength
> 0)
1621
return _pendingBuffer.
ActiveLength
> 0 ? TlsOperationStatus.DestinationTooSmall : TlsOperationStatus.Closed;
1630
return _pendingBuffer.
ActiveLength
> 0 ? TlsOperationStatus.DestinationTooSmall : TlsOperationStatus.Complete;
1649
int n = Math.Min(output.Length, _pendingBuffer.
ActiveLength
);
2048
while (_pendingBuffer.
ActiveLength
> 0)
2058
if (_pendingBuffer.
ActiveLength
== 0)
2099
if (_pendingBuffer.
ActiveLength
> 0)
2215
if (_socketInBuffer.
ActiveLength
> 0)
2294
if (_pendingBuffer.
ActiveLength
> 0)
2384
if (_pendingBuffer.
ActiveLength
> 0)
System\Net\Security\TlsSession.OpenSsl.cs (1)
94
else if (_socketInBuffer.
ActiveLength
> 0)